Index: src/debug/ia32/debug-ia32.cc |
diff --git a/src/debug/ia32/debug-ia32.cc b/src/debug/ia32/debug-ia32.cc |
index 95f2bc6b68b5baccf89ad0b11e9ce805c1719c3e..7df18c7eb8f7bddd8768769058021cc153ca099c 100644 |
--- a/src/debug/ia32/debug-ia32.cc |
+++ b/src/debug/ia32/debug-ia32.cc |
@@ -110,9 +110,12 @@ void DebugCodegen::GenerateDebugBreakStub(MacroAssembler* masm, |
void DebugCodegen::GenerateFrameDropperLiveEdit(MacroAssembler* masm) { |
// We do not know our frame height, but set esp based on ebp. |
- __ lea(esp, Operand(ebp, -1 * kPointerSize)); |
- |
+ __ lea(esp, Operand(ebp, FrameDropperFrameConstants::kFunctionOffset)); |
__ pop(edi); // Function. |
+ __ add(esp, Immediate(-FrameDropperFrameConstants::kCodeOffset)); // INTERNAL |
+ // frame |
+ // marker |
+ // and code |
__ pop(ebp); |
ParameterCount dummy(0); |