Fix assertion to allow for generator entry point (521694, r=dvander).

This commit is contained in:
Brendan Eich 2009-10-11 22:12:51 -07:00
parent 48efd3883f
commit c7006c3661

View File

@ -2230,8 +2230,9 @@ BEGIN_CASE(JSOP_APPLY)
#ifdef DEBUG
JSOp traceOp = js_GetOpcode(cx, fp->script,
fp->regs->pc);
JS_ASSERT_IF(!fp->imacpc, traceOp == JSOP_TRACE ||
traceOp == JSOP_NOP);
JS_ASSERT_IF(!fp->imacpc,
traceOp == JSOP_TRACE || traceOp == JSOP_NOP ||
traceOp == JSOP_GENERATOR);
#endif
if (*fp->regs->pc == JSOP_TRACE)
MONITOR_BRANCH(Monitor_EnterFrame);