| Index: src/mips64/lithium-codegen-mips64.cc
|
| diff --git a/src/mips64/lithium-codegen-mips64.cc b/src/mips64/lithium-codegen-mips64.cc
|
| index a817a285a4ed65408e85dafe30cdb1345d607c8f..9df5ccaa9992e213367558a885ca42f5ba07ee92 100644
|
| --- a/src/mips64/lithium-codegen-mips64.cc
|
| +++ b/src/mips64/lithium-codegen-mips64.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/code-factory.h"
|
| @@ -3874,7 +3876,7 @@ void LCodeGen::DoMathPowHalf(LMathPowHalf* instr) {
|
| // Math.pow(-Infinity, 0.5) == Infinity
|
| // Math.sqrt(-Infinity) == NaN
|
| Label done;
|
| - __ Move(temp, static_cast<double>(-V8_INFINITY));
|
| + __ Move(temp, std::numeric_limits<double>::infinity());
|
| __ BranchF(USE_DELAY_SLOT, &done, NULL, eq, temp, input);
|
| // Set up Infinity in the delay slot.
|
| // result is overwritten if the branch is not taken.
|
|
|