Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Side by Side Diff: runtime/vm/flow_graph.h

Issue 1679853002: VM: Move redundancy elimination phases into a separate file. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fixed indentation Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698