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. |