mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[JAEGER] Don't make the GC sad in the middle of compilation. r=dvander, b=583675
This commit is contained in:
parent
7fcc3c72ec
commit
99fbe463df
@ -265,10 +265,15 @@ InlineCall(VMFrame &f, uint32 flags, void **pret, uint32 argc)
|
||||
JSContext *cx = f.cx;
|
||||
JSStackFrame *fp = cx->fp;
|
||||
JSScript *script = fp->script;
|
||||
f.regs.pc = script->code;
|
||||
f.regs.sp = fp->base();
|
||||
|
||||
if (cx->options & JSOPTION_METHODJIT) {
|
||||
if (!script->ncode) {
|
||||
if (mjit::TryCompile(cx, script, fp->fun, fp->scopeChain) == Compile_Error)
|
||||
if (mjit::TryCompile(cx, script, fp->fun, fp->scopeChain) == Compile_Error) {
|
||||
InlineReturn(cx, JS_FALSE);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
JS_ASSERT(script->ncode);
|
||||
if (script->ncode != JS_UNJITTABLE_METHOD) {
|
||||
@ -278,9 +283,6 @@ InlineCall(VMFrame &f, uint32 flags, void **pret, uint32 argc)
|
||||
}
|
||||
}
|
||||
|
||||
f.regs.pc = script->code;
|
||||
f.regs.sp = fp->base();
|
||||
|
||||
bool ok = !!Interpret(cx, cx->fp);
|
||||
InlineReturn(cx, JS_TRUE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user