| 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 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1516 return FieldAddress(array, index, TIMES_1, Int8Array::data_offset()); | 1516 return FieldAddress(array, index, TIMES_1, Int8Array::data_offset()); |
| 1517 case kUint8ArrayCid: | 1517 case kUint8ArrayCid: |
| 1518 return FieldAddress(array, index, TIMES_1, Uint8Array::data_offset()); | 1518 return FieldAddress(array, index, TIMES_1, Uint8Array::data_offset()); |
| 1519 case kUint8ClampedArrayCid: | 1519 case kUint8ClampedArrayCid: |
| 1520 return | 1520 return |
| 1521 FieldAddress(array, index, TIMES_1, Uint8ClampedArray::data_offset()); | 1521 FieldAddress(array, index, TIMES_1, Uint8ClampedArray::data_offset()); |
| 1522 case kInt16ArrayCid: | 1522 case kInt16ArrayCid: |
| 1523 return FieldAddress(array, index, TIMES_1, Int16Array::data_offset()); | 1523 return FieldAddress(array, index, TIMES_1, Int16Array::data_offset()); |
| 1524 case kUint16ArrayCid: | 1524 case kUint16ArrayCid: |
| 1525 return FieldAddress(array, index, TIMES_1, Uint16Array::data_offset()); | 1525 return FieldAddress(array, index, TIMES_1, Uint16Array::data_offset()); |
| 1526 case kInt32ArrayCid: |
| 1527 return FieldAddress(array, index, TIMES_2, Int32Array::data_offset()); |
| 1528 case kUint32ArrayCid: |
| 1529 return FieldAddress(array, index, TIMES_2, Uint32Array::data_offset()); |
| 1526 case kOneByteStringCid: | 1530 case kOneByteStringCid: |
| 1527 return FieldAddress(array, index, TIMES_1, OneByteString::data_offset()); | 1531 return FieldAddress(array, index, TIMES_1, OneByteString::data_offset()); |
| 1528 case kTwoByteStringCid: | 1532 case kTwoByteStringCid: |
| 1529 return FieldAddress(array, index, TIMES_1, TwoByteString::data_offset()); | 1533 return FieldAddress(array, index, TIMES_1, TwoByteString::data_offset()); |
| 1530 default: | 1534 default: |
| 1531 UNIMPLEMENTED(); | 1535 UNIMPLEMENTED(); |
| 1532 return FieldAddress(SPREG, 0); | 1536 return FieldAddress(SPREG, 0); |
| 1533 } | 1537 } |
| 1534 } | 1538 } |
| 1535 | 1539 |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1709 __ popl(ECX); | 1713 __ popl(ECX); |
| 1710 __ popl(EAX); | 1714 __ popl(EAX); |
| 1711 } | 1715 } |
| 1712 | 1716 |
| 1713 | 1717 |
| 1714 #undef __ | 1718 #undef __ |
| 1715 | 1719 |
| 1716 } // namespace dart | 1720 } // namespace dart |
| 1717 | 1721 |
| 1718 #endif // defined TARGET_ARCH_IA32 | 1722 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |