| 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/intermediate_language.h" | 5 #include "vm/intermediate_language.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/dart_entry.h" | 8 #include "vm/dart_entry.h" |
| 9 #include "vm/flow_graph_allocator.h" | 9 #include "vm/flow_graph_allocator.h" |
| 10 #include "vm/flow_graph_builder.h" | 10 #include "vm/flow_graph_builder.h" |
| (...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1122 RawAbstractType* StringCharCodeAtInstr::CompileType() const { | 1122 RawAbstractType* StringCharCodeAtInstr::CompileType() const { |
| 1123 return Type::IntType(); | 1123 return Type::IntType(); |
| 1124 } | 1124 } |
| 1125 | 1125 |
| 1126 | 1126 |
| 1127 intptr_t StringCharCodeAtInstr::ResultCid() const { | 1127 intptr_t StringCharCodeAtInstr::ResultCid() const { |
| 1128 return kSmiCid; | 1128 return kSmiCid; |
| 1129 } | 1129 } |
| 1130 | 1130 |
| 1131 | 1131 |
| 1132 RawAbstractType* StringFromCharCodeInstr::CompileType() const { |
| 1133 return Type::StringType(); |
| 1134 } |
| 1135 |
| 1136 |
| 1137 intptr_t StringFromCharCodeInstr::ResultCid() const { |
| 1138 return kDynamicCid; |
| 1139 } |
| 1140 |
| 1141 |
| 1132 RawAbstractType* LoadIndexedInstr::CompileType() const { | 1142 RawAbstractType* LoadIndexedInstr::CompileType() const { |
| 1133 switch (class_id_) { | 1143 switch (class_id_) { |
| 1134 case kArrayCid: | 1144 case kArrayCid: |
| 1135 case kGrowableObjectArrayCid: | 1145 case kGrowableObjectArrayCid: |
| 1136 case kImmutableArrayCid: | 1146 case kImmutableArrayCid: |
| 1137 return Type::DynamicType(); | 1147 return Type::DynamicType(); |
| 1138 case kFloat32ArrayCid : | 1148 case kFloat32ArrayCid : |
| 1139 case kFloat64ArrayCid : | 1149 case kFloat64ArrayCid : |
| 1140 return Type::Double(); | 1150 return Type::Double(); |
| 1141 default: | 1151 default: |
| (...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2654 return Array::length_offset(); | 2664 return Array::length_offset(); |
| 2655 default: | 2665 default: |
| 2656 UNREACHABLE(); | 2666 UNREACHABLE(); |
| 2657 return -1; | 2667 return -1; |
| 2658 } | 2668 } |
| 2659 } | 2669 } |
| 2660 | 2670 |
| 2661 #undef __ | 2671 #undef __ |
| 2662 | 2672 |
| 2663 } // namespace dart | 2673 } // namespace dart |
| OLD | NEW |