Index: src/compiler/ia32/code-generator-ia32.cc |
diff --git a/src/compiler/ia32/code-generator-ia32.cc b/src/compiler/ia32/code-generator-ia32.cc |
index 8e2de0fba61d84a5866cd1c533a801cca0ed50a3..d21677274b8d79c4a05e19605c62e5ad66f2a582 100644 |
--- a/src/compiler/ia32/code-generator-ia32.cc |
+++ b/src/compiler/ia32/code-generator-ia32.cc |
@@ -337,9 +337,6 @@ void CodeGenerator::AssembleDeconstructActivationRecord(int stack_param_delta) { |
if (sp_slot_delta > 0) { |
__ add(esp, Immediate(sp_slot_delta * kPointerSize)); |
} |
- if (frame()->needs_frame()) { |
- __ pop(ebp); |
- } |
frame_access_state()->SetFrameAccessToDefault(); |
} |
@@ -350,6 +347,9 @@ void CodeGenerator::AssemblePrepareTailCall(int stack_param_delta) { |
__ sub(esp, Immediate(-sp_slot_delta * kPointerSize)); |
frame_access_state()->IncreaseSPDelta(-sp_slot_delta); |
} |
+ if (frame()->needs_frame()) { |
+ __ mov(ebp, MemOperand(ebp, 0)); |
+ } |
frame_access_state()->SetFrameAccessToSP(); |
} |