Chromium Code Reviews| 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()); |
| } |