Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index 9d9591b69fe912f213eeddc6824172b2128ea46f..04024055f0749e8ab661cbca167c9dcc4e27ff24 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.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/arm/lithium-codegen-arm.h" |
@@ -3880,7 +3882,7 @@ void LCodeGen::DoMathPowHalf(LMathPowHalf* instr) { |
// Math.pow(-Infinity, 0.5) == Infinity |
// Math.sqrt(-Infinity) == NaN |
Label done; |
- __ vmov(temp, -V8_INFINITY, scratch0()); |
+ __ vmov(temp, -std::numeric_limits<double>::infinity(), scratch0()); |
__ VFPCompareAndSetFlags(input, temp); |
__ vneg(result, temp, eq); |
__ b(&done, eq); |