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

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

Issue 773113005: MIPS64: [turbofan] Add checked load/store operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/codegen-mips64.cc ('k') | src/mips64/macro-assembler-mips64.h » ('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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/ic/ic.h" 10 #include "src/ic/ic.h"
(...skipping 3851 matching lines...) Expand 10 before | Expand all | Expand 10 after
3862 DoubleRegister input = ToDoubleRegister(instr->value()); 3862 DoubleRegister input = ToDoubleRegister(instr->value());
3863 DoubleRegister result = ToDoubleRegister(instr->result()); 3863 DoubleRegister result = ToDoubleRegister(instr->result());
3864 DoubleRegister temp = ToDoubleRegister(instr->temp()); 3864 DoubleRegister temp = ToDoubleRegister(instr->temp());
3865 3865
3866 DCHECK(!input.is(result)); 3866 DCHECK(!input.is(result));
3867 3867
3868 // Note that according to ECMA-262 15.8.2.13: 3868 // Note that according to ECMA-262 15.8.2.13:
3869 // Math.pow(-Infinity, 0.5) == Infinity 3869 // Math.pow(-Infinity, 0.5) == Infinity
3870 // Math.sqrt(-Infinity) == NaN 3870 // Math.sqrt(-Infinity) == NaN
3871 Label done; 3871 Label done;
3872 __ Move(temp, -V8_INFINITY); 3872 __ Move(temp, static_cast<double>(-V8_INFINITY));
3873 __ BranchF(USE_DELAY_SLOT, &done, NULL, eq, temp, input); 3873 __ BranchF(USE_DELAY_SLOT, &done, NULL, eq, temp, input);
3874 // Set up Infinity in the delay slot. 3874 // Set up Infinity in the delay slot.
3875 // result is overwritten if the branch is not taken. 3875 // result is overwritten if the branch is not taken.
3876 __ neg_d(result, temp); 3876 __ neg_d(result, temp);
3877 3877
3878 // Add +0 to convert -0 to +0. 3878 // Add +0 to convert -0 to +0.
3879 __ add_d(result, input, kDoubleRegZero); 3879 __ add_d(result, input, kDoubleRegZero);
3880 __ sqrt_d(result, result); 3880 __ sqrt_d(result, result);
3881 __ bind(&done); 3881 __ bind(&done);
3882 } 3882 }
(...skipping 2075 matching lines...) Expand 10 before | Expand all | Expand 10 after
5958 __ li(at, scope_info); 5958 __ li(at, scope_info);
5959 __ Push(at, ToRegister(instr->function())); 5959 __ Push(at, ToRegister(instr->function()));
5960 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5960 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5961 RecordSafepoint(Safepoint::kNoLazyDeopt); 5961 RecordSafepoint(Safepoint::kNoLazyDeopt);
5962 } 5962 }
5963 5963
5964 5964
5965 #undef __ 5965 #undef __
5966 5966
5967 } } // namespace v8::internal 5967 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips64/codegen-mips64.cc ('k') | src/mips64/macro-assembler-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698