Ignore:
Timestamp:
Nov 30, 2013, 9:23:32 AM (12 years ago)
Author:
[email protected]
Message:

Finally remove those DFG_ENABLE things
https://bugs.webkit.org/show_bug.cgi?id=125025

Rubber stamped by Sam Weinig.

This removes a bunch of unused and untested insanity.

  • bytecode/CodeBlock.cpp:

(JSC::CodeBlock::tallyFrequentExitSites):

  • dfg/DFGArgumentsSimplificationPhase.cpp:

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

  • dfg/DFGByteCodeParser.cpp:

(JSC::DFG::ByteCodeParser::injectLazyOperandSpeculation):
(JSC::DFG::ByteCodeParser::getArrayModeConsideringSlowPath):
(JSC::DFG::ByteCodeParser::makeSafe):
(JSC::DFG::ByteCodeParser::makeDivSafe):
(JSC::DFG::ByteCodeParser::handleCall):
(JSC::DFG::ByteCodeParser::handleInlining):
(JSC::DFG::ByteCodeParser::parseBlock):
(JSC::DFG::ByteCodeParser::linkBlock):
(JSC::DFG::ByteCodeParser::InlineStackEntry::InlineStackEntry):
(JSC::DFG::ByteCodeParser::parseCodeBlock):
(JSC::DFG::ByteCodeParser::parse):
(JSC::DFG::parse):

  • dfg/DFGCFGSimplificationPhase.cpp:

(JSC::DFG::CFGSimplificationPhase::run):
(JSC::DFG::CFGSimplificationPhase::convertToJump):
(JSC::DFG::CFGSimplificationPhase::fixJettisonedPredecessors):

  • dfg/DFGCSEPhase.cpp:

(JSC::DFG::CSEPhase::endIndexForPureCSE):
(JSC::DFG::CSEPhase::eliminateIrrelevantPhantomChildren):
(JSC::DFG::CSEPhase::setReplacement):
(JSC::DFG::CSEPhase::eliminate):
(JSC::DFG::CSEPhase::performNodeCSE):

  • dfg/DFGCommon.h:

(JSC::DFG::verboseCompilationEnabled):
(JSC::DFG::logCompilationChanges):
(JSC::DFG::shouldDumpGraphAtEachPhase):

  • dfg/DFGConstantFoldingPhase.cpp:

(JSC::DFG::ConstantFoldingPhase::foldConstants):

  • dfg/DFGFixupPhase.cpp:

(JSC::DFG::FixupPhase::fixupNode):
(JSC::DFG::FixupPhase::injectInt32ToDoubleNode):

  • dfg/DFGInPlaceAbstractState.cpp:

(JSC::DFG::InPlaceAbstractState::initialize):
(JSC::DFG::InPlaceAbstractState::endBasicBlock):
(JSC::DFG::InPlaceAbstractState::mergeStateAtTail):
(JSC::DFG::InPlaceAbstractState::mergeToSuccessors):

  • dfg/DFGJITCompiler.cpp:

(JSC::DFG::JITCompiler::compileBody):
(JSC::DFG::JITCompiler::link):

  • dfg/DFGOSRExitCompiler.cpp:
  • dfg/DFGOSRExitCompiler32_64.cpp:

(JSC::DFG::OSRExitCompiler::compileExit):

  • dfg/DFGOSRExitCompiler64.cpp:

(JSC::DFG::OSRExitCompiler::compileExit):

  • dfg/DFGOSRExitCompilerCommon.cpp:

(JSC::DFG::adjustAndJumpToTarget):

  • dfg/DFGPredictionInjectionPhase.cpp:

(JSC::DFG::PredictionInjectionPhase::run):

  • dfg/DFGPredictionPropagationPhase.cpp:

(JSC::DFG::PredictionPropagationPhase::run):
(JSC::DFG::PredictionPropagationPhase::propagate):
(JSC::DFG::PredictionPropagationPhase::propagateForward):
(JSC::DFG::PredictionPropagationPhase::propagateBackward):
(JSC::DFG::PredictionPropagationPhase::doRoundOfDoubleVoting):

  • dfg/DFGScoreBoard.h:

(JSC::DFG::ScoreBoard::use):

  • dfg/DFGSlowPathGenerator.h:

(JSC::DFG::SlowPathGenerator::generate):

  • dfg/DFGSpeculativeJIT.cpp:

(JSC::DFG::SpeculativeJIT::terminateSpeculativeExecution):
(JSC::DFG::SpeculativeJIT::runSlowPathGenerators):
(JSC::DFG::SpeculativeJIT::dump):
(JSC::DFG::SpeculativeJIT::compileCurrentBlock):
(JSC::DFG::SpeculativeJIT::checkGeneratedTypeForToInt32):

  • dfg/DFGSpeculativeJIT.h:
  • dfg/DFGSpeculativeJIT32_64.cpp:

