mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 939614: IonMonkey: Fix trying to enter at wrong pc, r=jandem
This commit is contained in:
parent
cbd5fe5cd0
commit
c7719761bc
@ -801,6 +801,7 @@ EnsureCanEnterIon(JSContext *cx, ICUseCount_Fallback *stub, BaselineFrame *frame
|
||||
if (isLoopEntry) {
|
||||
IonScript *ion = script->ionScript();
|
||||
JS_ASSERT(cx->runtime()->spsProfiler.enabled() == ion->hasSPSInstrumentation());
|
||||
JS_ASSERT(ion->osrPc() == pc);
|
||||
|
||||
// If the baseline frame's SPS handling doesn't match up with the Ion code's SPS
|
||||
// handling, don't OSR.
|
||||
|
@ -1967,7 +1967,12 @@ Compile(JSContext *cx, HandleScript script, BaselineFrame *osrFrame, jsbytecode
|
||||
}
|
||||
|
||||
// Compilation succeeded or we invalidated right away or an inlining/alloc abort
|
||||
return HasIonScript(script, executionMode) ? Method_Compiled : Method_Skipped;
|
||||
if (HasIonScript(script, executionMode)) {
|
||||
if (osrPc && script->ionScript()->osrPc() != osrPc)
|
||||
return Method_Skipped;
|
||||
return Method_Compiled;
|
||||
}
|
||||
return Method_Skipped;
|
||||
}
|
||||
|
||||
} // namespace jit
|
||||
|
Loading…
Reference in New Issue
Block a user