OLD | NEW |
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 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1284 __ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()), | 1284 __ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()), |
1285 0, 2); | 1285 0, 2); |
1286 // Move the result in the double result register. | 1286 // Move the result in the double result register. |
1287 __ MovFromFloatResult(i.OutputSingleRegister()); | 1287 __ MovFromFloatResult(i.OutputSingleRegister()); |
1288 break; | 1288 break; |
1289 } | 1289 } |
1290 case kMips64AbsS: | 1290 case kMips64AbsS: |
1291 __ abs_s(i.OutputSingleRegister(), i.InputSingleRegister(0)); | 1291 __ abs_s(i.OutputSingleRegister(), i.InputSingleRegister(0)); |
1292 break; | 1292 break; |
1293 case kMips64NegS: | 1293 case kMips64NegS: |
1294 __ neg_s(i.OutputSingleRegister(), i.InputSingleRegister(0)); | 1294 __ Neg_s(i.OutputSingleRegister(), i.InputSingleRegister(0)); |
1295 break; | 1295 break; |
1296 case kMips64SqrtS: { | 1296 case kMips64SqrtS: { |
1297 __ sqrt_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); | 1297 __ sqrt_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
1298 break; | 1298 break; |
1299 } | 1299 } |
1300 case kMips64MaxS: | 1300 case kMips64MaxS: |
1301 __ max_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1301 __ max_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1302 i.InputDoubleRegister(1)); | 1302 i.InputDoubleRegister(1)); |
1303 break; | 1303 break; |
1304 case kMips64MinS: | 1304 case kMips64MinS: |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1336 __ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()), | 1336 __ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()), |
1337 0, 2); | 1337 0, 2); |
1338 // Move the result in the double result register. | 1338 // Move the result in the double result register. |
1339 __ MovFromFloatResult(i.OutputDoubleRegister()); | 1339 __ MovFromFloatResult(i.OutputDoubleRegister()); |
1340 break; | 1340 break; |
1341 } | 1341 } |
1342 case kMips64AbsD: | 1342 case kMips64AbsD: |
1343 __ abs_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); | 1343 __ abs_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
1344 break; | 1344 break; |
1345 case kMips64NegD: | 1345 case kMips64NegD: |
1346 __ neg_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); | 1346 __ Neg_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
1347 break; | 1347 break; |
1348 case kMips64SqrtD: { | 1348 case kMips64SqrtD: { |
1349 __ sqrt_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); | 1349 __ sqrt_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
1350 break; | 1350 break; |
1351 } | 1351 } |
1352 case kMips64MaxD: | 1352 case kMips64MaxD: |
1353 __ max_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1353 __ max_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1354 i.InputDoubleRegister(1)); | 1354 i.InputDoubleRegister(1)); |
1355 break; | 1355 break; |
1356 case kMips64MinD: | 1356 case kMips64MinD: |
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2456 padding_size -= v8::internal::Assembler::kInstrSize; | 2456 padding_size -= v8::internal::Assembler::kInstrSize; |
2457 } | 2457 } |
2458 } | 2458 } |
2459 } | 2459 } |
2460 | 2460 |
2461 #undef __ | 2461 #undef __ |
2462 | 2462 |
2463 } // namespace compiler | 2463 } // namespace compiler |
2464 } // namespace internal | 2464 } // namespace internal |
2465 } // namespace v8 | 2465 } // namespace v8 |
OLD | NEW |