Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index d89d3e57cbe67eb3629be6203322762211ae3d2b..0a885dc1ad34c66066e22428487f2e1ed6fa80b6 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -3693,10 +3693,10 @@ void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) { |
// args |
// Save callee saved registers on the stack. |
- __ MultiPush((kCalleeSaved | ra.bit()) & ~sp.bit()); |
+ __ MultiPush(kCalleeSaved | ra.bit()); |
// Load argv in s0 register. |
- __ lw(s0, MemOperand(sp, kNumCalleeSaved * kPointerSize + |
+ __ lw(s0, MemOperand(sp, (kNumCalleeSaved + 1) * kPointerSize + |
StandardFrameConstants::kCArgsSlotsSize)); |
// We build an EntryFrame. |
@@ -3830,7 +3830,7 @@ void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) { |
__ addiu(sp, sp, -EntryFrameConstants::kCallerFPOffset); |
// Restore callee saved registers from the stack. |
- __ MultiPop((kCalleeSaved | ra.bit()) & ~sp.bit()); |
+ __ MultiPop(kCalleeSaved | ra.bit()); |
// Return. |
__ Jump(ra); |
} |