| 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 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1389 // Addresses of _state[0] and _state[1]. | 1389 // Addresses of _state[0] and _state[1]. |
| 1390 | 1390 |
| 1391 const int64_t disp_0 = | 1391 const int64_t disp_0 = |
| 1392 FlowGraphCompiler::DataOffsetFor(kTypedDataUint32ArrayCid); | 1392 FlowGraphCompiler::DataOffsetFor(kTypedDataUint32ArrayCid); |
| 1393 | 1393 |
| 1394 const int64_t disp_1 = | 1394 const int64_t disp_1 = |
| 1395 FlowGraphCompiler::ElementSizeFor(kTypedDataUint32ArrayCid) + | 1395 FlowGraphCompiler::ElementSizeFor(kTypedDataUint32ArrayCid) + |
| 1396 FlowGraphCompiler::DataOffsetFor(kTypedDataUint32ArrayCid); | 1396 FlowGraphCompiler::DataOffsetFor(kTypedDataUint32ArrayCid); |
| 1397 | 1397 |
| 1398 __ LoadImmediate(R0, a_int32_value); | 1398 __ LoadImmediate(R0, a_int32_value); |
| 1399 __ LoadFromOffset(kLoadWord, R2, R1, disp_0 - kHeapObjectTag); | 1399 __ LoadFromOffset(kWord, R2, R1, disp_0 - kHeapObjectTag); |
| 1400 __ LoadFromOffset(kLoadWord, R3, R1, disp_1 - kHeapObjectTag); | 1400 __ LoadFromOffset(kWord, R3, R1, disp_1 - kHeapObjectTag); |
| 1401 __ mov(R6, ShifterOperand(0)); // Zero extend unsigned _state[kSTATE_HI]. | 1401 __ mov(R6, ShifterOperand(0)); // Zero extend unsigned _state[kSTATE_HI]. |
| 1402 // Unsigned 32-bit multiply and 64-bit accumulate into R6:R3. | 1402 // Unsigned 32-bit multiply and 64-bit accumulate into R6:R3. |
| 1403 __ umlal(R3, R6, R0, R2); // R6:R3 <- R6:R3 + R0 * R2. | 1403 __ umlal(R3, R6, R0, R2); // R6:R3 <- R6:R3 + R0 * R2. |
| 1404 __ StoreToOffset(kStoreWord, R3, R1, disp_0 - kHeapObjectTag); | 1404 __ StoreToOffset(kWord, R3, R1, disp_0 - kHeapObjectTag); |
| 1405 __ StoreToOffset(kStoreWord, R6, R1, disp_1 - kHeapObjectTag); | 1405 __ StoreToOffset(kWord, R6, R1, disp_1 - kHeapObjectTag); |
| 1406 __ Ret(); | 1406 __ Ret(); |
| 1407 return true; | 1407 return true; |
| 1408 } | 1408 } |
| 1409 | 1409 |
| 1410 | 1410 |
| 1411 bool Intrinsifier::Object_equal(Assembler* assembler) { | 1411 bool Intrinsifier::Object_equal(Assembler* assembler) { |
| 1412 __ ldr(R0, Address(SP, 0 * kWordSize)); | 1412 __ ldr(R0, Address(SP, 0 * kWordSize)); |
| 1413 __ ldr(R1, Address(SP, 1 * kWordSize)); | 1413 __ ldr(R1, Address(SP, 1 * kWordSize)); |
| 1414 __ cmp(R0, ShifterOperand(R1)); | 1414 __ cmp(R0, ShifterOperand(R1)); |
| 1415 __ LoadObject(R0, Bool::False(), NE); | 1415 __ LoadObject(R0, Bool::False(), NE); |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1693 __ Bind(&ok); | 1693 __ Bind(&ok); |
| 1694 __ Ret(); | 1694 __ Ret(); |
| 1695 | 1695 |
| 1696 __ Bind(&fall_through); | 1696 __ Bind(&fall_through); |
| 1697 return false; | 1697 return false; |
| 1698 } | 1698 } |
| 1699 | 1699 |
| 1700 } // namespace dart | 1700 } // namespace dart |
| 1701 | 1701 |
| 1702 #endif // defined TARGET_ARCH_ARM | 1702 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |