Index: src/compiler.cc |
=================================================================== |
--- src/compiler.cc (revision 4210) |
+++ src/compiler.cc (working copy) |
@@ -100,6 +100,12 @@ |
builder.body_definitions(), |
variable_count); |
rd.Compute(); |
+ |
+ TypeAnalyzer ta(builder.postorder(), |
+ builder.body_definitions(), |
+ variable_count, |
+ function->num_parameters()); |
+ ta.Compute(); |
} |
} |
@@ -502,14 +508,20 @@ |
FlowGraphBuilder builder(variable_count); |
builder.Build(literal); |
- if (!builder.HasStackOverflow()) { |
- if (variable_count > 0) { |
- ReachingDefinitions rd(builder.postorder(), |
- builder.body_definitions(), |
- variable_count); |
- rd.Compute(); |
+ if (!builder.HasStackOverflow()) { |
+ if (variable_count > 0) { |
+ ReachingDefinitions rd(builder.postorder(), |
+ builder.body_definitions(), |
+ variable_count); |
+ rd.Compute(); |
+ |
+ TypeAnalyzer ta(builder.postorder(), |
+ builder.body_definitions(), |
+ variable_count, |
+ literal->num_parameters()); |
+ ta.Compute(); |
+ } |
} |
- } |
#ifdef DEBUG |
if (FLAG_print_graph_text && !builder.HasStackOverflow()) { |