Bug 516009: do stack update after all guards for JSOP_LAMBDA_FC, r=gal

This commit is contained in:
David Mandelin 2009-09-11 17:32:20 -07:00
parent 1ccc6f7025
commit cfdd0c20d7
2 changed files with 21 additions and 1 deletions

View File

@ -12354,7 +12354,6 @@ TraceRecorder::record_JSOP_LAMBDA_FC()
addName(lir->ins2(LIR_peq, call_ins, INS_NULL()),
"guard(js_AllocFlatClosure)"),
OOM_EXIT);
stack(0, call_ins);
if (fun->u.i.nupvars) {
JSUpvarArray *uva = fun->u.i.script->upvars();
@ -12368,6 +12367,7 @@ TraceRecorder::record_JSOP_LAMBDA_FC()
}
}
stack(0, call_ins);
return JSRS_CONTINUE;
}

View File

@ -0,0 +1,20 @@
var gFutureCalls = [];
function add_future_call(index, func)
{
if (!(index in gFutureCalls)) {
gFutureCalls[index] = [];
}
}
function check_reset_test(time)
{
}
check_reset_test(0);
for (var i = 1; i <= 8; ++i) {
(function(j) {
add_future_call(j, function() { check_reset_test(j); });
})(i);
}