| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 | 184 |
| 185 virtual void CompiletimeStringInterpolation(const Function& interpol_func, | 185 virtual void CompiletimeStringInterpolation(const Function& interpol_func, |
| 186 const Array& literals); | 186 const Array& literals); |
| 187 | 187 |
| 188 TempVal* BuildObjectAllocation(ConstructorCallNode* node, | 188 TempVal* BuildObjectAllocation(ConstructorCallNode* node, |
| 189 int start_index); | 189 int start_index); |
| 190 void BuildConstructorCall(ConstructorCallNode* node, | 190 void BuildConstructorCall(ConstructorCallNode* node, |
| 191 int start_index, | 191 int start_index, |
| 192 Value* alloc_value); | 192 Value* alloc_value); |
| 193 | 193 |
| 194 void BuildStoreContext(const LocalVariable& variable, intptr_t start_index); | 194 void BuildStoreContext(const LocalVariable& variable); |
| 195 void BuildLoadContext(const LocalVariable& variable, intptr_t start_index); | 195 void BuildLoadContext(const LocalVariable& variable); |
| 196 | 196 |
| 197 void BuildThrowNode(ThrowNode* node); | 197 void BuildThrowNode(ThrowNode* node); |
| 198 | 198 |
| 199 private: | 199 private: |
| 200 // Specify a computation as the final result. Adds a Do instruction to | 200 // Specify a computation as the final result. Adds a Do instruction to |
| 201 // the graph, but normally overridden in subclasses. | 201 // the graph, but normally overridden in subclasses. |
| 202 virtual void ReturnComputation(Computation* computation) { | 202 virtual void ReturnComputation(Computation* computation) { |
| 203 AddInstruction(new DoInstr(computation)); | 203 AddInstruction(new DoInstr(computation)); |
| 204 } | 204 } |
| 205 | 205 |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 TargetEntryInstr** true_successor_address_; | 340 TargetEntryInstr** true_successor_address_; |
| 341 TargetEntryInstr** false_successor_address_; | 341 TargetEntryInstr** false_successor_address_; |
| 342 | 342 |
| 343 intptr_t condition_node_id_; | 343 intptr_t condition_node_id_; |
| 344 intptr_t condition_token_index_; | 344 intptr_t condition_token_index_; |
| 345 }; | 345 }; |
| 346 | 346 |
| 347 } // namespace dart | 347 } // namespace dart |
| 348 | 348 |
| 349 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 349 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |