Title: [89882] trunk/Source/_javascript_Core
Revision
89882
Author
[email protected]
Date
2011-06-27 17:34:50 -0700 (Mon, 27 Jun 2011)

Log 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):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (89881 => 89882)


--- trunk/Source/_javascript_Core/ChangeLog	2011-06-28 00:33:26 UTC (rev 89881)
+++ trunk/Source/_javascript_Core/ChangeLog	2011-06-28 00:34:50 UTC (rev 89882)
@@ -1,3 +1,18 @@
+2011-06-27  Gavin Barraclough  <[email protected]>
+
+        Reviewed by Oliver Hunt.
+
+        https://bugs.webkit.org/show_bug.cgi?id=63497
+        Add DEBUG_WITH_BREAKPOINT support to the DFG JIT.
+
+        * dfg/DFGByteCodeParser.cpp:
+        (JSC::DFG::ByteCodeParser::parseBlock):
+        * dfg/DFGNode.h:
+        * dfg/DFGNonSpeculativeJIT.cpp:
+        (JSC::DFG::NonSpeculativeJIT::compile):
+        * dfg/DFGSpeculativeJIT.cpp:
+        (JSC::DFG::SpeculativeJIT::compile):
+
 2011-06-27  Juan C. Montemayor  <[email protected]>
 
         Reviewed by Mark Rowe.

Modified: trunk/Source/_javascript_Core/dfg/DFGByteCodeParser.cpp (89881 => 89882)


--- trunk/Source/_javascript_Core/dfg/DFGByteCodeParser.cpp	2011-06-28 00:33:26 UTC (rev 89881)
+++ trunk/Source/_javascript_Core/dfg/DFGByteCodeParser.cpp	2011-06-28 00:34:50 UTC (rev 89882)
@@ -690,6 +690,11 @@
 
         // === Misc operations ===
 
+#if ENABLE(DEBUG_WITH_BREAKPOINT)
+        case op_debug:
+            addToGraph(Breakpoint);
+            NEXT_OPCODE(op_debug);
+#endif
         case op_mov: {
             NodeIndex op = get(currentInstruction[2].u.operand);
             set(currentInstruction[1].u.operand, op);

Modified: trunk/Source/_javascript_Core/dfg/DFGNode.h (89881 => 89882)


--- trunk/Source/_javascript_Core/dfg/DFGNode.h	2011-06-28 00:33:26 UTC (rev 89881)
+++ trunk/Source/_javascript_Core/dfg/DFGNode.h	2011-06-28 00:34:50 UTC (rev 89882)
@@ -137,6 +137,7 @@
     macro(CompareStrictEq, NodeResultJS) \
     \
     /* Nodes for misc operations. */\
+    macro(Breakpoint, NodeMustGenerate) \
     macro(LogicalNot, NodeResultJS) \
     \
     /* Block terminals. */\

Modified: trunk/Source/_javascript_Core/dfg/DFGNonSpeculativeJIT.cpp (89881 => 89882)


--- trunk/Source/_javascript_Core/dfg/DFGNonSpeculativeJIT.cpp	2011-06-28 00:33:26 UTC (rev 89881)
+++ trunk/Source/_javascript_Core/dfg/DFGNonSpeculativeJIT.cpp	2011-06-28 00:34:50 UTC (rev 89882)
@@ -875,6 +875,13 @@
 
     case Phi:
         ASSERT_NOT_REACHED();
+
+    case Breakpoint:
+#if ENABLE(DEBUG_WITH_BREAKPOINT)
+        m_jit.breakpoint();
+#else
+        ASSERT_NOT_REACHED();
+#endif
     }
 
     if (node.hasResult() && node.mustGenerate())

Modified: trunk/Source/_javascript_Core/dfg/DFGSpeculativeJIT.cpp (89881 => 89882)


--- trunk/Source/_javascript_Core/dfg/DFGSpeculativeJIT.cpp	2011-06-28 00:33:26 UTC (rev 89881)
+++ trunk/Source/_javascript_Core/dfg/DFGSpeculativeJIT.cpp	2011-06-28 00:34:50 UTC (rev 89882)
@@ -909,6 +909,13 @@
 
     case Phi:
         ASSERT_NOT_REACHED();
+
+    case Breakpoint:
+#if ENABLE(DEBUG_WITH_BREAKPOINT)
+        m_jit.breakpoint();
+#else
+        ASSERT_NOT_REACHED();
+#endif
     }
 
     if (node.hasResult() && node.mustGenerate())
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to