| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 // Moves parent context into the context register. | 191 // Moves parent context into the context register. |
| 192 void UnchainContext(); | 192 void UnchainContext(); |
| 193 | 193 |
| 194 void CloseFragment() { exit_ = NULL; } | 194 void CloseFragment() { exit_ = NULL; } |
| 195 intptr_t AllocateTempIndex() { return temp_index_++; } | 195 intptr_t AllocateTempIndex() { return temp_index_++; } |
| 196 void DeallocateTempIndex(intptr_t n) { | 196 void DeallocateTempIndex(intptr_t n) { |
| 197 ASSERT(temp_index_ >= n); | 197 ASSERT(temp_index_ >= n); |
| 198 temp_index_ -= n; | 198 temp_index_ -= n; |
| 199 } | 199 } |
| 200 | 200 |
| 201 BindInstr* BuildObjectAllocation(ConstructorCallNode* node); | 201 Value* BuildObjectAllocation(ConstructorCallNode* node); |
| 202 void BuildConstructorCall(ConstructorCallNode* node, Value* alloc_value); | 202 void BuildConstructorCall(ConstructorCallNode* node, Value* alloc_value); |
| 203 | 203 |
| 204 void BuildStoreContext(const LocalVariable& variable); | 204 void BuildStoreContext(const LocalVariable& variable); |
| 205 void BuildLoadContext(const LocalVariable& variable); | 205 void BuildLoadContext(const LocalVariable& variable); |
| 206 | 206 |
| 207 void BuildThrowNode(ThrowNode* node); | 207 void BuildThrowNode(ThrowNode* node); |
| 208 | 208 |
| 209 ClosureCallComp* BuildClosureCall(ClosureCallNode* node); | 209 ClosureCallComp* BuildClosureCall(ClosureCallNode* node); |
| 210 | 210 |
| 211 Value* BuildNullValue(); | 211 Value* BuildNullValue(); |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 // Output parameters. | 324 // Output parameters. |
| 325 TargetEntryInstr** true_successor_address_; | 325 TargetEntryInstr** true_successor_address_; |
| 326 TargetEntryInstr** false_successor_address_; | 326 TargetEntryInstr** false_successor_address_; |
| 327 | 327 |
| 328 intptr_t condition_token_pos_; | 328 intptr_t condition_token_pos_; |
| 329 }; | 329 }; |
| 330 | 330 |
| 331 } // namespace dart | 331 } // namespace dart |
| 332 | 332 |
| 333 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 333 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |