Index: src/x64/lithium-gap-resolver-x64.cc |
diff --git a/src/x64/lithium-gap-resolver-x64.cc b/src/x64/lithium-gap-resolver-x64.cc |
index c3c617c456d03c40a6c1dcbc627116aae78115f1..bf5d31d72e3b50b5ab684274739bdbc4b7c5f3b9 100644 |
--- a/src/x64/lithium-gap-resolver-x64.cc |
+++ b/src/x64/lithium-gap-resolver-x64.cc |
@@ -198,7 +198,7 @@ void LGapResolver::EmitMove(int index) { |
if (cgen_->IsInteger32Constant(constant_source)) { |
__ movl(dst, Immediate(cgen_->ToInteger32(constant_source))); |
} else { |
- __ Move(dst, cgen_->ToHandle(constant_source)); |
+ __ LoadObject(dst, cgen_->ToHandle(constant_source)); |
} |
} else { |
ASSERT(destination->IsStackSlot()); |
@@ -207,7 +207,8 @@ void LGapResolver::EmitMove(int index) { |
// Allow top 32 bits of an untagged Integer32 to be arbitrary. |
__ movl(dst, Immediate(cgen_->ToInteger32(constant_source))); |
} else { |
- __ Move(dst, cgen_->ToHandle(constant_source)); |
+ __ LoadObject(kScratchRegister, cgen_->ToHandle(constant_source)); |
+ __ movq(dst, kScratchRegister); |
} |
} |