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

Side by Side Diff: src/mips64/lithium-codegen-mips64.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/mips64/code-stubs-mips64.cc ('k') | src/mips64/simulator-mips64.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/code-factory.h" 9 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
9 #include "src/hydrogen-osr.h" 11 #include "src/hydrogen-osr.h"
10 #include "src/ic/ic.h" 12 #include "src/ic/ic.h"
11 #include "src/ic/stub-cache.h" 13 #include "src/ic/stub-cache.h"
12 #include "src/mips64/lithium-codegen-mips64.h" 14 #include "src/mips64/lithium-codegen-mips64.h"
13 #include "src/mips64/lithium-gap-resolver-mips64.h" 15 #include "src/mips64/lithium-gap-resolver-mips64.h"
14 16
(...skipping 3852 matching lines...) Expand 10 before | Expand all | Expand 10 after
3867 DoubleRegister input = ToDoubleRegister(instr->value()); 3869 DoubleRegister input = ToDoubleRegister(instr->value());
3868 DoubleRegister result = ToDoubleRegister(instr->result()); 3870 DoubleRegister result = ToDoubleRegister(instr->result());
3869 DoubleRegister temp = ToDoubleRegister(instr->temp()); 3871 DoubleRegister temp = ToDoubleRegister(instr->temp());
3870 3872
3871 DCHECK(!input.is(result)); 3873 DCHECK(!input.is(result));
3872 3874
3873 // Note that according to ECMA-262 15.8.2.13: 3875 // Note that according to ECMA-262 15.8.2.13:
3874 // Math.pow(-Infinity, 0.5) == Infinity 3876 // Math.pow(-Infinity, 0.5) == Infinity
3875 // Math.sqrt(-Infinity) == NaN 3877 // Math.sqrt(-Infinity) == NaN
3876 Label done; 3878 Label done;
3877 __ Move(temp, static_cast<double>(-V8_INFINITY)); 3879 __ Move(temp, std::numeric_limits<double>::infinity());
3878 __ BranchF(USE_DELAY_SLOT, &done, NULL, eq, temp, input); 3880 __ BranchF(USE_DELAY_SLOT, &done, NULL, eq, temp, input);
3879 // Set up Infinity in the delay slot. 3881 // Set up Infinity in the delay slot.
3880 // result is overwritten if the branch is not taken. 3882 // result is overwritten if the branch is not taken.
3881 __ neg_d(result, temp); 3883 __ neg_d(result, temp);
3882 3884
3883 // Add +0 to convert -0 to +0. 3885 // Add +0 to convert -0 to +0.
3884 __ add_d(result, input, kDoubleRegZero); 3886 __ add_d(result, input, kDoubleRegZero);
3885 __ sqrt_d(result, result); 3887 __ sqrt_d(result, result);
3886 __ bind(&done); 3888 __ bind(&done);
3887 } 3889 }
(...skipping 2103 matching lines...) Expand 10 before | Expand all | Expand 10 after
5991 __ li(at, scope_info); 5993 __ li(at, scope_info);
5992 __ Push(at, ToRegister(instr->function())); 5994 __ Push(at, ToRegister(instr->function()));
5993 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5995 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5994 RecordSafepoint(Safepoint::kNoLazyDeopt); 5996 RecordSafepoint(Safepoint::kNoLazyDeopt);
5995 } 5997 }
5996 5998
5997 5999
5998 #undef __ 6000 #undef __
5999 6001
6000 } } // namespace v8::internal 6002 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips64/code-stubs-mips64.cc ('k') | src/mips64/simulator-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698