Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index fe99aa63227892c8f9527935c3f4bfe824b8f7fa..1f210bf7429419bc4a8e9062978d0f4906dc2689 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1018,7 +1018,7 @@ Handle<Object> Factory::NewNumber(double value, |
// We need to distinguish the minus zero value and this cannot be |
// done after conversion to int. Doing this by comparing bit |
// patterns is faster than using fpclassify() et al. |
- if (IsMinusZero(value)) return NewHeapNumber(-0.0, IMMUTABLE, pretenure); |
+ if (IsMinusZero(value)) return minus_zero_value(); |
int int_value = FastD2IChecked(value); |
if (value == int_value && Smi::IsValid(int_value)) { |