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

Unified Diff: src/mips64/code-stubs-mips64.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/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);

Powered by Google App Engine
This is Rietveld 408576698