| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 7 | 7 |
| 8 #include "vm/intrinsifier.h" | 8 #include "vm/intrinsifier.h" |
| 9 | 9 |
| 10 #include "vm/assembler.h" | 10 #include "vm/assembler.h" |
| (...skipping 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1233 | 1233 |
| 1234 | 1234 |
| 1235 void Intrinsifier::Double_div(Assembler* assembler) { | 1235 void Intrinsifier::Double_div(Assembler* assembler) { |
| 1236 return DoubleArithmeticOperations(assembler, Token::kDIV); | 1236 return DoubleArithmeticOperations(assembler, Token::kDIV); |
| 1237 } | 1237 } |
| 1238 | 1238 |
| 1239 | 1239 |
| 1240 // Left is double right is integer (Bigint, Mint or Smi) | 1240 // Left is double right is integer (Bigint, Mint or Smi) |
| 1241 void Intrinsifier::Double_mulFromInteger(Assembler* assembler) { | 1241 void Intrinsifier::Double_mulFromInteger(Assembler* assembler) { |
| 1242 Label fall_through; | 1242 Label fall_through; |
| 1243 // Only Smi-s allowed. | 1243 // Only smis allowed. |
| 1244 __ lw(T0, Address(SP, 0 * kWordSize)); | 1244 __ lw(T0, Address(SP, 0 * kWordSize)); |
| 1245 __ andi(CMPRES, T0, Immediate(kSmiTagMask)); | 1245 __ andi(CMPRES, T0, Immediate(kSmiTagMask)); |
| 1246 __ bne(CMPRES, ZR, &fall_through); | 1246 __ bne(CMPRES, ZR, &fall_through); |
| 1247 | 1247 |
| 1248 // Is Smi. | 1248 // Is Smi. |
| 1249 __ SmiUntag(T0); | 1249 __ SmiUntag(T0); |
| 1250 __ mtc1(T0, F4); | 1250 __ mtc1(T0, F4); |
| 1251 __ cvtdw(D1, F4); | 1251 __ cvtdw(D1, F4); |
| 1252 | 1252 |
| 1253 __ lw(T0, Address(SP, 1 * kWordSize)); | 1253 __ lw(T0, Address(SP, 1 * kWordSize)); |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1729 | 1729 |
| 1730 __ Bind(&ok); | 1730 __ Bind(&ok); |
| 1731 __ Ret(); | 1731 __ Ret(); |
| 1732 | 1732 |
| 1733 __ Bind(&fall_through); | 1733 __ Bind(&fall_through); |
| 1734 } | 1734 } |
| 1735 | 1735 |
| 1736 } // namespace dart | 1736 } // namespace dart |
| 1737 | 1737 |
| 1738 #endif // defined TARGET_ARCH_MIPS | 1738 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |