Index: src/mips64/code-stubs-mips64.cc |
diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc |
index f33638d96043fad9196c41b01ac21db3d8642dd2..366b4ee0de263987565e0d6741ec6a5b1bfaaec4 100644 |
--- a/src/mips64/code-stubs-mips64.cc |
+++ b/src/mips64/code-stubs-mips64.cc |
@@ -1767,8 +1767,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); |
@@ -2118,9 +2118,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); |