| 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_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 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 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1551 } | 1551 } |
| 1552 | 1552 |
| 1553 | 1553 |
| 1554 Address FlowGraphCompiler::ExternalElementAddressForRegIndex( | 1554 Address FlowGraphCompiler::ExternalElementAddressForRegIndex( |
| 1555 intptr_t cid, | 1555 intptr_t cid, |
| 1556 intptr_t index_scale, | 1556 intptr_t index_scale, |
| 1557 Register array, | 1557 Register array, |
| 1558 Register index) { | 1558 Register index) { |
| 1559 switch (cid) { | 1559 switch (cid) { |
| 1560 case kExternalUint8ArrayCid: | 1560 case kExternalUint8ArrayCid: |
| 1561 case kExternalUint8ClampedArrayCid: |
| 1561 return Address(array, index, ToScaleFactor(index_scale), 0); | 1562 return Address(array, index, ToScaleFactor(index_scale), 0); |
| 1562 default: | 1563 default: |
| 1563 UNIMPLEMENTED(); | 1564 UNIMPLEMENTED(); |
| 1564 return Address(SPREG, 0); | 1565 return Address(SPREG, 0); |
| 1565 } | 1566 } |
| 1566 } | 1567 } |
| 1567 | 1568 |
| 1568 | 1569 |
| 1569 #undef __ | 1570 #undef __ |
| 1570 #define __ compiler_->assembler()-> | 1571 #define __ compiler_->assembler()-> |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1721 __ popl(ECX); | 1722 __ popl(ECX); |
| 1722 __ popl(EAX); | 1723 __ popl(EAX); |
| 1723 } | 1724 } |
| 1724 | 1725 |
| 1725 | 1726 |
| 1726 #undef __ | 1727 #undef __ |
| 1727 | 1728 |
| 1728 } // namespace dart | 1729 } // namespace dart |
| 1729 | 1730 |
| 1730 #endif // defined TARGET_ARCH_IA32 | 1731 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |