| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_XXX. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. |
| 6 | 6 |
| 7 #include "vm/flow_graph_compiler.h" | 7 #include "vm/flow_graph_compiler.h" |
| 8 | 8 |
| 9 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
| 10 #include "vm/debugger.h" | 10 #include "vm/debugger.h" |
| (...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 900 Register array, | 900 Register array, |
| 901 intptr_t offset) { | 901 intptr_t offset) { |
| 902 switch (cid) { | 902 switch (cid) { |
| 903 case kArrayCid: | 903 case kArrayCid: |
| 904 case kGrowableObjectArrayCid: | 904 case kGrowableObjectArrayCid: |
| 905 case kImmutableArrayCid: { | 905 case kImmutableArrayCid: { |
| 906 const intptr_t disp = offset * kWordSize + sizeof(RawArray); | 906 const intptr_t disp = offset * kWordSize + sizeof(RawArray); |
| 907 ASSERT(Utils::IsInt(31, disp)); | 907 ASSERT(Utils::IsInt(31, disp)); |
| 908 return FieldAddress(array, disp); | 908 return FieldAddress(array, disp); |
| 909 } | 909 } |
| 910 case kFloat32ArrayCid: { |
| 911 const intptr_t disp = |
| 912 offset * kFloatSize + Float32Array::data_offset(); |
| 913 ASSERT(Utils::IsInt(31, disp)); |
| 914 return FieldAddress(array, disp); |
| 915 } |
| 910 case kFloat64ArrayCid: { | 916 case kFloat64ArrayCid: { |
| 911 const intptr_t disp = | 917 const intptr_t disp = |
| 912 offset * kDoubleSize + Float64Array::data_offset(); | 918 offset * kDoubleSize + Float64Array::data_offset(); |
| 913 ASSERT(Utils::IsInt(31, disp)); | 919 ASSERT(Utils::IsInt(31, disp)); |
| 914 return FieldAddress(array, disp); | 920 return FieldAddress(array, disp); |
| 915 } | 921 } |
| 916 default: | 922 default: |
| 917 UNIMPLEMENTED(); | 923 UNIMPLEMENTED(); |
| 918 return FieldAddress(SPREG, 0); | 924 return FieldAddress(SPREG, 0); |
| 919 } | 925 } |
| 920 } | 926 } |
| 921 | 927 |
| 922 } // namespace dart | 928 } // namespace dart |
| OLD | NEW |