| Index: src/arm/code-stubs-arm.cc
|
| diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc
|
| index 6aa5f30650c8a1755c2a8d26c319b822c14a9db8..ef286bbe01585a7a1ad56d3e71c0b5fdc278233f 100644
|
| --- a/src/arm/code-stubs-arm.cc
|
| +++ b/src/arm/code-stubs-arm.cc
|
| @@ -1,8 +1,6 @@
|
| // Copyright 2012 the V8 project authors. All rights reserved.
|
| // 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"
|
|
|
| @@ -784,8 +782,7 @@
|
|
|
| // Calculates square root of base. Check for the special case of
|
| // Math.pow(-Infinity, 0.5) == Infinity (ECMA spec, 15.8.2.13).
|
| - __ vmov(double_scratch, -std::numeric_limits<double>::infinity(),
|
| - scratch);
|
| + __ vmov(double_scratch, -V8_INFINITY, scratch);
|
| __ VFPCompareAndSetFlags(double_base, double_scratch);
|
| __ vneg(double_result, double_scratch, eq);
|
| __ b(eq, &done);
|
| @@ -802,8 +799,7 @@
|
|
|
| // Calculates square root of base. Check for the special case of
|
| // Math.pow(-Infinity, -0.5) == 0 (ECMA spec, 15.8.2.13).
|
| - __ vmov(double_scratch, -std::numeric_limits<double>::infinity(),
|
| - scratch);
|
| + __ vmov(double_scratch, -V8_INFINITY, scratch);
|
| __ VFPCompareAndSetFlags(double_base, double_scratch);
|
| __ vmov(double_result, kDoubleRegZero, eq);
|
| __ b(eq, &done);
|
|
|