diff options
Diffstat (limited to 'Source/JavaScriptCore/jit/JumpReplacementWatchpoint.cpp')
-rw-r--r-- | Source/JavaScriptCore/jit/JumpReplacementWatchpoint.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/JavaScriptCore/jit/JumpReplacementWatchpoint.cpp b/Source/JavaScriptCore/jit/JumpReplacementWatchpoint.cpp index 725108dd5..00311dab4 100644 --- a/Source/JavaScriptCore/jit/JumpReplacementWatchpoint.cpp +++ b/Source/JavaScriptCore/jit/JumpReplacementWatchpoint.cpp @@ -43,9 +43,11 @@ void JumpReplacementWatchpoint::correctLabels(LinkBuffer& linkBuffer) void JumpReplacementWatchpoint::fireInternal() { - MacroAssembler::replaceWithJump( - CodeLocationLabel(bitwise_cast<void*>(m_source)), - CodeLocationLabel(bitwise_cast<void*>(m_destination))); + void* source = bitwise_cast<void*>(m_source); + void* destination = bitwise_cast<void*>(m_destination); + if (Options::showDisassembly()) + dataLog("Firing jump replacement watchpoint from %p, to %p.\n", source, destination); + MacroAssembler::replaceWithJump(CodeLocationLabel(source), CodeLocationLabel(destination)); if (isOnList()) remove(); } |