Chromium Code Reviews| Index: src/x64/macro-assembler-x64.cc |
| diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
| index a7fb0dc742f27c3d184846e4538f49d89550c1ed..6c3370d3041a4dc89d4ef5d5c846500176e60abe 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(static_cast<int32_t>(x), rmode)); |
|
Yang
2016/03/08 05:41:50
Can you elaborate on where this is being used? I s
gdeepti1
2016/03/09 04:01:43
The specific case this is being used for is when i
|
| + } else if (is_int32(x)) { |
| + movq(dst, Immediate(static_cast<int32_t>(x), rmode)); |
| + } else { |
| + movq(dst, x, rmode); |
| + } |
| +} |
| void MacroAssembler::Set(const Operand& dst, intptr_t x) { |
| if (kPointerSize == kInt64Size) { |