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

Unified Diff: src/x64/code-stubs-x64.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/x64/code-stubs-x64.cc
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc
index 3922a9ba74f12e4fd89067666974a555897bb6df..3c5fe93cfbd94771924f81342215c79c80dd4ee0 100644
--- a/src/x64/code-stubs-x64.cc
+++ b/src/x64/code-stubs-x64.cc
@@ -1166,9 +1166,11 @@ static void CallStubInRecordCallTarget(MacroAssembler* masm, CodeStub* stub) {
__ Integer32ToSmi(rdx, rdx);
__ Push(rdx);
__ Push(rbx);
+ __ Push(rsi);
__ CallStub(stub);
+ __ Pop(rsi);
__ Pop(rbx);
__ Pop(rdx);
__ Pop(rdi);
@@ -1466,7 +1468,9 @@ void CallICStub::Generate(MacroAssembler* masm) {
__ Integer32ToSmi(rdx, rdx);
__ Push(rdi);
+ __ Push(rsi);
__ CallStub(&create_stub);
+ __ Pop(rsi);
__ Pop(rdi);
}

Powered by Google App Engine
This is Rietveld 408576698