Index: src/x64/assembler-x64.cc |
diff --git a/src/x64/assembler-x64.cc b/src/x64/assembler-x64.cc |
index 9fe7b8392e7a3a55b188b8d2769ae3363b6172de..1502d7934098272debb7f7f9e8c6701bbeeba68a 100644 |
--- a/src/x64/assembler-x64.cc |
+++ b/src/x64/assembler-x64.cc |
@@ -110,8 +110,8 @@ void RelocInfo::PatchCodeWithCall(Address target, int guard_bytes) { |
#endif |
// Patch the code. |
- patcher.masm()->movq(r10, target, RelocInfo::NONE64); |
- patcher.masm()->call(r10); |
+ patcher.masm()->movq(kScratchRegister, target, RelocInfo::NONE64); |
+ patcher.masm()->call(kScratchRegister); |
// Check that the size of the code generated is as expected. |
ASSERT_EQ(Assembler::kCallSequenceLength, |