Index: src/crankshaft/x87/lithium-codegen-x87.cc |
diff --git a/src/crankshaft/x87/lithium-codegen-x87.cc b/src/crankshaft/x87/lithium-codegen-x87.cc |
index e7e99c5e739abc21c2417ea82f6bf9ce393fb390..7db1de6ff0916ade1456cef39189263b86395f76 100644 |
--- a/src/crankshaft/x87/lithium-codegen-x87.cc |
+++ b/src/crankshaft/x87/lithium-codegen-x87.cc |
@@ -4735,10 +4735,10 @@ void LCodeGen::EmitNumberUntagDNoSSE2(LNumberUntagD* instr, Register input_reg, |
DeoptimizeReason::kNotAHeapNumberUndefined); |
__ bind(&convert); |
- __ push(Immediate(0xffffffff)); |
- __ push(Immediate(0x7fffffff)); |
- __ fld_d(MemOperand(esp, 0)); |
- __ lea(esp, Operand(esp, kDoubleSize)); |
+ __ fldz(); |
+ __ fldz(); |
+ __ fdiv(1); |
+ __ fstp(0); |
__ jmp(&done, Label::kNear); |
__ bind(&heap_number); |