| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 const EffectGraphVisitor& true_fragment, | 106 const EffectGraphVisitor& true_fragment, |
| 107 const EffectGraphVisitor& false_fragment); | 107 const EffectGraphVisitor& false_fragment); |
| 108 | 108 |
| 109 // Append a 'while loop' test and back edge to this graph, depending on | 109 // Append a 'while loop' test and back edge to this graph, depending on |
| 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 Computation* BuildStoreLocal(const LocalVariable& local, Value* value); |
| 117 Computation* BuildLoadLocal(const LocalVariable& local); |
| 118 |
| 116 // Helpers for translating parts of the AST. | 119 // Helpers for translating parts of the AST. |
| 117 void TranslateArgumentList(const ArgumentListNode& node, | 120 void TranslateArgumentList(const ArgumentListNode& node, |
| 118 ZoneGrowableArray<Value*>* values); | 121 ZoneGrowableArray<Value*>* values); |
| 119 | 122 |
| 120 // Creates an instantiated type argument vector used in preparation of an | 123 // Creates an instantiated type argument vector used in preparation of an |
| 121 // allocation call. | 124 // allocation call. |
| 122 // May be called only if allocating an object of a parameterized class. | 125 // May be called only if allocating an object of a parameterized class. |
| 123 Definition* BuildInstantiatedTypeArguments( | 126 Definition* BuildInstantiatedTypeArguments( |
| 124 intptr_t token_index, | 127 intptr_t token_index, |
| 125 const AbstractTypeArguments& type_arguments); | 128 const AbstractTypeArguments& type_arguments); |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 // Output parameters. | 288 // Output parameters. |
| 286 TargetEntryInstr** true_successor_address_; | 289 TargetEntryInstr** true_successor_address_; |
| 287 TargetEntryInstr** false_successor_address_; | 290 TargetEntryInstr** false_successor_address_; |
| 288 | 291 |
| 289 intptr_t condition_token_index_; | 292 intptr_t condition_token_index_; |
| 290 }; | 293 }; |
| 291 | 294 |
| 292 } // namespace dart | 295 } // namespace dart |
| 293 | 296 |
| 294 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 297 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |