Index: src/debug/arm64/debug-arm64.cc |
diff --git a/src/debug/arm64/debug-arm64.cc b/src/debug/arm64/debug-arm64.cc |
index 3e4b67c93881d62a5ce68f41e387c385d9f4d0a0..a2a6b733804d015add7121b5bd0160e888f5144f 100644 |
--- a/src/debug/arm64/debug-arm64.cc |
+++ b/src/debug/arm64/debug-arm64.cc |
@@ -130,10 +130,12 @@ void DebugCodegen::GenerateDebugBreakStub(MacroAssembler* masm, |
void DebugCodegen::GenerateFrameDropperLiveEdit(MacroAssembler* masm) { |
// We do not know our frame height, but set sp based on fp. |
- __ Sub(masm->StackPointer(), fp, kPointerSize); |
+ __ Add(masm->StackPointer(), fp, FrameDropperFrameConstants::kFunctionOffset); |
__ AssertStackConsistency(); |
- __ Pop(x1, fp, lr); // Function, Frame, Return address. |
+ __ Pop(x1); // Function |
+ __ Mov(masm->StackPointer(), Operand(fp)); |
+ __ Pop(fp, lr); // Frame, Return address. |
ParameterCount dummy(0); |
__ FloodFunctionIfStepping(x1, no_reg, dummy, dummy); |