| 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 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1452 const Address& addr_0 = FieldAddress(T1, | 1452 const Address& addr_0 = FieldAddress(T1, |
| 1453 FlowGraphCompiler::DataOffsetFor(kTypedDataUint32ArrayCid)); | 1453 FlowGraphCompiler::DataOffsetFor(kTypedDataUint32ArrayCid)); |
| 1454 | 1454 |
| 1455 const Address& addr_1 = FieldAddress(T1, | 1455 const Address& addr_1 = FieldAddress(T1, |
| 1456 FlowGraphCompiler::ElementSizeFor(kTypedDataUint32ArrayCid) + | 1456 FlowGraphCompiler::ElementSizeFor(kTypedDataUint32ArrayCid) + |
| 1457 FlowGraphCompiler::DataOffsetFor(kTypedDataUint32ArrayCid)); | 1457 FlowGraphCompiler::DataOffsetFor(kTypedDataUint32ArrayCid)); |
| 1458 | 1458 |
| 1459 __ LoadImmediate(T0, a_int32_value); | 1459 __ LoadImmediate(T0, a_int32_value); |
| 1460 __ lw(T2, addr_0); | 1460 __ lw(T2, addr_0); |
| 1461 __ lw(T3, addr_1); | 1461 __ lw(T3, addr_1); |
| 1462 __ sra(T6, T3, 31); // Sign extend T3 into T6. | |
| 1463 __ mtlo(T3); | 1462 __ mtlo(T3); |
| 1464 __ mthi(T6); // HI:LO <- T6:T3 | 1463 __ mthi(ZR); // HI:LO <- ZR:T3 Zero extend T3 into HI. |
| 1465 // 64-bit multiply and accumulate into T6:T3. | 1464 // 64-bit multiply and accumulate into T6:T3. |
| 1466 __ madd(T0, T2); // HI:LO <- HI:LO + T0 * T2. | 1465 __ maddu(T0, T2); // HI:LO <- HI:LO + T0 * T2. |
| 1467 __ mflo(T3); | 1466 __ mflo(T3); |
| 1468 __ mfhi(T6); | 1467 __ mfhi(T6); |
| 1469 __ sw(T3, addr_0); | 1468 __ sw(T3, addr_0); |
| 1470 __ sw(T6, addr_1); | 1469 __ sw(T6, addr_1); |
| 1471 __ Ret(); | 1470 __ Ret(); |
| 1472 return true; | 1471 return true; |
| 1473 } | 1472 } |
| 1474 | 1473 |
| 1475 | 1474 |
| 1476 bool Intrinsifier::Object_equal(Assembler* assembler) { | 1475 bool Intrinsifier::Object_equal(Assembler* assembler) { |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1776 __ Bind(&ok); | 1775 __ Bind(&ok); |
| 1777 __ Ret(); | 1776 __ Ret(); |
| 1778 | 1777 |
| 1779 __ Bind(&fall_through); | 1778 __ Bind(&fall_through); |
| 1780 return false; | 1779 return false; |
| 1781 } | 1780 } |
| 1782 | 1781 |
| 1783 } // namespace dart | 1782 } // namespace dart |
| 1784 | 1783 |
| 1785 #endif // defined TARGET_ARCH_MIPS | 1784 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |