mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 939614: IonMonkey: Revert hoisting of setting ION_COMPILING_SCRIPT. We can only set this when background compiling, r=jandem
This commit is contained in:
parent
3f68aecbec
commit
5e7915c1cd
@ -1716,12 +1716,13 @@ IonCompile(JSContext *cx, JSScript *script,
|
||||
if (recompile) {
|
||||
JS_ASSERT(executionMode == SequentialExecution);
|
||||
builderScript->ionScript()->setRecompiling();
|
||||
} else {
|
||||
SetIonScript(builder->script(), executionMode, ION_COMPILING_SCRIPT);
|
||||
}
|
||||
|
||||
// If possible, compile the script off thread.
|
||||
if (OffThreadCompilationAvailable(cx)) {
|
||||
if (!recompile)
|
||||
SetIonScript(builder->script(), executionMode, ION_COMPILING_SCRIPT);
|
||||
|
||||
if (!StartOffThreadIonCompile(cx, builder)) {
|
||||
IonSpew(IonSpew_Abort, "Unable to start off-thread ion compilation.");
|
||||
return AbortReason_Alloc;
|
||||
|
Loading…
Reference in New Issue
Block a user