Index: src/compiler/js-builtin-reducer.cc |
diff --git a/src/compiler/js-builtin-reducer.cc b/src/compiler/js-builtin-reducer.cc |
index 27b774976259854e006a57c4599eea08f89c5f77..263b0feedda04949e0f83843996da6a51eea86d4 100644 |
--- a/src/compiler/js-builtin-reducer.cc |
+++ b/src/compiler/js-builtin-reducer.cc |
@@ -2,12 +2,9 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "src/compiler/js-builtin-reducer.h" |
- |
-#include <limits> |
- |
#include "src/compiler/diamond.h" |
#include "src/compiler/graph-inl.h" |
+#include "src/compiler/js-builtin-reducer.h" |
#include "src/compiler/js-graph.h" |
#include "src/compiler/node-matchers.h" |
#include "src/compiler/node-properties-inl.h" |
@@ -141,8 +138,7 @@ |
JSCallReduction r(node); |
if (r.InputsMatchZero()) { |
// Math.max() -> -Infinity |
- return Replace( |
- jsgraph()->Constant(-std::numeric_limits<double>::infinity())); |
+ return Replace(jsgraph()->Constant(-V8_INFINITY)); |
} |
if (r.InputsMatchOne(Type::Number())) { |
// Math.max(a:number) -> a |