mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 516009: do stack update after all guards for JSOP_LAMBDA_FC, r=gal
This commit is contained in:
parent
1ccc6f7025
commit
cfdd0c20d7
@ -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;
|
||||
}
|
||||
|
||||
|
20
js/src/trace-test/tests/basic/bug516009.js
Normal file
20
js/src/trace-test/tests/basic/bug516009.js
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user