Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 798413003: Remove obsolete V8_INFINITY macro. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address Svens smiley. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/assembler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <limits>
6
5 #include "src/v8.h" 7 #include "src/v8.h"
6 8
7 #include "src/arm/lithium-codegen-arm.h" 9 #include "src/arm/lithium-codegen-arm.h"
8 #include "src/arm/lithium-gap-resolver-arm.h" 10 #include "src/arm/lithium-gap-resolver-arm.h"
9 #include "src/base/bits.h" 11 #include "src/base/bits.h"
10 #include "src/code-factory.h" 12 #include "src/code-factory.h"
11 #include "src/code-stubs.h" 13 #include "src/code-stubs.h"
12 #include "src/hydrogen-osr.h" 14 #include "src/hydrogen-osr.h"
13 #include "src/ic/ic.h" 15 #include "src/ic/ic.h"
14 #include "src/ic/stub-cache.h" 16 #include "src/ic/stub-cache.h"
(...skipping 3858 matching lines...) Expand 10 before | Expand all | Expand 10 after
3873 3875
3874 void LCodeGen::DoMathPowHalf(LMathPowHalf* instr) { 3876 void LCodeGen::DoMathPowHalf(LMathPowHalf* instr) {
3875 DwVfpRegister input = ToDoubleRegister(instr->value()); 3877 DwVfpRegister input = ToDoubleRegister(instr->value());
3876 DwVfpRegister result = ToDoubleRegister(instr->result()); 3878 DwVfpRegister result = ToDoubleRegister(instr->result());
3877 DwVfpRegister temp = double_scratch0(); 3879 DwVfpRegister temp = double_scratch0();
3878 3880
3879 // Note that according to ECMA-262 15.8.2.13: 3881 // Note that according to ECMA-262 15.8.2.13:
3880 // Math.pow(-Infinity, 0.5) == Infinity 3882 // Math.pow(-Infinity, 0.5) == Infinity
3881 // Math.sqrt(-Infinity) == NaN 3883 // Math.sqrt(-Infinity) == NaN
3882 Label done; 3884 Label done;
3883 __ vmov(temp, -V8_INFINITY, scratch0()); 3885 __ vmov(temp, -std::numeric_limits<double>::infinity(), scratch0());
3884 __ VFPCompareAndSetFlags(input, temp); 3886 __ VFPCompareAndSetFlags(input, temp);
3885 __ vneg(result, temp, eq); 3887 __ vneg(result, temp, eq);
3886 __ b(&done, eq); 3888 __ b(&done, eq);
3887 3889
3888 // Add +0 to convert -0 to +0. 3890 // Add +0 to convert -0 to +0.
3889 __ vadd(result, input, kDoubleRegZero); 3891 __ vadd(result, input, kDoubleRegZero);
3890 __ vsqrt(result, result); 3892 __ vsqrt(result, result);
3891 __ bind(&done); 3893 __ bind(&done);
3892 } 3894 }
3893 3895
(...skipping 2054 matching lines...) Expand 10 before | Expand all | Expand 10 after
5948 __ Push(scope_info); 5950 __ Push(scope_info);
5949 __ push(ToRegister(instr->function())); 5951 __ push(ToRegister(instr->function()));
5950 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5952 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5951 RecordSafepoint(Safepoint::kNoLazyDeopt); 5953 RecordSafepoint(Safepoint::kNoLazyDeopt);
5952 } 5954 }
5953 5955
5954 5956
5955 #undef __ 5957 #undef __
5956 5958
5957 } } // namespace v8::internal 5959 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698