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

Unified Diff: runtime/vm/flow_graph_compiler_arm.h

Issue 10857016: Refactored FlowGraphBuilder into a separate FlowGraph representation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revision based on Kevin's review. Created 8 years, 4 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
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_compiler_ia32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_arm.h
diff --git a/runtime/vm/flow_graph_compiler_arm.h b/runtime/vm/flow_graph_compiler_arm.h
index 636aecf23c4f91923f327ec74f6e92120c32e829..cc483329f57f7a5ac7343949bf1bf876a537bcca 100644
--- a/runtime/vm/flow_graph_compiler_arm.h
+++ b/runtime/vm/flow_graph_compiler_arm.h
@@ -9,6 +9,7 @@
#error Include flow_graph_compiler.h instead of flow_graph_compiler_arm.h.
#endif
+#include "vm/flow_graph.h"
#include "vm/intermediate_language.h"
namespace dart {
@@ -23,11 +24,10 @@ class ParsedFunction;
class FlowGraphCompiler : public FlowGraphVisitor {
public:
FlowGraphCompiler(Assembler* assembler,
- const ParsedFunction& parsed_function,
- const GrowableArray<BlockEntryInstr*>& blocks,
+ const FlowGraph& flow_graph,
bool is_optimizing)
- : FlowGraphVisitor(blocks),
- parsed_function_(parsed_function),
+ : FlowGraphVisitor(flow_graph.reverse_postorder()),
+ parsed_function_(flow_graph.parsed_function()),
is_optimizing_(is_optimizing) {
}
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_compiler_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698