diff options
Diffstat (limited to 'chromium/v8/src/x64/assembler-x64-inl.h')
-rw-r--r-- | chromium/v8/src/x64/assembler-x64-inl.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chromium/v8/src/x64/assembler-x64-inl.h b/chromium/v8/src/x64/assembler-x64-inl.h index 826c06e5bad..ae9aeee8122 100644 --- a/chromium/v8/src/x64/assembler-x64-inl.h +++ b/chromium/v8/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 |