| 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 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ | 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ |
| 6 #define VM_INTERMEDIATE_LANGUAGE_H_ | 6 #define VM_INTERMEDIATE_LANGUAGE_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/ast.h" | 9 #include "vm/ast.h" |
| 10 #include "vm/growable_array.h" | 10 #include "vm/growable_array.h" |
| (...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1180 | 1180 |
| 1181 | 1181 |
| 1182 class CreateArrayComp : public Computation { | 1182 class CreateArrayComp : public Computation { |
| 1183 public: | 1183 public: |
| 1184 CreateArrayComp(intptr_t token_pos, | 1184 CreateArrayComp(intptr_t token_pos, |
| 1185 intptr_t try_index, | 1185 intptr_t try_index, |
| 1186 ZoneGrowableArray<Value*>* elements, | 1186 ZoneGrowableArray<Value*>* elements, |
| 1187 Value* element_type) | 1187 Value* element_type) |
| 1188 : token_pos_(token_pos), | 1188 : token_pos_(token_pos), |
| 1189 try_index_(try_index), | 1189 try_index_(try_index), |
| 1190 elements_(elements) { | 1190 elements_(elements), |
| 1191 element_type_(element_type) { |
| 1191 #if defined(DEBUG) | 1192 #if defined(DEBUG) |
| 1192 for (int i = 0; i < ElementCount(); ++i) { | 1193 for (int i = 0; i < ElementCount(); ++i) { |
| 1193 ASSERT(ElementAt(i) != NULL); | 1194 ASSERT(ElementAt(i) != NULL); |
| 1194 } | 1195 } |
| 1195 ASSERT(element_type != NULL); | 1196 ASSERT(element_type != NULL); |
| 1196 #endif | 1197 #endif |
| 1197 } | 1198 } |
| 1198 | 1199 |
| 1199 DECLARE_CALL_COMPUTATION(CreateArray) | 1200 DECLARE_CALL_COMPUTATION(CreateArray) |
| 1200 | 1201 |
| (...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2755 const GrowableArray<BlockEntryInstr*>& block_order_; | 2756 const GrowableArray<BlockEntryInstr*>& block_order_; |
| 2756 | 2757 |
| 2757 private: | 2758 private: |
| 2758 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 2759 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 2759 }; | 2760 }; |
| 2760 | 2761 |
| 2761 | 2762 |
| 2762 } // namespace dart | 2763 } // namespace dart |
| 2763 | 2764 |
| 2764 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 2765 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |