Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index 48f86f0255db7858692d68c49c5aafa68f0d6b0d..9f5ff8b46e112d29cfaa22d70066b349aa3680fc 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -7994,7 +7994,12 @@ void StubFailureTrampolineStub::Generate(MacroAssembler* masm) { |
bool save_fp_regs = CpuFeatures::IsSupported(FPU); |
CEntryStub ces(1, save_fp_regs ? kSaveFPRegs : kDontSaveFPRegs); |
__ Call(ces.GetCode(), RelocInfo::CODE_TARGET); |
+ int parameter_count_offset = |
+ StubFailureTrampolineFrame::kCallerStackParameterCountFrameOffset; |
+ __ lw(a1, MemOperand(fp, parameter_count_offset)); |
masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); |
+ __ sll(a1, a1, kPointerSizeLog2); |
+ __ Addu(sp, sp, a1); |
__ Ret(); |
} |