Index: src/debug/mips/debug-mips.cc |
diff --git a/src/debug/mips/debug-mips.cc b/src/debug/mips/debug-mips.cc |
index bb44e682d12adaac79e10ae301ca166380dbc58d..c1d24c447effb8a81a52cacc877af255de8a089c 100644 |
--- a/src/debug/mips/debug-mips.cc |
+++ b/src/debug/mips/debug-mips.cc |
@@ -109,16 +109,22 @@ |
} |
+void DebugCodegen::GeneratePlainReturnLiveEdit(MacroAssembler* masm) { |
+ __ Ret(); |
+} |
+ |
+ |
void DebugCodegen::GenerateFrameDropperLiveEdit(MacroAssembler* masm) { |
+ ExternalReference restarter_frame_function_slot = |
+ ExternalReference::debug_restarter_frame_function_pointer_address( |
+ masm->isolate()); |
+ __ li(at, Operand(restarter_frame_function_slot)); |
+ __ sw(zero_reg, MemOperand(at, 0)); |
+ |
// We do not know our frame height, but set sp based on fp. |
__ Subu(sp, fp, Operand(kPointerSize)); |
- __ Pop(a1); // Function. |
- |
- ParameterCount dummy(0); |
- __ FloodFunctionIfStepping(a1, no_reg, dummy, dummy); |
- |
- __ Pop(ra, fp); // Return address, Frame. |
+ __ Pop(ra, fp, a1); // Return address, Frame, Function. |
// Load context from the function. |
__ lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset)); |