| 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_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 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 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1296 __ Ret(); | 1296 __ Ret(); |
| 1297 __ Bind(&is_smi); | 1297 __ Bind(&is_smi); |
| 1298 __ SmiUntag(R0); | 1298 __ SmiUntag(R0); |
| 1299 __ vmovsr(S0, R0); | 1299 __ vmovsr(S0, R0); |
| 1300 __ vcvtdi(D1, S0); | 1300 __ vcvtdi(D1, S0); |
| 1301 __ b(&double_op); | 1301 __ b(&double_op); |
| 1302 __ Bind(&fall_through); | 1302 __ Bind(&fall_through); |
| 1303 } | 1303 } |
| 1304 | 1304 |
| 1305 | 1305 |
| 1306 void Intrinsifier::Math_sin(Assembler* assembler) { | |
| 1307 } | |
| 1308 | |
| 1309 | |
| 1310 void Intrinsifier::Math_cos(Assembler* assembler) { | |
| 1311 } | |
| 1312 | |
| 1313 | |
| 1314 // var state = ((_A * (_state[kSTATE_LO])) + _state[kSTATE_HI]) & _MASK_64; | 1306 // var state = ((_A * (_state[kSTATE_LO])) + _state[kSTATE_HI]) & _MASK_64; |
| 1315 // _state[kSTATE_LO] = state & _MASK_32; | 1307 // _state[kSTATE_LO] = state & _MASK_32; |
| 1316 // _state[kSTATE_HI] = state >> 32; | 1308 // _state[kSTATE_HI] = state >> 32; |
| 1317 void Intrinsifier::Random_nextState(Assembler* assembler) { | 1309 void Intrinsifier::Random_nextState(Assembler* assembler) { |
| 1318 const Library& math_lib = Library::Handle(Library::MathLibrary()); | 1310 const Library& math_lib = Library::Handle(Library::MathLibrary()); |
| 1319 ASSERT(!math_lib.IsNull()); | 1311 ASSERT(!math_lib.IsNull()); |
| 1320 const Class& random_class = Class::Handle( | 1312 const Class& random_class = Class::Handle( |
| 1321 math_lib.LookupClassAllowPrivate(Symbols::_Random())); | 1313 math_lib.LookupClassAllowPrivate(Symbols::_Random())); |
| 1322 ASSERT(!random_class.IsNull()); | 1314 ASSERT(!random_class.IsNull()); |
| 1323 const Field& state_field = Field::ZoneHandle( | 1315 const Field& state_field = Field::ZoneHandle( |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1711 | 1703 |
| 1712 | 1704 |
| 1713 void Intrinsifier::TwoByteString_equality(Assembler* assembler) { | 1705 void Intrinsifier::TwoByteString_equality(Assembler* assembler) { |
| 1714 StringEquality(assembler, kTwoByteStringCid); | 1706 StringEquality(assembler, kTwoByteStringCid); |
| 1715 } | 1707 } |
| 1716 | 1708 |
| 1717 | 1709 |
| 1718 } // namespace dart | 1710 } // namespace dart |
| 1719 | 1711 |
| 1720 #endif // defined TARGET_ARCH_ARM | 1712 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |