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/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
9 | 9 |
10 #include "vm/ast_printer.h" | 10 #include "vm/ast_printer.h" |
(...skipping 1579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1590 __ Drop(argument_count); | 1590 __ Drop(argument_count); |
1591 if (!is_last_check) { | 1591 if (!is_last_check) { |
1592 __ b(&match_found); | 1592 __ b(&match_found); |
1593 } | 1593 } |
1594 __ Bind(&next_test); | 1594 __ Bind(&next_test); |
1595 } | 1595 } |
1596 __ Bind(&match_found); | 1596 __ Bind(&match_found); |
1597 } | 1597 } |
1598 | 1598 |
1599 | 1599 |
1600 Address FlowGraphCompiler::ElementAddressForIntIndex(intptr_t cid, | 1600 Address FlowGraphCompiler::ElementAddressForIntIndex(bool is_load, |
| 1601 bool is_external, |
| 1602 intptr_t cid, |
1601 intptr_t index_scale, | 1603 intptr_t index_scale, |
1602 Register array, | 1604 Register array, |
1603 intptr_t index) { | 1605 intptr_t index) { |
1604 UNREACHABLE(); | 1606 UNREACHABLE(); |
1605 return FieldAddress(array, index); | 1607 return FieldAddress(array, index); |
1606 } | 1608 } |
1607 | 1609 |
1608 | 1610 |
1609 Address FlowGraphCompiler::ElementAddressForRegIndex(intptr_t cid, | 1611 Address FlowGraphCompiler::ElementAddressForRegIndex(bool is_load, |
| 1612 bool is_external, |
| 1613 intptr_t cid, |
1610 intptr_t index_scale, | 1614 intptr_t index_scale, |
1611 Register array, | 1615 Register array, |
1612 Register index) { | 1616 Register index) { |
1613 UNREACHABLE(); | 1617 UNREACHABLE(); |
1614 return FieldAddress(array, index); | 1618 return FieldAddress(array, index); |
1615 } | 1619 } |
1616 | 1620 |
1617 | 1621 |
1618 Address FlowGraphCompiler::ExternalElementAddressForIntIndex( | |
1619 intptr_t index_scale, | |
1620 Register array, | |
1621 intptr_t index) { | |
1622 UNREACHABLE(); | |
1623 return FieldAddress(array, index); | |
1624 } | |
1625 | |
1626 | |
1627 Address FlowGraphCompiler::ExternalElementAddressForRegIndex( | |
1628 intptr_t index_scale, | |
1629 Register array, | |
1630 Register index) { | |
1631 UNREACHABLE(); | |
1632 return FieldAddress(array, index); | |
1633 } | |
1634 | |
1635 | |
1636 #undef __ | 1622 #undef __ |
1637 #define __ compiler_->assembler()-> | 1623 #define __ compiler_->assembler()-> |
1638 | 1624 |
1639 | 1625 |
1640 void ParallelMoveResolver::EmitMove(int index) { | 1626 void ParallelMoveResolver::EmitMove(int index) { |
1641 MoveOperands* move = moves_[index]; | 1627 MoveOperands* move = moves_[index]; |
1642 const Location source = move->src(); | 1628 const Location source = move->src(); |
1643 const Location destination = move->dest(); | 1629 const Location destination = move->dest(); |
1644 __ TraceSimMsg("ParallelMoveResolver::EmitMove"); | 1630 __ TraceSimMsg("ParallelMoveResolver::EmitMove"); |
1645 | 1631 |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1865 __ AddImmediate(SP, kDoubleSize); | 1851 __ AddImmediate(SP, kDoubleSize); |
1866 } | 1852 } |
1867 | 1853 |
1868 | 1854 |
1869 #undef __ | 1855 #undef __ |
1870 | 1856 |
1871 | 1857 |
1872 } // namespace dart | 1858 } // namespace dart |
1873 | 1859 |
1874 #endif // defined TARGET_ARCH_MIPS | 1860 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |