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

Unified Diff: vm/compiler.cc

Issue 10635020: Add new files and data structures for the new register allocator. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 6 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 | « no previous file | vm/flow_graph_allocator.h » ('j') | vm/flow_graph_allocator.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/compiler.cc
===================================================================
--- vm/compiler.cc (revision 9014)
+++ vm/compiler.cc (working copy)
@@ -13,6 +13,7 @@
#include "vm/disassembler.h"
#include "vm/exceptions.h"
#include "vm/flags.h"
+#include "vm/flow_graph_allocator.h"
#include "vm/flow_graph_builder.h"
#include "vm/flow_graph_compiler.h"
#include "vm/flow_graph_optimizer.h"
@@ -34,6 +35,7 @@
" certain optimizations");
DEFINE_FLAG(bool, use_new_compiler, true, "Use the new compiler backend.");
DEFINE_FLAG(bool, trace_bailout, false, "Print bailout from new compiler.");
+DECLARE_FLAG(bool, use_ssa);
// Compile a function. Should call only if the function has not been compiled.
@@ -193,6 +195,15 @@
if (optimized) {
FlowGraphOptimizer optimizer(block_order);
optimizer.ApplyICData();
+
+ if (FLAG_use_ssa) {
+ // Perform register allocation on the SSA graph.
+ FlowGraphAllocator allocator(block_order);
+ allocator.ResolveConstraints();
+
+ // Temporary bailout until we support code generation from SSA form.
+ graph_builder.Bailout("No SSA code generation support.");
+ }
}
}
« no previous file with comments | « no previous file | vm/flow_graph_allocator.h » ('j') | vm/flow_graph_allocator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698