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

Unified Diff: runtime/vm/flow_graph_builder.h

Issue 9719003: Compute preorder as well as postorder basic block orderings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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_builder.h
diff --git a/runtime/vm/flow_graph_builder.h b/runtime/vm/flow_graph_builder.h
index 28e5d75fd6c1dd7ecec1c5dff833efebf04713ca..817cad03cee9217476006c9259f57e1a95ef7877 100644
--- a/runtime/vm/flow_graph_builder.h
+++ b/runtime/vm/flow_graph_builder.h
@@ -20,14 +20,15 @@ class FlowGraphBuilder: public ValueObject {
public:
explicit FlowGraphBuilder(const ParsedFunction& parsed_function)
: parsed_function_(parsed_function),
+ preorder_block_entries_(),
postorder_block_entries_() { }
void BuildGraph();
const ParsedFunction& parsed_function() const { return parsed_function_; }
- const GrowableArray<BlockEntryInstr*>* blocks() const {
- return &postorder_block_entries_;
+ const GrowableArray<BlockEntryInstr*>& postorder_block_entries() const {
+ return postorder_block_entries_;
}
void Bailout(const char* reason);
@@ -37,6 +38,7 @@ class FlowGraphBuilder: public ValueObject {
private:
const ParsedFunction& parsed_function_;
+ GrowableArray<BlockEntryInstr*> preorder_block_entries_;
GrowableArray<BlockEntryInstr*> postorder_block_entries_;
intptr_t context_level_;
};

Powered by Google App Engine
This is Rietveld 408576698