Index: src/debug/x64/debug-x64.cc |
diff --git a/src/debug/x64/debug-x64.cc b/src/debug/x64/debug-x64.cc |
index 0d56ea7521cbfbd1edf5e92b832e894753af9a0d..60f1cfd4cfd9b9c5e3a77218f34562f60760fe9f 100644 |
--- a/src/debug/x64/debug-x64.cc |
+++ b/src/debug/x64/debug-x64.cc |
@@ -106,15 +106,23 @@ |
} |
+void DebugCodegen::GeneratePlainReturnLiveEdit(MacroAssembler* masm) { |
+ masm->ret(0); |
+} |
+ |
+ |
void DebugCodegen::GenerateFrameDropperLiveEdit(MacroAssembler* masm) { |
+ ExternalReference restarter_frame_function_slot = |
+ ExternalReference::debug_restarter_frame_function_pointer_address( |
+ masm->isolate()); |
+ __ Move(rax, restarter_frame_function_slot); |
+ __ movp(Operand(rax, 0), Immediate(0)); |
+ |
// We do not know our frame height, but set rsp based on rbp. |
__ leap(rsp, Operand(rbp, -1 * kPointerSize)); |
__ Pop(rdi); // Function. |
__ popq(rbp); |
- |
- ParameterCount dummy(0); |
- __ FloodFunctionIfStepping(rdi, no_reg, dummy, dummy); |
// Load context from the function. |
__ movp(rsi, FieldOperand(rdi, JSFunction::kContextOffset)); |