Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 56e961445d1e7618483491afaf2ab96e41b3150b..e1060792095607b36f5e4ec3fafb6dc4a6f3b712 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -2,6 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include <limits> |
+ |
#include "src/v8.h" |
#include "src/accessors.h" |
@@ -2908,7 +2910,8 @@ void Heap::CreateInitialObjects() { |
set_nan_value( |
*factory->NewHeapNumber(base::OS::nan_value(), IMMUTABLE, TENURED)); |
- set_infinity_value(*factory->NewHeapNumber(V8_INFINITY, IMMUTABLE, TENURED)); |
+ set_infinity_value(*factory->NewHeapNumber( |
+ std::numeric_limits<double>::infinity(), IMMUTABLE, TENURED)); |
// The hole has not been created yet, but we want to put something |
// predictable in the gaps in the string table, so lets make that Smi zero. |