Bug 731503 - workaround llvm.org/pr12127. r=dvander.

This commit is contained in:
Rafael Ávila de Espíndola 2012-02-29 08:04:26 -05:00
parent 7619b471a3
commit fcbba2ae84

View File

@ -2309,7 +2309,12 @@ SetJumpOffsetAt(BytecodeEmitter *bce, ptrdiff_t off)
SET_JUMP_OFFSET(bce->code(off), bce->offset() - off);
}
static JSBool
/*
* Using MOZ_NEVER_INLINE in here is a workaround for llvm.org/pr12127.
* LLVM is deciding to inline this function which uses a lot of stack space
* into EmitTree which is recursive and uses relatively little stack space.
*/
moz_NEVER_INLINE static JSBool
EmitSwitch(JSContext *cx, BytecodeEmitter *bce, ParseNode *pn)
{
JSOp switchOp;