Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index be8160b7d396124a2eba98eadebe14bbdc65b7da..c2f62afeb052d7efd20991ecf1bbc21008804683 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -3260,7 +3260,7 @@ void InstanceofStub::Generate(MacroAssembler* masm) { |
__ StoreRoot(rax, Heap::kInstanceofCacheMapRootIndex); |
} else { |
// Get return address and delta to inlined map check. |
- __ movq(kScratchRegister, StackOperandForReturnAddress(0)); |
+ __ MoveReturnAddress(kScratchRegister, Operand(rsp, 0)); |
__ subq(kScratchRegister, args.GetArgumentOperand(2)); |
if (FLAG_debug_code) { |
__ movl(rdi, Immediate(kWordBeforeMapCheckValue)); |
@@ -3301,7 +3301,7 @@ void InstanceofStub::Generate(MacroAssembler* masm) { |
// Assert it is a 1-byte signed value. |
ASSERT(true_offset >= 0 && true_offset < 0x100); |
__ movl(rax, Immediate(true_offset)); |
- __ movq(kScratchRegister, StackOperandForReturnAddress(0)); |
+ __ MoveReturnAddress(kScratchRegister, Operand(rsp, 0)); |
__ subq(kScratchRegister, args.GetArgumentOperand(2)); |
__ movb(Operand(kScratchRegister, kOffsetToResultValue), rax); |
if (FLAG_debug_code) { |
@@ -3324,7 +3324,7 @@ void InstanceofStub::Generate(MacroAssembler* masm) { |
// Assert it is a 1-byte signed value. |
ASSERT(false_offset >= 0 && false_offset < 0x100); |
__ movl(rax, Immediate(false_offset)); |
- __ movq(kScratchRegister, StackOperandForReturnAddress(0)); |
+ __ MoveReturnAddress(kScratchRegister, Operand(rsp, 0)); |
__ subq(kScratchRegister, args.GetArgumentOperand(2)); |
__ movb(Operand(kScratchRegister, kOffsetToResultValue), rax); |
if (FLAG_debug_code) { |