Index: src/compiler/mips/code-generator-mips.cc |
diff --git a/src/compiler/mips/code-generator-mips.cc b/src/compiler/mips/code-generator-mips.cc |
index 71b32abb8a80369a648d59d38f0620e8b74685da..45ab52c54a8616ded9d5a492d4fc87f8cc58785e 100644 |
--- a/src/compiler/mips/code-generator-mips.cc |
+++ b/src/compiler/mips/code-generator-mips.cc |
@@ -467,9 +467,6 @@ void CodeGenerator::AssembleDeconstructActivationRecord(int stack_param_delta) { |
if (sp_slot_delta > 0) { |
__ addiu(sp, sp, sp_slot_delta * kPointerSize); |
} |
- if (frame()->needs_frame()) { |
- __ Pop(ra, fp); |
- } |
frame_access_state()->SetFrameAccessToDefault(); |
} |
@@ -480,6 +477,10 @@ void CodeGenerator::AssemblePrepareTailCall(int stack_param_delta) { |
__ Subu(sp, sp, Operand(-sp_slot_delta * kPointerSize)); |
frame_access_state()->IncreaseSPDelta(-sp_slot_delta); |
} |
+ if (frame()->needs_frame()) { |
+ __ lw(ra, MemOperand(fp, StandardFrameConstants::kCallerPCOffset)); |
+ __ lw(fp, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); |
+ } |
frame_access_state()->SetFrameAccessToSP(); |
} |