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

Unified Diff: runtime/vm/code_generator_ia32.cc

Issue 9414003: Initial implementation of a flow-graph builder for Dart's AST. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/compiler.cc » ('j') | runtime/vm/flow_graph_builder.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_generator_ia32.cc
diff --git a/runtime/vm/code_generator_ia32.cc b/runtime/vm/code_generator_ia32.cc
index b2110373e95d0cc60d626a9792497cb9989f7873..b7c17df0376e2da80a1c2dc7583d79991d41a111 100644
--- a/runtime/vm/code_generator_ia32.cc
+++ b/runtime/vm/code_generator_ia32.cc
@@ -12,6 +12,7 @@
#include "vm/class_finalizer.h"
#include "vm/dart_entry.h"
#include "vm/debugger.h"
+#include "vm/flow_graph_builder.h"
#include "vm/ic_data.h"
#include "vm/longjump.h"
#include "vm/object.h"
@@ -202,6 +203,9 @@ bool CodeGenerator::IsResultNeeded(AstNode* node) const {
// NOTE: First 5 bytes of the code may be patched with a jump instruction. Do
// not emit any objects in the first 5 bytes.
void CodeGenerator::GenerateCode() {
+ FlowGraphBuilder graph_builder(parsed_function());
+ graph_builder.BuildGraph();
srdjan 2012/02/16 14:14:34 You want to decouple FlowGraphBuilder from old com
Kevin Millikin (Google) 2012/02/20 14:50:19 Done.
+
CodeGeneratorState codegen_state(this);
if (FLAG_print_scopes && FLAG_print_ast) {
// Print the function scope before code generation.
« no previous file with comments | « no previous file | runtime/vm/compiler.cc » ('j') | runtime/vm/flow_graph_builder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698