Title: [127554] trunk/Source/_javascript_Core
Revision
127554
Author
[email protected]
Date
2012-09-04 22:12:26 -0700 (Tue, 04 Sep 2012)

Log Message

Allow the YarrJIT to use the assembler even when useJIT() is false.
Introduce the useYarrJIT() option.
https://bugs.webkit.org/show_bug.cgi?id=95809.

Patch by Mark Lam <[email protected]> on 2012-09-04
Reviewed by Geoffrey Garen.

* runtime/JSGlobalData.cpp:
(JSC::enableAssembler):
* runtime/Options.cpp:
(JSC::Options::initialize):
* runtime/Options.h:
(JSC):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (127553 => 127554)


--- trunk/Source/_javascript_Core/ChangeLog	2012-09-05 04:53:35 UTC (rev 127553)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-09-05 05:12:26 UTC (rev 127554)
@@ -1,3 +1,18 @@
+2012-09-04  Mark Lam  <[email protected]>
+
+        Allow the YarrJIT to use the assembler even when useJIT() is false.
+        Introduce the useYarrJIT() option.
+        https://bugs.webkit.org/show_bug.cgi?id=95809.
+
+        Reviewed by Geoffrey Garen.
+
+        * runtime/JSGlobalData.cpp:
+        (JSC::enableAssembler):
+        * runtime/Options.cpp:
+        (JSC::Options::initialize):
+        * runtime/Options.h:
+        (JSC):
+
 2012-09-04  Gavin Barraclough  <[email protected]>
 
         inc/dec behave incorrectly operating on a resolved const

Modified: trunk/Source/_javascript_Core/runtime/JSGlobalData.cpp (127553 => 127554)


--- trunk/Source/_javascript_Core/runtime/JSGlobalData.cpp	2012-09-05 04:53:35 UTC (rev 127553)
+++ trunk/Source/_javascript_Core/runtime/JSGlobalData.cpp	2012-09-05 05:12:26 UTC (rev 127554)
@@ -100,7 +100,7 @@
 #if ENABLE(ASSEMBLER) && (ENABLE(CLASSIC_INTERPRETER) || ENABLE(LLINT))
 static bool enableAssembler(ExecutableAllocator& executableAllocator)
 {
-    if (!executableAllocator.isValid() || !Options::useJIT())
+    if (!executableAllocator.isValid() || (!Options::useJIT() && !Options::useYarrJIT()))
         return false;
 
 #if USE(CF)

Modified: trunk/Source/_javascript_Core/runtime/Options.cpp (127553 => 127554)


--- trunk/Source/_javascript_Core/runtime/Options.cpp	2012-09-05 04:53:35 UTC (rev 127553)
+++ trunk/Source/_javascript_Core/runtime/Options.cpp	2012-09-05 05:12:26 UTC (rev 127554)
@@ -138,10 +138,13 @@
     ; // Deconfuse editors that do auto indentation
 #endif
     
-#if ENABLE(LLINT_C_LOOP)
+#if !ENABLE(JIT)
     useJIT() = false;
     useDFGJIT() = false;
 #endif
+#if !ENABLE(YARR_JIT)
+    useYarrJIT() = false;
+#endif
 
     // Do range checks where needed and make corrections to the options:
     ASSERT(thresholdForOptimizeAfterLongWarmUp() >= thresholdForOptimizeAfterWarmUp());

Modified: trunk/Source/_javascript_Core/runtime/Options.h (127553 => 127554)


--- trunk/Source/_javascript_Core/runtime/Options.h	2012-09-05 04:53:35 UTC (rev 127553)
+++ trunk/Source/_javascript_Core/runtime/Options.h	2012-09-05 05:12:26 UTC (rev 127554)
@@ -65,6 +65,7 @@
 #define JSC_OPTIONS(v) \
     v(bool, useJIT,    true) \
     v(bool, useDFGJIT, true) \
+    v(bool, useYarrJIT, true) \
     \
     /* showDisassembly implies showDFGDisassembly. */ \
     v(bool, showDisassembly, false) \
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to