| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 BindInstr* BuildObjectAllocation(ConstructorCallNode* node); | 175 BindInstr* BuildObjectAllocation(ConstructorCallNode* node); |
| 176 void BuildConstructorCall(ConstructorCallNode* node, Value* alloc_value); | 176 void BuildConstructorCall(ConstructorCallNode* node, Value* alloc_value); |
| 177 | 177 |
| 178 void BuildStoreContext(const LocalVariable& variable); | 178 void BuildStoreContext(const LocalVariable& variable); |
| 179 void BuildLoadContext(const LocalVariable& variable); | 179 void BuildLoadContext(const LocalVariable& variable); |
| 180 | 180 |
| 181 void BuildThrowNode(ThrowNode* node); | 181 void BuildThrowNode(ThrowNode* node); |
| 182 | 182 |
| 183 ClosureCallComp* BuildClosureCall(ClosureCallNode* node); | 183 ClosureCallComp* BuildClosureCall(ClosureCallNode* node); |
| 184 | 184 |
| 185 Value* BuildNullValue(); |
| 186 |
| 185 private: | 187 private: |
| 186 // Specify a computation as the final result. Adds a Do instruction to | 188 // Specify a computation as the final result. Adds a Do instruction to |
| 187 // the graph, but normally overridden in subclasses. | 189 // the graph, but normally overridden in subclasses. |
| 188 virtual void ReturnComputation(Computation* computation) { | 190 virtual void ReturnComputation(Computation* computation) { |
| 189 AddInstruction(new DoInstr(computation)); | 191 AddInstruction(new DoInstr(computation)); |
| 190 } | 192 } |
| 191 | 193 |
| 192 // Shared global state. | 194 // Shared global state. |
| 193 FlowGraphBuilder* owner_; | 195 FlowGraphBuilder* owner_; |
| 194 | 196 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 // Output parameters. | 299 // Output parameters. |
| 298 TargetEntryInstr** true_successor_address_; | 300 TargetEntryInstr** true_successor_address_; |
| 299 TargetEntryInstr** false_successor_address_; | 301 TargetEntryInstr** false_successor_address_; |
| 300 | 302 |
| 301 intptr_t condition_token_index_; | 303 intptr_t condition_token_index_; |
| 302 }; | 304 }; |
| 303 | 305 |
| 304 } // namespace dart | 306 } // namespace dart |
| 305 | 307 |
| 306 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 308 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |