Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index 2f1b88e78961fc384ce3451c160357fdf764a2e1..701bce8843bbade13a828e9ea644a6b74a37bd3f 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -2789,7 +2789,8 @@ void LCodeGen::DoMathLog(LUnaryMathOperation* instr) { |
__ ucomisd(input_reg, xmm0); |
__ j(above, &positive, Label::kNear); |
__ j(equal, &zero, Label::kNear); |
- ExternalReference nan = ExternalReference::address_of_nan(); |
+ ExternalReference nan = |
+ ExternalReference::address_of_canonical_non_hole_nan(); |
__ movdbl(input_reg, Operand::StaticVariable(nan)); |
__ jmp(&done, Label::kNear); |
__ bind(&zero); |
@@ -3450,7 +3451,8 @@ void LCodeGen::EmitNumberUntagD(Register input_reg, |
DeoptimizeIf(not_equal, env); |
// Convert undefined to NaN. |
- ExternalReference nan = ExternalReference::address_of_nan(); |
+ ExternalReference nan = |
+ ExternalReference::address_of_canonical_non_hole_nan(); |
__ movdbl(result_reg, Operand::StaticVariable(nan)); |
__ jmp(&done, Label::kNear); |