Index: src/ia32/lithium-ia32.cc |
=================================================================== |
--- src/ia32/lithium-ia32.cc (revision 6672) |
+++ src/ia32/lithium-ia32.cc (working copy) |
@@ -1676,7 +1676,11 @@ |
if (r.IsInteger32()) { |
return DefineAsRegister(new LConstantI); |
} else if (r.IsDouble()) { |
- return DefineAsRegister(new LConstantD); |
+ double value = instr->DoubleValue(); |
+ LOperand* temp = (BitCast<uint64_t, double>(value) != 0) |
+ ? TempRegister() |
+ : NULL; |
+ return DefineAsRegister(new LConstantD(temp)); |
} else if (r.IsTagged()) { |
return DefineAsRegister(new LConstantT); |
} else { |