Bug 974373: Shows a warning when logging in Odin parallel compilation mode; r=h4writer
authorBenjamin Bouvier <benj@benj.me>
Wed, 19 Feb 2014 16:02:13 +0100
changeset 169863 9291178fcfd15013e0f16e58813ebf8c291e4d93
parent 169862 c26732abea26a1769c78b767c3fcaaadbb2966ab
child 169864 fed727c1231575a3df990f18cff61799c69ac245
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersh4writer
bugs974373
milestone30.0a1
Bug 974373: Shows a warning when logging in Odin parallel compilation mode; r=h4writer
js/src/jit/AsmJS.cpp
--- a/js/src/jit/AsmJS.cpp
+++ b/js/src/jit/AsmJS.cpp
@@ -5679,16 +5679,18 @@ CheckFunctionsParallel(ModuleCompiler &m
     // pref, etc) or another thread is currently compiling asm.js in parallel,
     // fall back to sequential compilation. (We could lift the latter
     // constraint by hoisting asmJS* state out of WorkerThreadState so multiple
     // concurrent asm.js parallel compilations don't race.)
     ParallelCompilationGuard g;
     if (!ParallelCompilationEnabled(m.cx()) || !g.claim())
         return CheckFunctionsSequential(m);
 
+    IonSpew(IonSpew_Logs, "Can't log asm.js script. (Compiled on background thread.)");
+
     // Saturate all worker threads plus the main thread.
     size_t numParallelJobs = WorkerThreadState().threadCount + 1;
 
     // Allocate scoped AsmJSParallelTask objects. Each contains a unique
     // LifoAlloc that provides all necessary memory for compilation.
     js::Vector<AsmJSParallelTask, 0> tasks(m.cx());
     if (!tasks.initCapacity(numParallelJobs))
         return false;