Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Unified Diff: src/mips/code-stubs-mips.cc

Issue 2188993003: [stubs] Port CreateWeakCellStub to turbofan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix stack overflow Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698