mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 854197 - Only initialize WorkerThreadState in parallel mode. r=luke
This commit is contained in:
parent
3ee5de7098
commit
ab1938f531
@ -5218,8 +5218,10 @@ js::CompileAsmJS(JSContext *cx, TokenStream &ts, ParseNode *fn, const CompileOpt
|
||||
return Warn(cx, JSMSG_USE_ASM_TYPE_FAIL, "Platform missing signal handler support");
|
||||
|
||||
# ifdef JS_PARALLEL_COMPILATION
|
||||
if (!EnsureParallelCompilationInitialized(cx->runtime))
|
||||
return Warn(cx, JSMSG_USE_ASM_TYPE_FAIL, "Failed initialization of compilation threads");
|
||||
if (OffThreadCompilationEnabled(cx)) {
|
||||
if (!EnsureParallelCompilationInitialized(cx->runtime))
|
||||
return Warn(cx, JSMSG_USE_ASM_TYPE_FAIL, "Failed compilation thread initialization");
|
||||
}
|
||||
# endif
|
||||
|
||||
ScopedJSDeletePtr<AsmJSModule> module;
|
||||
|
Loading…
Reference in New Issue
Block a user