| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // which parts are reachable. Afterward, the graph exit is the false | 110 // which parts are reachable. Afterward, the graph exit is the false |
| 111 // successor of the loop condition. | 111 // successor of the loop condition. |
| 112 void TieLoop(const TestGraphVisitor& test_fragment, | 112 void TieLoop(const TestGraphVisitor& test_fragment, |
| 113 const EffectGraphVisitor& body_fragment); | 113 const EffectGraphVisitor& body_fragment); |
| 114 | 114 |
| 115 protected: | 115 protected: |
| 116 // Helpers for translating parts of the AST. | 116 // Helpers for translating parts of the AST. |
| 117 void TranslateArgumentList(const ArgumentListNode& node, | 117 void TranslateArgumentList(const ArgumentListNode& node, |
| 118 ZoneGrowableArray<Value*>* values); | 118 ZoneGrowableArray<Value*>* values); |
| 119 | 119 |
| 120 // Creates an instantiated type argument vector used in preparation of a | 120 // Creates an instantiated type argument vector used in preparation of an |
| 121 // factory call. | 121 // allocation call. |
| 122 // May be called only if allocating an object of a parameterized class. | 122 // May be called only if allocating an object of a parameterized class. |
| 123 Definition* BuildFactoryTypeArguments(ConstructorCallNode* node); | 123 Definition* BuildInstantiatedTypeArguments( |
| 124 intptr_t token_index, |
| 125 const AbstractTypeArguments& type_arguments); |
| 124 | 126 |
| 125 // Creates a possibly uninstantiated type argument vector and the type | 127 // Creates a possibly uninstantiated type argument vector and the type |
| 126 // argument vector of the instantiator (two values in 'args') used in | 128 // argument vector of the instantiator (two values in 'args') used in |
| 127 // preparation of a constructor call. | 129 // preparation of a constructor call. |
| 128 // May be called only if allocating an object of a parameterized class. | 130 // May be called only if allocating an object of a parameterized class. |
| 129 void BuildConstructorTypeArguments(ConstructorCallNode* node, | 131 void BuildConstructorTypeArguments(ConstructorCallNode* node, |
| 130 ZoneGrowableArray<Value*>* args); | 132 ZoneGrowableArray<Value*>* args); |
| 131 | 133 |
| 132 // Returns the value of the type arguments of the instantiator. | 134 // Returns the value of the type arguments of the instantiator. |
| 133 Value* BuildInstantiatorTypeArguments(intptr_t token_index); | 135 Value* BuildInstantiatorTypeArguments(intptr_t token_index); |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 // Output parameters. | 285 // Output parameters. |
| 284 TargetEntryInstr** true_successor_address_; | 286 TargetEntryInstr** true_successor_address_; |
| 285 TargetEntryInstr** false_successor_address_; | 287 TargetEntryInstr** false_successor_address_; |
| 286 | 288 |
| 287 intptr_t condition_token_index_; | 289 intptr_t condition_token_index_; |
| 288 }; | 290 }; |
| 289 | 291 |
| 290 } // namespace dart | 292 } // namespace dart |
| 291 | 293 |
| 292 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 294 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |