| 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_FLOW_GRAPH_BUILDER_H_ | 5 #ifndef VM_FLOW_GRAPH_BUILDER_H_ |
| 6 #define VM_FLOW_GRAPH_BUILDER_H_ | 6 #define VM_FLOW_GRAPH_BUILDER_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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 ZoneGrowableArray<PushArgumentInstr*>* values); | 171 ZoneGrowableArray<PushArgumentInstr*>* values); |
| 172 | 172 |
| 173 // Creates an instantiated type argument vector used in preparation of an | 173 // Creates an instantiated type argument vector used in preparation of an |
| 174 // allocation call. | 174 // allocation call. |
| 175 // May be called only if allocating an object of a parameterized class. | 175 // May be called only if allocating an object of a parameterized class. |
| 176 Value* BuildInstantiatedTypeArguments( | 176 Value* BuildInstantiatedTypeArguments( |
| 177 intptr_t token_pos, | 177 intptr_t token_pos, |
| 178 const AbstractTypeArguments& type_arguments); | 178 const AbstractTypeArguments& type_arguments); |
| 179 | 179 |
| 180 // Creates a possibly uninstantiated type argument vector and the type | 180 // Creates a possibly uninstantiated type argument vector and the type |
| 181 // argument vector of the instantiator (two values in 'args') used in | 181 // argument vector of the instantiator used in |
| 182 // preparation of a constructor call. | 182 // preparation of a constructor call. |
| 183 // May be called only if allocating an object of a parameterized class. | 183 // May be called only if allocating an object of a parameterized class. |
| 184 void BuildConstructorTypeArguments(ConstructorCallNode* node, | 184 void BuildConstructorTypeArguments( |
| 185 ZoneGrowableArray<Value*>* args); | 185 ConstructorCallNode* node, |
| 186 Value** type_arguments, |
| 187 Value** instantiator, |
| 188 ZoneGrowableArray<PushArgumentInstr*>* call_arguments); |
| 186 | 189 |
| 187 void BuildTypecheckArguments(intptr_t token_pos, | 190 void BuildTypecheckArguments(intptr_t token_pos, |
| 188 Value** instantiator, | 191 Value** instantiator, |
| 189 Value** instantiator_type_arguments); | 192 Value** instantiator_type_arguments); |
| 190 Value* BuildInstantiator(); | 193 Value* BuildInstantiator(); |
| 191 Value* BuildInstantiatorTypeArguments(intptr_t token_pos, | 194 Value* BuildInstantiatorTypeArguments(intptr_t token_pos, |
| 192 Value* instantiator); | 195 Value* instantiator); |
| 193 | 196 |
| 194 // Perform a type check on the given value. | 197 // Perform a type check on the given value. |
| 195 AssertAssignableComp* BuildAssertAssignable(intptr_t token_pos, | 198 AssertAssignableComp* BuildAssertAssignable(intptr_t token_pos, |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 // Output parameters. | 372 // Output parameters. |
| 370 TargetEntryInstr** true_successor_address_; | 373 TargetEntryInstr** true_successor_address_; |
| 371 TargetEntryInstr** false_successor_address_; | 374 TargetEntryInstr** false_successor_address_; |
| 372 | 375 |
| 373 intptr_t condition_token_pos_; | 376 intptr_t condition_token_pos_; |
| 374 }; | 377 }; |
| 375 | 378 |
| 376 } // namespace dart | 379 } // namespace dart |
| 377 | 380 |
| 378 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 381 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |