Ignore:
Timestamp:
Aug 16, 2012, 4:17:24 PM (13 years ago)
Author:
[email protected]
Message:

Structure check hoisting should be less expensive
https://bugs.webkit.org/show_bug.cgi?id=94201

Reviewed by Mark Hahnenberg.

This appears like a broad win on short-running programs.

  • dfg/DFGArgumentsSimplificationPhase.cpp:

(JSC::DFG::ArgumentsSimplificationPhase::run):

  • dfg/DFGCSEPhase.cpp:

(JSC::DFG::CSEPhase::performNodeCSE):

  • dfg/DFGDriver.cpp:

(JSC::DFG::compile):

  • dfg/DFGGraph.h:

(JSC::DFG::Graph::compareAndSwap):
(Graph):
(JSC::DFG::Graph::substitute):
(JSC::DFG::Graph::substituteGetLocal):

  • dfg/DFGStructureCheckHoistingPhase.cpp:

(JSC::DFG::StructureCheckHoistingPhase::run):

File:
1 edited

Legend:

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

    r125373 r125823  
    9191    performPredictionPropagation(dfg);
    9292    performFixup(dfg);
     93    performStructureCheckHoisting(dfg);
    9394    unsigned cnt = 1;
    9495    for (;; ++cnt) {
     
    107108        performFixup(dfg);
    108109    }
    109     bool shouldRedoCFA = performStructureCheckHoisting(dfg);
    110110    performCSE(dfg, FixpointConverged);
    111     if (shouldRedoCFA)
    112         performCFA(dfg);
    113111#if DFG_ENABLE(DEBUG_VERBOSE)
    114112    dataLog("DFG optimization fixpoint converged in %u iterations.\n", cnt);
Note: See TracChangeset for help on using the changeset viewer.