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

Unified Diff: src/x87/code-stubs-x87.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/x87/code-stubs-x87.cc
diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc
index 6db16b62975800fcb9b36b5558ec729b4fbc86b3..1ec12967b6baed5a117b3ed601d3418c8f944779 100644
--- a/src/x87/code-stubs-x87.cc
+++ b/src/x87/code-stubs-x87.cc
@@ -1106,9 +1106,11 @@ static void CallStubInRecordCallTarget(MacroAssembler* masm, CodeStub* stub) {
__ push(edi);
__ push(edx);
__ push(ebx);
+ __ push(esi);
__ CallStub(stub);
+ __ pop(esi);
__ pop(ebx);
__ pop(edx);
__ pop(edi);
@@ -1404,7 +1406,9 @@ void CallICStub::Generate(MacroAssembler* masm) {
FrameScope scope(masm, StackFrame::INTERNAL);
CreateWeakCellStub create_stub(isolate);
__ push(edi);
+ __ push(esi);
__ CallStub(&create_stub);
+ __ pop(esi);
__ pop(edi);
}

Powered by Google App Engine
This is Rietveld 408576698