(JSC::DFG::SpeculativeJIT::fillSpeculateInt32Internal):
(JSC::DFG::SpeculativeJIT::fillSpeculateDouble):
(JSC::DFG::SpeculativeJIT::fillSpeculateCell):
(JSC::DFG::SpeculativeJIT::fillSpeculateBoolean):
(JSC::DFG::SpeculativeJIT::compile):

  • dfg/DFGSpeculativeJIT64.cpp:

(JSC::DFG::SpeculativeJIT::fillSpeculateInt32Internal):
(JSC::DFG::SpeculativeJIT::fillSpeculateDouble):
(JSC::DFG::SpeculativeJIT::fillSpeculateCell):
(JSC::DFG::SpeculativeJIT::fillSpeculateBoolean):
(JSC::DFG::SpeculativeJIT::compile):

  • dfg/DFGVariableEventStream.cpp:

(JSC::DFG::VariableEventStream::reconstruct):

  • dfg/DFGVariableEventStream.h:

(JSC::DFG::VariableEventStream::appendAndLog):

  • dfg/DFGVirtualRegisterAllocationPhase.cpp:

(JSC::DFG::VirtualRegisterAllocationPhase::run):

  • jit/JIT.cpp:

(JSC::JIT::privateCompile):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGCommon.h

    r156984 r159886  
    3535#include "VirtualRegister.h"
    3636
    37 /* DFG_ENABLE() - turn on a specific features in the DFG JIT */
    38 #define DFG_ENABLE(DFG_FEATURE) (defined DFG_ENABLE_##DFG_FEATURE  && DFG_ENABLE_##DFG_FEATURE)
    39 
    40 // Emit various logging information for debugging, including dumping the dataflow graphs.
    41 #define DFG_ENABLE_DEBUG_VERBOSE 0
    42 // Emit dumps during propagation, in addition to just after.
    43 #define DFG_ENABLE_DEBUG_PROPAGATION_VERBOSE 0
    44 // Emit logging for OSR exit value recoveries at every node, not just nodes that
    45 // actually has speculation checks.
    46 #define DFG_ENABLE_VERBOSE_VALUE_RECOVERIES 0
    47 // Enable generation of dynamic checks into the instruction stream.
    48 #if !ASSERT_DISABLED
    49 #define DFG_ENABLE_JIT_ASSERT 1
    50 #else
    51 #define DFG_ENABLE_JIT_ASSERT 0
    52 #endif
    53 // Consistency check contents compiler data structures.
    54 #define DFG_ENABLE_CONSISTENCY_CHECK 0
    55 // Emit a breakpoint into the head of every generated function, to aid debugging in GDB.
    56 #define DFG_ENABLE_JIT_BREAK_ON_EVERY_FUNCTION 0
    57 // Emit a breakpoint into the head of every generated block, to aid debugging in GDB.
    58 #define DFG_ENABLE_JIT_BREAK_ON_EVERY_BLOCK 0
    59 // Emit a breakpoint into the head of every generated node, to aid debugging in GDB.
    60 #define DFG_ENABLE_JIT_BREAK_ON_EVERY_NODE 0
    61 // Emit a pair of xorPtr()'s on regT0 with the node index to make it easy to spot node boundaries in disassembled code.
    62 #define DFG_ENABLE_XOR_DEBUG_AID 0
    63 // Emit a breakpoint into the speculation failure code.
    64 #define DFG_ENABLE_JIT_BREAK_ON_SPECULATION_FAILURE 0
    65 // Disable the DFG JIT without having to touch Platform.h
    66 #define DFG_DEBUG_LOCAL_DISBALE 0
    67 // Generate stats on how successful we were in making use of the DFG jit, and remaining on the hot path.
    68 #define DFG_ENABLE_SUCCESS_STATS 0
    69 
    7037namespace JSC { namespace DFG {
    7138
     
    9966inline bool verboseCompilationEnabled()
    10067{
    101 #if DFG_ENABLE(DEBUG_VERBOSE)
    102     return true;
    103 #else
    10468    return Options::verboseCompilation() || Options::dumpGraphAtEachPhase();
    105 #endif
    10669}
    10770
    10871inline bool logCompilationChanges()
    10972{
    110 #if DFG_ENABLE(DEBUG_VERBOSE)
    111     return true;
    112 #else
    11373    return verboseCompilationEnabled() || Options::logCompilationChanges();
    114 #endif
    11574}
    11675
    11776inline bool shouldDumpGraphAtEachPhase()
    11877{
    119 #if DFG_ENABLE(DEBUG_PROPAGATION_VERBOSE)
    120     return true;
    121 #else
    12278    return Options::dumpGraphAtEachPhase();
    123 #endif
    12479}
    12580
Note: See TracChangeset for help on using the changeset viewer.