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

Side by Side Diff: src/compiler/mips/code-generator-mips.cc

Issue 2256963003: MIPS: Implement Neg_d and Neg_s instruction macros. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix a typo Created 4 years, 4 months 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 | « no previous file | src/compiler/mips64/code-generator-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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ast/scopes.h" 5 #include "src/ast/scopes.h"
6 #include "src/compiler/code-generator.h" 6 #include "src/compiler/code-generator.h"
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1140 __ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()), 1140 __ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()),
1141 0, 2); 1141 0, 2);
1142 // Move the result in the double result register. 1142 // Move the result in the double result register.
1143 __ MovFromFloatResult(i.OutputDoubleRegister()); 1143 __ MovFromFloatResult(i.OutputDoubleRegister());
1144 break; 1144 break;
1145 } 1145 }
1146 case kMipsAbsD: 1146 case kMipsAbsD:
1147 __ abs_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); 1147 __ abs_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
1148 break; 1148 break;
1149 case kMipsNegS: 1149 case kMipsNegS:
1150 __ neg_s(i.OutputSingleRegister(), i.InputSingleRegister(0)); 1150 __ Neg_s(i.OutputSingleRegister(), i.InputSingleRegister(0));
1151 break; 1151 break;
1152 case kMipsNegD: 1152 case kMipsNegD:
1153 __ neg_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); 1153 __ Neg_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
1154 break; 1154 break;
1155 case kMipsSqrtD: { 1155 case kMipsSqrtD: {
1156 __ sqrt_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); 1156 __ sqrt_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
1157 break; 1157 break;
1158 } 1158 }
1159 case kMipsMaxD: 1159 case kMipsMaxD:
1160 __ max_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), 1160 __ max_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
1161 i.InputDoubleRegister(1)); 1161 i.InputDoubleRegister(1));
1162 break; 1162 break;
1163 case kMipsMinD: 1163 case kMipsMinD:
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
2186 padding_size -= v8::internal::Assembler::kInstrSize; 2186 padding_size -= v8::internal::Assembler::kInstrSize;
2187 } 2187 }
2188 } 2188 }
2189 } 2189 }
2190 2190
2191 #undef __ 2191 #undef __
2192 2192
2193 } // namespace compiler 2193 } // namespace compiler
2194 } // namespace internal 2194 } // namespace internal
2195 } // namespace v8 2195 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/mips64/code-generator-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698