| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 void RepairGraphAfterInlining(); | 133 void RepairGraphAfterInlining(); |
| 134 | 134 |
| 135 // TODO(zerny): Once the SSA is feature complete this should be removed. | 135 // TODO(zerny): Once the SSA is feature complete this should be removed. |
| 136 void Bailout(const char* reason) const; | 136 void Bailout(const char* reason) const; |
| 137 | 137 |
| 138 void InvalidateDominatorTree() { invalid_dominator_tree_ = true; } | 138 void InvalidateDominatorTree() { invalid_dominator_tree_ = true; } |
| 139 | 139 |
| 140 #ifdef DEBUG | 140 #ifdef DEBUG |
| 141 // Validation methods for debugging. | 141 // Validation methods for debugging. |
| 142 bool ResetUseLists(); | 142 bool ResetUseLists(); |
| 143 bool ValidateUseLists(); | 143 bool VerifyUseLists(); |
| 144 #endif // DEBUG | 144 #endif // DEBUG |
| 145 | 145 |
| 146 private: | 146 private: |
| 147 friend class ConstantPropagator; | 147 friend class ConstantPropagator; |
| 148 | 148 |
| 149 void DiscoverBlocks(); | 149 void DiscoverBlocks(); |
| 150 | 150 |
| 151 // SSA transformation methods and fields. | 151 // SSA transformation methods and fields. |
| 152 void ComputeDominators(GrowableArray<BitVector*>* dominance_frontier); | 152 void ComputeDominators(GrowableArray<BitVector*>* dominance_frontier); |
| 153 | 153 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 GrowableArray<BlockEntryInstr*> preorder_; | 191 GrowableArray<BlockEntryInstr*> preorder_; |
| 192 GrowableArray<BlockEntryInstr*> postorder_; | 192 GrowableArray<BlockEntryInstr*> postorder_; |
| 193 GrowableArray<BlockEntryInstr*> reverse_postorder_; | 193 GrowableArray<BlockEntryInstr*> reverse_postorder_; |
| 194 bool invalid_dominator_tree_; | 194 bool invalid_dominator_tree_; |
| 195 ConstantInstr* constant_null_; | 195 ConstantInstr* constant_null_; |
| 196 }; | 196 }; |
| 197 | 197 |
| 198 } // namespace dart | 198 } // namespace dart |
| 199 | 199 |
| 200 #endif // VM_FLOW_GRAPH_H_ | 200 #endif // VM_FLOW_GRAPH_H_ |
| OLD | NEW |