Index: src/data-flow.cc |
diff --git a/src/data-flow.cc b/src/data-flow.cc |
index 02aacb5b81f8c20c354cf8ac0a234b42b36b74c0..be824460f0a1fb1b559cccc89391912c84ff784c 100644 |
--- a/src/data-flow.cc |
+++ b/src/data-flow.cc |
@@ -50,12 +50,13 @@ void BitVector::Print() { |
#endif |
-bool AssignedVariablesAnalyzer::Analyze() { |
- Scope* scope = fun_->scope(); |
+bool AssignedVariablesAnalyzer::Analyze(CompilationInfo* info) { |
+ info_ = info; |
+ Scope* scope = info->scope(); |
int variables = scope->num_parameters() + scope->num_stack_slots(); |
if (variables == 0) return true; |
av_.ExpandTo(variables); |
- VisitStatements(fun_->body()); |
+ VisitStatements(info->function()->body()); |
return !HasStackOverflow(); |
} |
@@ -129,7 +130,7 @@ int AssignedVariablesAnalyzer::BitIndex(Variable* var) { |
if (slot->type() == Slot::PARAMETER) { |
return slot->index(); |
} else { |
- return fun_->scope()->num_parameters() + slot->index(); |
+ return info_->scope()->num_parameters() + slot->index(); |
} |
} |