mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 945437 - Fix Ion usecount check in Compile function. r=h4writer
This commit is contained in:
parent
c7538c0c16
commit
d2790cee34
@ -1872,7 +1872,7 @@ Compile(JSContext *cx, HandleScript script, BaselineFrame *osrFrame, jsbytecode
|
||||
if (executionMode == SequentialExecution) {
|
||||
// Use getUseCount instead of incUseCount to avoid bumping the
|
||||
// use count twice.
|
||||
if (script->getUseCount() < js_IonOptions.usesBeforeCompile)
|
||||
if (script->getUseCount() < UsesBeforeIonRecompile(script, osrPc ? osrPc : script->code))
|
||||
return Method_Skipped;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user