Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index acfe29e096a7f8bf21b1e6d972e080d992bbd14a..59fa420d23a98ffc1ba1db9c474dfa3a98d1a180 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -1766,7 +1766,8 @@ static void CallStubInRecordCallTarget(MacroAssembler* masm, CodeStub* stub) { |
const RegList kSavedRegs = 1 << 4 | // a0 |
1 << 5 | // a1 |
1 << 6 | // a2 |
- 1 << 7; // a3 |
+ 1 << 7 | // a3 |
+ 1 << cp.code(); |
// Number-of-arguments register must be smi-tagged to call out. |
__ SmiTag(a0); |
@@ -2064,9 +2065,9 @@ void CallICStub::Generate(MacroAssembler* masm) { |
{ |
FrameScope scope(masm, StackFrame::INTERNAL); |
CreateWeakCellStub create_stub(masm->isolate()); |
- __ Push(a1); |
+ __ Push(cp, a1); |
__ CallStub(&create_stub); |
- __ Pop(a1); |
+ __ Pop(cp, a1); |
} |
__ Branch(&call_function); |