| Index: src/x64/macro-assembler-x64.cc
|
| diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc
|
| index e72d40b4aec743f4db9f5a27a81d25c2d5657010..cbcbe91ecada9a5ed73093bab1f97225fc1ab608 100644
|
| --- a/src/x64/macro-assembler-x64.cc
|
| +++ b/src/x64/macro-assembler-x64.cc
|
| @@ -1114,6 +1114,17 @@ void MacroAssembler::Set(Register dst, int64_t x) {
|
| }
|
| }
|
|
|
| +void MacroAssembler::Set(Register dst, int64_t x, RelocInfo::Mode rmode) {
|
| + if (x == 0) {
|
| + xorl(dst, dst);
|
| + } else if (is_uint32(x)) {
|
| + movl(dst, Immediate(reinterpret_cast<Address>(x), rmode));
|
| + } else if (is_int32(x)) {
|
| + movq(dst, Immediate(reinterpret_cast<Address>(x), rmode));
|
| + } else {
|
| + movq(dst, x, rmode);
|
| + }
|
| +}
|
|
|
| void MacroAssembler::Set(const Operand& dst, intptr_t x) {
|
| if (kPointerSize == kInt64Size) {
|
|
|