Index: src/compiler/x64/code-generator-x64.cc |
diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc |
index b69ddd5798ffe712ae94686e5bdc228a4a3c6756..a96f969d0bbeaf80d6e45975be627da1cc3f1ebd 100644 |
--- a/src/compiler/x64/code-generator-x64.cc |
+++ b/src/compiler/x64/code-generator-x64.cc |
@@ -578,9 +578,6 @@ void CodeGenerator::AssembleDeconstructActivationRecord(int stack_param_delta) { |
if (sp_slot_delta > 0) { |
__ addq(rsp, Immediate(sp_slot_delta * kPointerSize)); |
} |
- if (frame()->needs_frame()) { |
- __ popq(rbp); |
- } |
frame_access_state()->SetFrameAccessToDefault(); |
} |
@@ -591,6 +588,9 @@ void CodeGenerator::AssemblePrepareTailCall(int stack_param_delta) { |
__ subq(rsp, Immediate(-sp_slot_delta * kPointerSize)); |
frame_access_state()->IncreaseSPDelta(-sp_slot_delta); |
} |
+ if (frame()->needs_frame()) { |
+ __ movq(rbp, MemOperand(rbp, 0)); |
+ } |
frame_access_state()->SetFrameAccessToSP(); |
} |