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/bit_vector.h" | 8 #include "vm/bit_vector.h" |
9 #include "vm/growable_array.h" | 9 #include "vm/growable_array.h" |
10 #include "vm/hash_map.h" | 10 #include "vm/hash_map.h" |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 GrowableArray<BlockEntryInstr*>* CodegenBlockOrder(bool is_optimized); | 137 GrowableArray<BlockEntryInstr*>* CodegenBlockOrder(bool is_optimized); |
138 | 138 |
139 // Iterators. | 139 // Iterators. |
140 BlockIterator reverse_postorder_iterator() const { | 140 BlockIterator reverse_postorder_iterator() const { |
141 return BlockIterator(reverse_postorder()); | 141 return BlockIterator(reverse_postorder()); |
142 } | 142 } |
143 BlockIterator postorder_iterator() const { | 143 BlockIterator postorder_iterator() const { |
144 return BlockIterator(postorder()); | 144 return BlockIterator(postorder()); |
145 } | 145 } |
146 | 146 |
| 147 void EnsureSSATempIndex(Definition* defn, Definition* replacement); |
| 148 |
| 149 void ReplaceCurrentInstruction(ForwardInstructionIterator* iterator, |
| 150 Instruction* current, |
| 151 Instruction* replacement); |
| 152 |
147 intptr_t current_ssa_temp_index() const { return current_ssa_temp_index_; } | 153 intptr_t current_ssa_temp_index() const { return current_ssa_temp_index_; } |
148 void set_current_ssa_temp_index(intptr_t index) { | 154 void set_current_ssa_temp_index(intptr_t index) { |
149 current_ssa_temp_index_ = index; | 155 current_ssa_temp_index_ = index; |
150 } | 156 } |
151 | 157 |
152 intptr_t max_virtual_register_number() const { | 158 intptr_t max_virtual_register_number() const { |
153 return current_ssa_temp_index(); | 159 return current_ssa_temp_index(); |
154 } | 160 } |
155 | 161 |
156 Thread* thread() const { return thread_; } | 162 Thread* thread() const { return thread_; } |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 | 527 |
522 private: | 528 private: |
523 GrowableArray<Definition*> defs_; | 529 GrowableArray<Definition*> defs_; |
524 BitVector* contains_vector_; | 530 BitVector* contains_vector_; |
525 }; | 531 }; |
526 | 532 |
527 | 533 |
528 } // namespace dart | 534 } // namespace dart |
529 | 535 |
530 #endif // VM_FLOW_GRAPH_H_ | 536 #endif // VM_FLOW_GRAPH_H_ |
OLD | NEW |