| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 void TieLoop(const TestGraphVisitor& test_fragment, | 141 void TieLoop(const TestGraphVisitor& test_fragment, |
| 142 const EffectGraphVisitor& body_fragment); | 142 const EffectGraphVisitor& body_fragment); |
| 143 | 143 |
| 144 protected: | 144 protected: |
| 145 Computation* BuildStoreLocal(const LocalVariable& local, Value* value); | 145 Computation* BuildStoreLocal(const LocalVariable& local, Value* value); |
| 146 Computation* BuildLoadLocal(const LocalVariable& local); | 146 Computation* BuildLoadLocal(const LocalVariable& local); |
| 147 | 147 |
| 148 // Helpers for translating parts of the AST. | 148 // Helpers for translating parts of the AST. |
| 149 void TranslateArgumentList(const ArgumentListNode& node, | 149 void TranslateArgumentList(const ArgumentListNode& node, |
| 150 ZoneGrowableArray<Value*>* values); | 150 ZoneGrowableArray<Value*>* values); |
| 151 void BuildPushArguments(const ArgumentListNode& node, |
| 152 ZoneGrowableArray<PushArgumentInstr*>* values); |
| 151 | 153 |
| 152 // Creates an instantiated type argument vector used in preparation of an | 154 // Creates an instantiated type argument vector used in preparation of an |
| 153 // allocation call. | 155 // allocation call. |
| 154 // May be called only if allocating an object of a parameterized class. | 156 // May be called only if allocating an object of a parameterized class. |
| 155 Value* BuildInstantiatedTypeArguments( | 157 Value* BuildInstantiatedTypeArguments( |
| 156 intptr_t token_pos, | 158 intptr_t token_pos, |
| 157 const AbstractTypeArguments& type_arguments); | 159 const AbstractTypeArguments& type_arguments); |
| 158 | 160 |
| 159 // Creates a possibly uninstantiated type argument vector and the type | 161 // Creates a possibly uninstantiated type argument vector and the type |
| 160 // argument vector of the instantiator (two values in 'args') used in | 162 // argument vector of the instantiator (two values in 'args') used in |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 // Output parameters. | 345 // Output parameters. |
| 344 TargetEntryInstr** true_successor_address_; | 346 TargetEntryInstr** true_successor_address_; |
| 345 TargetEntryInstr** false_successor_address_; | 347 TargetEntryInstr** false_successor_address_; |
| 346 | 348 |
| 347 intptr_t condition_token_pos_; | 349 intptr_t condition_token_pos_; |
| 348 }; | 350 }; |
| 349 | 351 |
| 350 } // namespace dart | 352 } // namespace dart |
| 351 | 353 |
| 352 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 354 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |