Bug 732496 - Pop 'sp' after TypeScript::Monitor (r=bhackett)

--HG--
extra : rebase_source : d57dc5b437699cfc9722730c60e0887fe4099208
This commit is contained in:
Luke Wagner 2012-03-02 15:51:58 -08:00
parent 03ed335d44
commit 9cf872a8c8

View File

@ -2710,8 +2710,9 @@ BEGIN_CASE(JSOP_FUNAPPLY)
if (!InvokeKernel(cx, args))
goto error;
}
regs.sp = args.spAfterCall();
TypeScript::Monitor(cx, script, regs.pc, regs.sp[-1]);
Value *newsp = args.spAfterCall();
TypeScript::Monitor(cx, script, regs.pc, newsp[-1]);
regs.sp = newsp;
CHECK_INTERRUPT_HANDLER();
len = JSOP_CALL_LENGTH;
DO_NEXT_OP(len);