Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index ea9c494e8a9c421eeb9cb3a34bb892a6d9617156..8f5b63dce94f74810d4b05b42732da9860ea228f 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -4156,12 +4156,14 @@ void InstanceofStub::Generate(MacroAssembler* masm) { |
// Get return address and delta to inlined map check. |
__ movq(kScratchRegister, Operand(rsp, 0 * kPointerSize)); |
__ subq(kScratchRegister, Operand(rsp, 1 * kPointerSize)); |
- __ movq(Operand(kScratchRegister, kOffsetToMapCheckValue), rax); |
if (FLAG_debug_code) { |
__ movl(rdi, Immediate(kWordBeforeMapCheckValue)); |
__ cmpl(Operand(kScratchRegister, kOffsetToMapCheckValue - 4), rdi); |
__ Assert(equal, "InstanceofStub unexpected call site cache (check)."); |
} |
+ __ movq(kScratchRegister, |
+ Operand(kScratchRegister, kOffsetToMapCheckValue)); |
+ __ movq(Operand(kScratchRegister, 0), rax); |
} |
__ movq(rcx, FieldOperand(rax, Map::kPrototypeOffset)); |