| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 private: | 53 private: |
| 54 void ComputeDominators(GrowableArray<BlockEntryInstr*>* preorder, | 54 void ComputeDominators(GrowableArray<BlockEntryInstr*>* preorder, |
| 55 GrowableArray<intptr_t>* parent, | 55 GrowableArray<intptr_t>* parent, |
| 56 GrowableArray<BitVector*>* dominance_frontier); | 56 GrowableArray<BitVector*>* dominance_frontier); |
| 57 | 57 |
| 58 void CompressPath(intptr_t start_index, | 58 void CompressPath(intptr_t start_index, |
| 59 intptr_t current_index, | 59 intptr_t current_index, |
| 60 GrowableArray<intptr_t>* parent, | 60 GrowableArray<intptr_t>* parent, |
| 61 GrowableArray<intptr_t>* label); | 61 GrowableArray<intptr_t>* label); |
| 62 | 62 |
| 63 void Rename(intptr_t var_count); | 63 void Rename(intptr_t stack_local_count, |
| 64 intptr_t fixed_parameter_count, |
| 65 intptr_t named_parameter_count); |
| 64 void RenameRecursive(BlockEntryInstr* block_entry, | 66 void RenameRecursive(BlockEntryInstr* block_entry, |
| 65 GrowableArray<Value*>* env, | 67 GrowableArray<Value*>* env, |
| 66 intptr_t var_count, | 68 intptr_t var_count, |
| 67 intptr_t param_count); | 69 intptr_t param_count); |
| 68 | 70 |
| 69 void InsertPhis(const GrowableArray<BlockEntryInstr*>& preorder, | 71 void InsertPhis(const GrowableArray<BlockEntryInstr*>& preorder, |
| 70 const GrowableArray<BitVector*>& assigned_vars, | 72 const GrowableArray<BitVector*>& assigned_vars, |
| 71 const intptr_t var_count, | 73 const intptr_t var_count, |
| 72 const GrowableArray<BitVector*>& dom_frontier); | 74 const GrowableArray<BitVector*>& dom_frontier); |
| 73 | 75 |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 // Output parameters. | 354 // Output parameters. |
| 353 TargetEntryInstr** true_successor_address_; | 355 TargetEntryInstr** true_successor_address_; |
| 354 TargetEntryInstr** false_successor_address_; | 356 TargetEntryInstr** false_successor_address_; |
| 355 | 357 |
| 356 intptr_t condition_token_pos_; | 358 intptr_t condition_token_pos_; |
| 357 }; | 359 }; |
| 358 | 360 |
| 359 } // namespace dart | 361 } // namespace dart |
| 360 | 362 |
| 361 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 363 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |