Changeset 127719 in webkit


Ignore:
Timestamp:
Sep 6, 2012 3:13:14 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Renamed useYarrJIT() option to useRegExpJIT(). Also fixed regression in
which inadvertantly allows the ASM llint to use the baseline JIT when
useRegExpJIT() is true.
https://bugs.webkit.org/show_bug.cgi?id=95918.

Patch by Mark Lam <mark.lam@apple.com> on 2012-09-06
Reviewed by Geoffrey Garen.

  • runtime/JSGlobalData.cpp:

(JSC::enableAssembler):
(JSC::JSGlobalData::JSGlobalData):

  • runtime/JSGlobalData.h:

(JSC::JSGlobalData::canUseJIT):
(JSC::JSGlobalData::canUseRegExpJIT):
(JSGlobalData):

  • runtime/Options.cpp:

(JSC::Options::initialize):

  • runtime/Options.h:

(JSC):

Location:
trunk/Source/JavaScriptCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r127707 r127719  
     12012-09-06  Mark Lam  <mark.lam@apple.com>
     2
     3        Renamed useYarrJIT() option to useRegExpJIT(). Also fixed regression in
     4        which inadvertantly allows the ASM llint to use the baseline JIT when
     5        useRegExpJIT() is true.
     6        https://bugs.webkit.org/show_bug.cgi?id=95918.
     7
     8        Reviewed by Geoffrey Garen.
     9
     10        * runtime/JSGlobalData.cpp:
     11        (JSC::enableAssembler):
     12        (JSC::JSGlobalData::JSGlobalData):
     13        * runtime/JSGlobalData.h:
     14        (JSC::JSGlobalData::canUseJIT):
     15        (JSC::JSGlobalData::canUseRegExpJIT):
     16        (JSGlobalData):
     17        * runtime/Options.cpp:
     18        (JSC::Options::initialize):
     19        * runtime/Options.h:
     20        (JSC):
     21
    1222012-09-06  Patrick Gansterer  <paroga@webkit.org>
    223
  • trunk/Source/JavaScriptCore/runtime/JSGlobalData.cpp

    r127554 r127719  
    101101static bool enableAssembler(ExecutableAllocator& executableAllocator)
    102102{
    103     if (!executableAllocator.isValid() || (!Options::useJIT() && !Options::useYarrJIT()))
     103    if (!executableAllocator.isValid() || (!Options::useJIT() && !Options::useRegExpJIT()))
    104104        return false;
    105105
     
    183183#if ENABLE(ASSEMBLER) && (ENABLE(CLASSIC_INTERPRETER) || ENABLE(LLINT))
    184184    , m_canUseAssembler(enableAssembler(executableAllocator))
     185    , m_canUseJIT(m_canUseAssembler && Options::useJIT())
     186    , m_canUseRegExpJIT(m_canUseAssembler && Options::useRegExpJIT())
    185187#endif
    186188#if ENABLE(GC_VALIDATION)
  • trunk/Source/JavaScriptCore/runtime/JSGlobalData.h

    r127348 r127719  
    285285        bool canUseJIT() { return true; } // jit only
    286286#else
    287         bool canUseJIT() { return m_canUseAssembler; }
     287        bool canUseJIT() { return m_canUseJIT; }
    288288#endif
    289289
     
    293293        bool canUseRegExpJIT() { return true; } // jit only
    294294#else
    295         bool canUseRegExpJIT() { return m_canUseAssembler; }
     295        bool canUseRegExpJIT() { return m_canUseRegExpJIT; }
    296296#endif
    297297
     
    442442#if ENABLE(ASSEMBLER) && (ENABLE(CLASSIC_INTERPRETER) || ENABLE(LLINT))
    443443        bool m_canUseAssembler;
     444        bool m_canUseJIT;
     445        bool m_canUseRegExpJIT;
    444446#endif
    445447#if ENABLE(GC_VALIDATION)
  • trunk/Source/JavaScriptCore/runtime/Options.cpp

    r127554 r127719  
    144144#endif
    145145#if !ENABLE(YARR_JIT)
    146     useYarrJIT() = false;
     146    useRegExpJIT() = false;
    147147#endif
    148148
  • trunk/Source/JavaScriptCore/runtime/Options.h

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