Ignore:
Timestamp:
Feb 2, 2015, 3:32:00 PM (10 years ago)
Author:
[email protected]
Message:

VirtualRegister should really know how to dump itself
https://bugs.webkit.org/show_bug.cgi?id=141171

Reviewed by Geoffrey Garen.

Gives VirtualRegister a dump() method that pretty-prints the virtual register. The rest of
the patch is all about using this new power.

(JSC::constantName):
(JSC::CodeBlock::registerName):

  • bytecode/CodeBlock.h:

(JSC::missingThisObjectMarker): Deleted.

  • bytecode/VirtualRegister.cpp: Added.

(JSC::VirtualRegister::dump):

  • bytecode/VirtualRegister.h:

(WTF::printInternal): Deleted.

  • dfg/DFGArgumentPosition.h:

(JSC::DFG::ArgumentPosition::dump):

  • dfg/DFGFlushedAt.cpp:

(JSC::DFG::FlushedAt::dump):

  • dfg/DFGGraph.cpp:

(JSC::DFG::Graph::dump):

  • dfg/DFGPutLocalSinkingPhase.cpp:
  • dfg/DFGSSAConversionPhase.cpp:

(JSC::DFG::SSAConversionPhase::run):

  • dfg/DFGValidate.cpp:

(JSC::DFG::Validate::reportValidationContext):

  • dfg/DFGValueSource.cpp:

(JSC::DFG::ValueSource::dump):

  • dfg/DFGVariableEvent.cpp:

(JSC::DFG::VariableEvent::dump):
(JSC::DFG::VariableEvent::dumpSpillInfo):

  • ftl/FTLExitArgumentForOperand.cpp:

(JSC::FTL::ExitArgumentForOperand::dump):

  • ftl/FTLExitValue.cpp:

(JSC::FTL::ExitValue::dumpInContext):

  • profiler/ProfilerBytecodeSequence.cpp:

(JSC::Profiler::BytecodeSequence::BytecodeSequence):

File:
1 edited

Legend:

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

    r164229 r179503  
    5757        break;
    5858    case MovHintEvent:
    59         out.print("MovHint(", id(), ", r", bytecodeRegister(), ")");
     59        out.print("MovHint(", id(), ", ", bytecodeRegister(), ")");
    6060        break;
    6161    case SetLocalEvent:
    6262        out.print(
    63             "SetLocal(machine:r", machineRegister(), " -> bytecode:r", bytecodeRegister(),
     63            "SetLocal(machine:", machineRegister(), " -> bytecode:", bytecodeRegister(),
    6464            ", ", dataFormatToString(dataFormat()), ")");
    6565        break;
     
    8686void VariableEvent::dumpSpillInfo(const char* name, PrintStream& out) const
    8787{
    88     out.print(name, "(", id(), ", r", spillRegister(), ", ", dataFormatToString(dataFormat()), ")");
     88    out.print(name, "(", id(), ", ", spillRegister(), ", ", dataFormatToString(dataFormat()), ")");
    8989}
    9090
Note: See TracChangeset for help on using the changeset viewer.