Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1392)

Unified Diff: runtime/vm/flow_graph_compiler_x64.cc

Issue 9523001: Teach the flow graph compiler to play nice with the debugger (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/flow_graph_compiler_x64.cc
===================================================================
--- runtime/vm/flow_graph_compiler_x64.cc (revision 4720)
+++ runtime/vm/flow_graph_compiler_x64.cc (working copy)
@@ -148,6 +148,20 @@
}
__ LeaveFrame();
__ ret();
+
+ // Generate 8 bytes of NOPs so that the debugger can patch the
+ // return pattern with a call to the debug stub.
srdjan 2012/02/28 21:37:40 __ nop(8) instead ?
hausner 2012/02/28 21:42:34 With 8 0x90 bytes it's easier to find the code pat
srdjan 2012/02/28 21:51:48 You may want to add a comment that the pattern of
+ __ nop(1);
+ __ nop(1);
+ __ nop(1);
+ __ nop(1);
+ __ nop(1);
+ __ nop(1);
+ __ nop(1);
+ __ nop(1);
+ AddCurrentDescriptor(PcDescriptors::kReturn,
+ AstNode::kNoId,
+ instr->token_index());
}

Powered by Google App Engine
This is Rietveld 408576698