Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index bec0a4bd571e29dda80149b669062641c40b81e1..a972a62b4c66f58780f3c1cc13bf5043ad3e1b6c 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -736,7 +736,8 @@ FunctionLiteral* ParserTraits::ParseFunctionLiteral( |
Parser::Parser(CompilationInfo* info, ParseInfo* parse_info) |
: ParserBase<ParserTraits>(&scanner_, parse_info->stack_limit, |
- info->extension(), NULL, info->zone(), this), |
+ info->extension(), NULL, info->zone(), |
+ info->ast_node_id_gen(), this), |
scanner_(parse_info->unicode_cache), |
reusable_preparser_(NULL), |
original_scope_(NULL), |
@@ -878,7 +879,7 @@ FunctionLiteral* Parser::DoParseProgram(CompilationInfo* info, Scope** scope, |
// Enters 'scope'. |
AstNodeFactory<AstConstructionVisitor> function_factory( |
- ast_value_factory()); |
+ zone(), ast_value_factory(), info->ast_node_id_gen()); |
FunctionState function_state(&function_state_, &scope_, *scope, |
&function_factory); |
@@ -993,7 +994,7 @@ FunctionLiteral* Parser::ParseLazy(Utf16CharacterStream* source) { |
} |
original_scope_ = scope; |
AstNodeFactory<AstConstructionVisitor> function_factory( |
- ast_value_factory()); |
+ zone(), ast_value_factory(), info()->ast_node_id_gen()); |
FunctionState function_state(&function_state_, &scope_, scope, |
&function_factory); |
DCHECK(scope->strict_mode() == SLOPPY || info()->strict_mode() == STRICT); |
@@ -3495,7 +3496,7 @@ FunctionLiteral* Parser::ParseFunctionLiteral( |
// Parse function body. |
{ |
AstNodeFactory<AstConstructionVisitor> function_factory( |
- ast_value_factory()); |
+ zone(), ast_value_factory(), info()->ast_node_id_gen()); |
FunctionState function_state(&function_state_, &scope_, scope, |
&function_factory); |
scope_->SetScopeName(function_name); |