Index: src/x64/assembler-x64-inl.h |
diff --git a/src/x64/assembler-x64-inl.h b/src/x64/assembler-x64-inl.h |
index 826c06e5bad61b0ea1bdde583d51b90992e4376e..ae9aeee8122d3f8eb1bec82a3ed6391860b11fc6 100644 |
--- a/src/x64/assembler-x64-inl.h |
+++ b/src/x64/assembler-x64-inl.h |
@@ -373,14 +373,13 @@ void RelocInfo::set_target_cell(Cell* cell, WriteBarrierMode mode) { |
bool RelocInfo::IsPatchedReturnSequence() { |
// The recognized call sequence is: |
- // movq(kScratchRegister, address); call(kScratchRegister); |
+ // movq(kScratchRegister, immediate64); call(kScratchRegister); |
// It only needs to be distinguished from a return sequence |
// movq(rsp, rbp); pop(rbp); ret(n); int3 *6 |
// The 11th byte is int3 (0xCC) in the return sequence and |
// REX.WB (0x48+register bit) for the call sequence. |
#ifdef ENABLE_DEBUGGER_SUPPORT |
- return pc_[Assembler::kMoveAddressIntoScratchRegisterInstructionLength] != |
- 0xCC; |
+ return pc_[2 + kPointerSize] != 0xCC; |
#else |
return false; |
#endif |