| Index: src/compiler/js-builtin-reducer.cc
|
| diff --git a/src/compiler/js-builtin-reducer.cc b/src/compiler/js-builtin-reducer.cc
|
| index 263b0feedda04949e0f83843996da6a51eea86d4..27b774976259854e006a57c4599eea08f89c5f77 100644
|
| --- a/src/compiler/js-builtin-reducer.cc
|
| +++ b/src/compiler/js-builtin-reducer.cc
|
| @@ -2,9 +2,12 @@
|
| // 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"
|
| @@ -138,7 +141,8 @@ Reduction JSBuiltinReducer::ReduceMathMax(Node* node) {
|
| JSCallReduction r(node);
|
| if (r.InputsMatchZero()) {
|
| // Math.max() -> -Infinity
|
| - return Replace(jsgraph()->Constant(-V8_INFINITY));
|
| + return Replace(
|
| + jsgraph()->Constant(-std::numeric_limits<double>::infinity()));
|
| }
|
| if (r.InputsMatchOne(Type::Number())) {
|
| // Math.max(a:number) -> a
|
|
|