Ignore:
Timestamp:
Mar 2, 2014, 3:14:47 PM (11 years ago)
Author:
[email protected]
Message:

Clean up use of Options::enableConcurrentJIT().
<https://webkit.org/b/129582>

Reviewed by Filip Pizlo.

DFG Driver was conditionally checking Options::enableConcurrentJIT()
only if ENABLE(CONCURRENT_JIT). Otherwise, it bypasses it with a local
enableConcurrentJIT set to false.

Instead we should configure Options::enableConcurrentJIT() to be false
in Options.cpp if !ENABLE(CONCURRENT_JIT), and DFG Driver should always
check Options::enableConcurrentJIT(). This makes the code read a little
cleaner.

  • dfg/DFGDriver.cpp:

(JSC::DFG::compileImpl):

  • runtime/Options.cpp:

(JSC::recomputeDependentOptions):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGDriver.cpp

    r164734 r164953  
    9393        new Plan(codeBlock, profiledDFGCodeBlock, mode, osrEntryBytecodeIndex, mustHandleValues));
    9494   
    95     bool enableConcurrentJIT;
    96 #if ENABLE(CONCURRENT_JIT)
    97     enableConcurrentJIT = Options::enableConcurrentJIT();
    98 #else // ENABLE(CONCURRENT_JIT)
    99     enableConcurrentJIT = false;
    100 #endif // ENABLE(CONCURRENT_JIT)
    101     if (enableConcurrentJIT) {
     95    if (Options::enableConcurrentJIT()) {
    10296        Worklist* worklist = ensureGlobalWorklistFor(mode);
    10397        plan->callback = callback;
Note: See TracChangeset for help on using the changeset viewer.