| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 private: | 45 private: |
| 46 void ComputeDominators(GrowableArray<BlockEntryInstr*>* preorder, | 46 void ComputeDominators(GrowableArray<BlockEntryInstr*>* preorder, |
| 47 GrowableArray<intptr_t>* parent, | 47 GrowableArray<intptr_t>* parent, |
| 48 GrowableArray<BitVector*>* dominance_frontier); | 48 GrowableArray<BitVector*>* dominance_frontier); |
| 49 | 49 |
| 50 void CompressPath(intptr_t start_index, | 50 void CompressPath(intptr_t start_index, |
| 51 intptr_t current_index, | 51 intptr_t current_index, |
| 52 GrowableArray<intptr_t>* parent, | 52 GrowableArray<intptr_t>* parent, |
| 53 GrowableArray<intptr_t>* label); | 53 GrowableArray<intptr_t>* label); |
| 54 | 54 |
| 55 void InsertPhis(GrowableArray<BlockEntryInstr*>* preorder, |
| 56 GrowableArray<BitVector*>* assigned_vars, |
| 57 intptr_t var_count, |
| 58 GrowableArray<BitVector*>* dom_frontier); |
| 59 |
| 55 const ParsedFunction& parsed_function_; | 60 const ParsedFunction& parsed_function_; |
| 56 GrowableArray<BlockEntryInstr*> preorder_block_entries_; | 61 GrowableArray<BlockEntryInstr*> preorder_block_entries_; |
| 57 GrowableArray<BlockEntryInstr*> postorder_block_entries_; | 62 GrowableArray<BlockEntryInstr*> postorder_block_entries_; |
| 58 intptr_t context_level_; | 63 intptr_t context_level_; |
| 59 intptr_t last_used_try_index_; | 64 intptr_t last_used_try_index_; |
| 60 intptr_t try_index_; | 65 intptr_t try_index_; |
| 61 GraphEntryInstr* graph_entry_; | 66 GraphEntryInstr* graph_entry_; |
| 62 | 67 |
| 63 DISALLOW_IMPLICIT_CONSTRUCTORS(FlowGraphBuilder); | 68 DISALLOW_IMPLICIT_CONSTRUCTORS(FlowGraphBuilder); |
| 64 }; | 69 }; |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 // Output parameters. | 315 // Output parameters. |
| 311 TargetEntryInstr** true_successor_address_; | 316 TargetEntryInstr** true_successor_address_; |
| 312 TargetEntryInstr** false_successor_address_; | 317 TargetEntryInstr** false_successor_address_; |
| 313 | 318 |
| 314 intptr_t condition_token_index_; | 319 intptr_t condition_token_index_; |
| 315 }; | 320 }; |
| 316 | 321 |
| 317 } // namespace dart | 322 } // namespace dart |
| 318 | 323 |
| 319 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 324 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |