Changeset 127554 in webkit


Ignore:
Timestamp:
Sep 4, 2012 10:12:26 PM (12 years ago)
Author:
commit-queue@webkit.org
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 <mark.lam@apple.com> on 2012-09-04
Reviewed by Geoffrey Garen.

  • runtime/JSGlobalData.cpp:

(JSC::enableAssembler):

  • runtime/Options.cpp:

(JSC::Options::initialize):

  • runtime/Options.h:

(JSC):

Location:
trunk/Source/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r127544 r127554  
     12012-09-04  Mark Lam  <mark.lam@apple.com>
     2
     3        Allow the YarrJIT to use the assembler even when useJIT() is false.
     4        Introduce the useYarrJIT() option.
     5        https://bugs.webkit.org/show_bug.cgi?id=95809.
     6
     7        Reviewed by Geoffrey Garen.
     8
     9        * runtime/JSGlobalData.cpp:
     10        (JSC::enableAssembler):
     11        * runtime/Options.cpp:
     12        (JSC::Options::initialize):
     13        * runtime/Options.h:
     14        (JSC):
     15
    1162012-09-04  Gavin Barraclough  <barraclough@apple.com>
    217
  • trunk/Source/JavaScriptCore/runtime/JSGlobalData.cpp

    r127505 r127554  
    101101static bool enableAssembler(ExecutableAllocator& executableAllocator)
    102102{
    103     if (!executableAllocator.isValid() || !Options::useJIT())
     103    if (!executableAllocator.isValid() || (!Options::useJIT() && !Options::useYarrJIT()))
    104104        return false;
    105105
  • trunk/Source/JavaScriptCore/runtime/Options.cpp

    r127374 r127554  
    139139#endif
    140140   
    141 #if ENABLE(LLINT_C_LOOP)
     141#if !ENABLE(JIT)
    142142    useJIT() = false;
    143143    useDFGJIT() = false;
     144#endif
     145#if !ENABLE(YARR_JIT)
     146    useYarrJIT() = false;
    144147#endif
    145148
  • trunk/Source/JavaScriptCore/runtime/Options.h

    r124404 r127554  
    6666    v(bool, useJIT,    true) \
    6767    v(bool, useDFGJIT, true) \
     68    v(bool, useYarrJIT, true) \
    6869    \
    6970    /* showDisassembly implies showDFGDisassembly. */ \
Note: See TracChangeset for help on using the changeset viewer.