OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_H_ | 5 #ifndef VM_FLOW_GRAPH_H_ |
6 #define VM_FLOW_GRAPH_H_ | 6 #define VM_FLOW_GRAPH_H_ |
7 | 7 |
8 #include "vm/growable_array.h" | 8 #include "vm/growable_array.h" |
9 #include "vm/intermediate_language.h" | 9 #include "vm/intermediate_language.h" |
10 #include "vm/parser.h" | 10 #include "vm/parser.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 void Bailout(const char* reason) const; | 135 void Bailout(const char* reason) const; |
136 | 136 |
137 void InvalidateDominatorTree() { invalid_dominator_tree_ = true; } | 137 void InvalidateDominatorTree() { invalid_dominator_tree_ = true; } |
138 | 138 |
139 #ifdef DEBUG | 139 #ifdef DEBUG |
140 // Verification methods for debugging. | 140 // Verification methods for debugging. |
141 bool VerifyUseLists(); | 141 bool VerifyUseLists(); |
142 #endif // DEBUG | 142 #endif // DEBUG |
143 | 143 |
144 private: | 144 private: |
| 145 friend class IfConverter; |
145 friend class BranchSimplifier; | 146 friend class BranchSimplifier; |
146 friend class ConstantPropagator; | 147 friend class ConstantPropagator; |
147 | 148 |
148 void DiscoverBlocks(); | 149 void DiscoverBlocks(); |
149 | 150 |
150 // SSA transformation methods and fields. | 151 // SSA transformation methods and fields. |
151 void ComputeDominators(GrowableArray<BitVector*>* dominance_frontier); | 152 void ComputeDominators(GrowableArray<BitVector*>* dominance_frontier); |
152 | 153 |
153 void CompressPath( | 154 void CompressPath( |
154 intptr_t start_index, | 155 intptr_t start_index, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 GrowableArray<BlockEntryInstr*> preorder_; | 191 GrowableArray<BlockEntryInstr*> preorder_; |
191 GrowableArray<BlockEntryInstr*> postorder_; | 192 GrowableArray<BlockEntryInstr*> postorder_; |
192 GrowableArray<BlockEntryInstr*> reverse_postorder_; | 193 GrowableArray<BlockEntryInstr*> reverse_postorder_; |
193 bool invalid_dominator_tree_; | 194 bool invalid_dominator_tree_; |
194 ConstantInstr* constant_null_; | 195 ConstantInstr* constant_null_; |
195 }; | 196 }; |
196 | 197 |
197 } // namespace dart | 198 } // namespace dart |
198 | 199 |
199 #endif // VM_FLOW_GRAPH_H_ | 200 #endif // VM_FLOW_GRAPH_H_ |
OLD | NEW |