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

Unified Diff: runtime/vm/flow_graph.h

Issue 18111006: Collect edge count profiling data and reorder basic blocks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/flow_graph.h
diff --git a/runtime/vm/flow_graph.h b/runtime/vm/flow_graph.h
index 615cef1c1575d0426703eab2a6e49956fb00f4e0..971eb6c49703b2dc80855cc86c3ae256111b8de9 100644
--- a/runtime/vm/flow_graph.h
+++ b/runtime/vm/flow_graph.h
@@ -78,6 +78,9 @@ class FlowGraph : public ZoneAllocated {
const GrowableArray<BlockEntryInstr*>& reverse_postorder() const {
return reverse_postorder_;
}
+ GrowableArray<BlockEntryInstr*>* codegen_block_order(bool is_optimized) {
+ return is_optimized ? &optimized_block_order_ : &reverse_postorder_;
+ }
// Iterators.
BlockIterator reverse_postorder_iterator() const {
@@ -244,6 +247,7 @@ class FlowGraph : public ZoneAllocated {
GrowableArray<BlockEntryInstr*> preorder_;
GrowableArray<BlockEntryInstr*> postorder_;
GrowableArray<BlockEntryInstr*> reverse_postorder_;
+ GrowableArray<BlockEntryInstr*> optimized_block_order_;
ConstantInstr* constant_null_;
BlockEffects* block_effects_;

Powered by Google App Engine
This is Rietveld 408576698