Index: src/ast-expression-visitor.cc |
diff --git a/src/ast-expression-visitor.cc b/src/ast-expression-visitor.cc |
index 5a0912576155dd64cdde5556574a8281a1889a7a..014f56de5335f5d4040cc3546efe66db50495565 100644 |
--- a/src/ast-expression-visitor.cc |
+++ b/src/ast-expression-visitor.cc |
@@ -32,15 +32,14 @@ namespace internal { |
} while (false) |
-AstExpressionVisitor::AstExpressionVisitor(CompilationInfo* info) |
- : compilation_info_(info), depth_(0) { |
- InitializeAstVisitor(info->isolate(), info->zone()); |
+AstExpressionVisitor::AstExpressionVisitor(Isolate* isolate, Zone* zone, |
+ FunctionLiteral* root) |
+ : root_(root), depth_(0) { |
+ InitializeAstVisitor(isolate, zone); |
} |
-void AstExpressionVisitor::Run() { |
- RECURSE(VisitFunctionLiteral(compilation_info_->literal())); |
-} |
+void AstExpressionVisitor::Run() { RECURSE(VisitFunctionLiteral(root_)); } |
void AstExpressionVisitor::VisitVariableDeclaration(VariableDeclaration* decl) { |