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); |
} |