| 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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 7 | 7 |
| 8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 #include "lib/error.h" | 10 #include "lib/error.h" |
| (...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1555 } | 1555 } |
| 1556 | 1556 |
| 1557 | 1557 |
| 1558 Address FlowGraphCompiler::ExternalElementAddressForRegIndex( | 1558 Address FlowGraphCompiler::ExternalElementAddressForRegIndex( |
| 1559 intptr_t cid, | 1559 intptr_t cid, |
| 1560 intptr_t index_scale, | 1560 intptr_t index_scale, |
| 1561 Register array, | 1561 Register array, |
| 1562 Register index) { | 1562 Register index) { |
| 1563 switch (cid) { | 1563 switch (cid) { |
| 1564 case kExternalUint8ArrayCid: | 1564 case kExternalUint8ArrayCid: |
| 1565 case kExternalUint8ClampedArrayCid: |
| 1565 return Address(array, index, ToScaleFactor(index_scale), 0); | 1566 return Address(array, index, ToScaleFactor(index_scale), 0); |
| 1566 default: | 1567 default: |
| 1567 UNIMPLEMENTED(); | 1568 UNIMPLEMENTED(); |
| 1568 return Address(SPREG, 0); | 1569 return Address(SPREG, 0); |
| 1569 } | 1570 } |
| 1570 } | 1571 } |
| 1571 | 1572 |
| 1572 | 1573 |
| 1573 #undef __ | 1574 #undef __ |
| 1574 #define __ compiler_->assembler()-> | 1575 #define __ compiler_->assembler()-> |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1699 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { | 1700 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { |
| 1700 __ Exchange(mem1, mem2); | 1701 __ Exchange(mem1, mem2); |
| 1701 } | 1702 } |
| 1702 | 1703 |
| 1703 | 1704 |
| 1704 #undef __ | 1705 #undef __ |
| 1705 | 1706 |
| 1706 } // namespace dart | 1707 } // namespace dart |
| 1707 | 1708 |
| 1708 #endif // defined TARGET_ARCH_X64 | 1709 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |