Skip to content
  • msaboff@apple.com's avatar
    Cleanup of DFG and Baseline JIT debugging code · 096abe0e
    msaboff@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=111871
    
    Reviewed by Geoffrey Garen.
    
    Fixed various debug related issue in baseline and DFG JITs. See below.
    
    * dfg/DFGRepatch.cpp:
    (JSC::DFG::dfgLinkClosureCall): Used pointerDump() to handle when calleeCodeBlock is NULL.
    * dfg/DFGScratchRegisterAllocator.h: Now use ScratchBuffer::activeLengthPtr() to get
    pointer to scratch register length.
    (JSC::DFG::ScratchRegisterAllocator::preserveUsedRegistersToScratchBuffer):
    (JSC::DFG::ScratchRegisterAllocator::restoreUsedRegistersFromScratchBuffer):
    * dfg/DFGSpeculativeJIT.cpp:
    (JSC::DFG::SpeculativeJIT::checkConsistency): Added missing case labels for DataFormatOSRMarker,
    DataFormatDead, and DataFormatArguments and made them RELEASE_ASSERT_NOT_REACHED();
    * jit/JITCall.cpp:
    (JSC::JIT::privateCompileClosureCall): Used pointerDump() to handle when calleeCodeBlock is NULL.
    * jit/JITCall32_64.cpp:
    (JSC::JIT::privateCompileClosureCall): Used pointerDump() to handle when calleeCodeBlock is NULL.
    * runtime/JSGlobalData.h:
    (JSC::ScratchBuffer::ScratchBuffer): Fixed buffer allocation alignment to
    be on a double boundary.
    (JSC::ScratchBuffer::setActiveLength):
    (JSC::ScratchBuffer::activeLength):
    (JSC::ScratchBuffer::activeLengthPtr):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145933 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    096abe0e