Index: src/builtins/x64/builtins-x64.cc |
diff --git a/src/builtins/x64/builtins-x64.cc b/src/builtins/x64/builtins-x64.cc |
index 21071017c5299a0d63c8050681ec155def7b3986..35aeea636e843509b66712d1db9ecd7cbb56d15f 100644 |
--- a/src/builtins/x64/builtins-x64.cc |
+++ b/src/builtins/x64/builtins-x64.cc |
@@ -1120,7 +1120,7 @@ void Builtins::Generate_InstantiateAsmJs(MacroAssembler* masm) { |
{ |
FrameScope scope(masm, StackFrame::INTERNAL); |
// Preserve argument count for later compare. |
- __ movp(kScratchRegister, rax); |
+ __ movp(rcx, rax); |
// Push the number of arguments to the callee. |
__ Integer32ToSmi(rax, rax); |
__ Push(rax); |
@@ -1135,7 +1135,7 @@ void Builtins::Generate_InstantiateAsmJs(MacroAssembler* masm) { |
for (int j = 0; j < 4; ++j) { |
Label over; |
if (j < 3) { |
- __ cmpp(kScratchRegister, Immediate(j)); |
+ __ cmpp(rcx, Immediate(j)); |
__ j(not_equal, &over, Label::kNear); |
} |
for (int i = j - 1; i >= 0; --i) { |
@@ -1158,13 +1158,13 @@ void Builtins::Generate_InstantiateAsmJs(MacroAssembler* masm) { |
__ JumpIfSmi(rax, &failed, Label::kNear); |
__ Drop(2); |
- __ Pop(kScratchRegister); |
- __ SmiToInteger32(kScratchRegister, kScratchRegister); |
+ __ Pop(rcx); |
+ __ SmiToInteger32(rcx, rcx); |
scope.GenerateLeaveFrame(); |
__ PopReturnAddressTo(rbx); |
- __ incp(kScratchRegister); |
- __ leap(rsp, Operand(rsp, kScratchRegister, times_pointer_size, 0)); |
+ __ incp(rcx); |
+ __ leap(rsp, Operand(rsp, rcx, times_pointer_size, 0)); |
__ PushReturnAddressFrom(rbx); |
__ ret(0); |