Index: src/compiler.cc |
=================================================================== |
--- src/compiler.cc (revision 4066) |
+++ src/compiler.cc (working copy) |
@@ -79,6 +79,15 @@ |
return Handle<Code>::null(); |
} |
+ if (function->scope()->num_parameters() > 0 || |
+ function->scope()->num_stack_slots()) { |
+ AssignedVariablesAnalyzer ava(function); |
+ ava.Analyze(); |
+ if (ava.HasStackOverflow()) { |
+ return Handle<Code>::null(); |
+ } |
+ } |
+ |
if (FLAG_use_flow_graph) { |
FlowGraphBuilder builder; |
builder.Build(function); |
@@ -463,6 +472,15 @@ |
return Handle<JSFunction>::null(); |
} |
+ if (literal->scope()->num_parameters() > 0 || |
+ literal->scope()->num_stack_slots()) { |
+ AssignedVariablesAnalyzer ava(literal); |
+ ava.Analyze(); |
+ if (ava.HasStackOverflow()) { |
+ return Handle<JSFunction>::null(); |
+ } |
+ } |
+ |
if (FLAG_use_flow_graph) { |
FlowGraphBuilder builder; |
builder.Build(literal); |