Changeset 89882 in webkit


Ignore:
Timestamp:
Jun 27, 2011 5:34:50 PM (13 years ago)
Author:
barraclough@apple.com
Message:

https://bugs.webkit.org/show_bug.cgi?id=63497
Add DEBUG_WITH_BREAKPOINT support to the DFG JIT.

Reviewed by Oliver Hunt.

  • dfg/DFGByteCodeParser.cpp:

(JSC::DFG::ByteCodeParser::parseBlock):

  • dfg/DFGNode.h:
  • dfg/DFGNonSpeculativeJIT.cpp:

(JSC::DFG::NonSpeculativeJIT::compile):

  • dfg/DFGSpeculativeJIT.cpp:

(JSC::DFG::SpeculativeJIT::compile):

Location:
trunk/Source/JavaScriptCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r89875 r89882  
     12011-06-27  Gavin Barraclough  <barraclough@apple.com>
     2
     3        Reviewed by Oliver Hunt.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=63497
     6        Add DEBUG_WITH_BREAKPOINT support to the DFG JIT.
     7
     8        * dfg/DFGByteCodeParser.cpp:
     9        (JSC::DFG::ByteCodeParser::parseBlock):
     10        * dfg/DFGNode.h:
     11        * dfg/DFGNonSpeculativeJIT.cpp:
     12        (JSC::DFG::NonSpeculativeJIT::compile):
     13        * dfg/DFGSpeculativeJIT.cpp:
     14        (JSC::DFG::SpeculativeJIT::compile):
     15
    1162011-06-27  Juan C. Montemayor  <jmont@apple.com>
    217
  • trunk/Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp

    r89611 r89882  
    691691        // === Misc operations ===
    692692
     693#if ENABLE(DEBUG_WITH_BREAKPOINT)
     694        case op_debug:
     695            addToGraph(Breakpoint);
     696            NEXT_OPCODE(op_debug);
     697#endif
    693698        case op_mov: {
    694699            NodeIndex op = get(currentInstruction[2].u.operand);
  • trunk/Source/JavaScriptCore/dfg/DFGNode.h

    r89611 r89882  
    138138    \
    139139    /* Nodes for misc operations. */\
     140    macro(Breakpoint, NodeMustGenerate) \
    140141    macro(LogicalNot, NodeResultJS) \
    141142    \
  • trunk/Source/JavaScriptCore/dfg/DFGNonSpeculativeJIT.cpp

    r89861 r89882  
    876876    case Phi:
    877877        ASSERT_NOT_REACHED();
     878
     879    case Breakpoint:
     880#if ENABLE(DEBUG_WITH_BREAKPOINT)
     881        m_jit.breakpoint();
     882#else
     883        ASSERT_NOT_REACHED();
     884#endif
    878885    }
    879886
  • trunk/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp

    r89861 r89882  
    910910    case Phi:
    911911        ASSERT_NOT_REACHED();
     912
     913    case Breakpoint:
     914#if ENABLE(DEBUG_WITH_BREAKPOINT)
     915        m_jit.breakpoint();
     916#else
     917        ASSERT_NOT_REACHED();
     918#endif
    912919    }
    913920
Note: See TracChangeset for help on using the changeset viewer.