mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 769987 - don't forget to ExpandInlineFrames before discarding jit code (r=bhackett)
This commit is contained in:
parent
9f6b998adf
commit
be43698db6
13
js/src/jit-test/tests/basic/testBug769987.js
Normal file
13
js/src/jit-test/tests/basic/testBug769987.js
Normal file
@ -0,0 +1,13 @@
|
||||
function h(code) {
|
||||
f = Function(code);
|
||||
g()
|
||||
}
|
||||
function g() {
|
||||
f()
|
||||
}
|
||||
h()
|
||||
h()
|
||||
h("\
|
||||
arguments[\"0\"];\
|
||||
gc();\
|
||||
")
|
@ -2193,6 +2193,7 @@ JSScript::argumentsOptimizationFailed(JSContext *cx, JSScript *script_)
|
||||
|
||||
#ifdef JS_METHODJIT
|
||||
if (script->hasJITInfo()) {
|
||||
mjit::ExpandInlineFrames(cx->compartment);
|
||||
mjit::Recompiler::clearStackReferences(cx->runtime->defaultFreeOp(), script);
|
||||
mjit::ReleaseScriptCode(cx->runtime->defaultFreeOp(), script);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user