Chromium Code Reviews| Index: src/x64/lithium-codegen-x64.cc |
| diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
| index 6c8e377d637616d99283fdd027bebd93dd69e1a3..7f6414223edef22e978ef70fdc05c43ed234eb52 100644 |
| --- a/src/x64/lithium-codegen-x64.cc |
| +++ b/src/x64/lithium-codegen-x64.cc |
| @@ -157,7 +157,8 @@ bool LCodeGen::GeneratePrologue() { |
| #endif |
| __ push(rax); |
| __ Set(rax, slots); |
| - __ movq(kScratchRegister, kSlotsZapValue, RelocInfo::NONE64); |
| + __ movq(kScratchRegister, reinterpret_cast<Address>(kSlotsZapValue), |
|
haitao.feng
2013/10/24 07:32:48
It might make sense to define kSlotsZapValue as Ad
danno
2013/10/24 11:13:17
Why can't this just stay int64_t and remove the o
haitao.feng
2013/10/24 13:17:04
Done.
|
| + RelocInfo::NONE64); |
| Label loop; |
| __ bind(&loop); |
| __ movq(MemOperand(rsp, rax, times_pointer_size, 0), |
| @@ -1123,7 +1124,7 @@ void LCodeGen::DoMathFloorOfDiv(LMathFloorOfDiv* instr) { |
| __ neg(reg1); |
| DeoptimizeIf(zero, instr->environment()); |
| } |
| - __ movq(reg2, multiplier, RelocInfo::NONE64); |
| + __ movq(reg2, multiplier); |
| // Result just fit in r64, because it's int32 * uint32. |
| __ imul(reg2, reg1); |
| @@ -3453,7 +3454,7 @@ void LCodeGen::DoMathRound(LMathRound* instr) { |
| static int64_t minus_one_half = V8_INT64_C(0xBFE0000000000000); // -0.5 |
| Label done, round_to_zero, below_one_half, do_not_compensate, restore; |
| - __ movq(kScratchRegister, one_half, RelocInfo::NONE64); |
| + __ movq(kScratchRegister, one_half); |
| __ movq(xmm_scratch, kScratchRegister); |
| __ ucomisd(xmm_scratch, input_reg); |
| __ j(above, &below_one_half); |
| @@ -3468,7 +3469,7 @@ void LCodeGen::DoMathRound(LMathRound* instr) { |
| __ jmp(&done); |
| __ bind(&below_one_half); |
| - __ movq(kScratchRegister, minus_one_half, RelocInfo::NONE64); |
| + __ movq(kScratchRegister, minus_one_half); |
| __ movq(xmm_scratch, kScratchRegister); |
| __ ucomisd(xmm_scratch, input_reg); |
| __ j(below_equal, &round_to_zero); |
| @@ -3524,7 +3525,7 @@ void LCodeGen::DoMathPowHalf(LMathPowHalf* instr) { |
| Label done, sqrt; |
| // Check base for -Infinity. According to IEEE-754, double-precision |
| // -Infinity has the highest 12 bits set and the lowest 52 bits cleared. |
| - __ movq(kScratchRegister, V8_INT64_C(0xFFF0000000000000), RelocInfo::NONE64); |
| + __ movq(kScratchRegister, V8_INT64_C(0xFFF0000000000000)); |
| __ movq(xmm_scratch, kScratchRegister); |
| __ ucomisd(xmm_scratch, input_reg); |
| // Comparing -Infinity with NaN results in "unordered", which sets the |
| @@ -3632,8 +3633,7 @@ void LCodeGen::DoRandom(LRandom* instr) { |
| // ( 1.(20 0s)(32 random bits) x 2^20 ) - (1.0 x 2^20)). |
| XMMRegister result = ToDoubleRegister(instr->result()); |
| XMMRegister scratch4 = double_scratch0(); |
| - __ movq(scratch3, V8_INT64_C(0x4130000000000000), |
| - RelocInfo::NONE64); // 1.0 x 2^20 as double |
| + __ movq(scratch3, V8_INT64_C(0x4130000000000000)); // 1.0 x 2^20 as double |
| __ movq(scratch4, scratch3); |
| __ movd(result, random); |
| __ xorps(result, scratch4); |