Ignore:
Timestamp:
Sep 6, 2012, 3:13:14 AM (13 years ago)
Author:
[email protected]
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 <[email protected]> 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):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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)
Note: See TracChangeset for help on using the changeset viewer.