Index: src/preparser.cc |
diff --git a/src/preparser.cc b/src/preparser.cc |
index 8c8746d5e04a50315e1207773b208660f22ec9e7..fd180427db4f8b6d461556622a7426cf32cf5c7b 100644 |
--- a/src/preparser.cc |
+++ b/src/preparser.cc |
@@ -110,10 +110,12 @@ PreParser::PreParseResult PreParser::PreParseLazyFunction( |
log_ = log; |
// Lazy functions always have trivial outer scopes (no with/catch scopes). |
PreParserScope top_scope(scope_, GLOBAL_SCOPE); |
- FunctionState top_state(&function_state_, &scope_, &top_scope); |
+ FunctionState top_state(&function_state_, &scope_, &top_scope, NULL, |
+ this->ast_value_factory()); |
scope_->SetStrictMode(strict_mode); |
PreParserScope function_scope(scope_, FUNCTION_SCOPE); |
- FunctionState function_state(&function_state_, &scope_, &function_scope); |
+ FunctionState function_state(&function_state_, &scope_, &function_scope, NULL, |
+ this->ast_value_factory()); |
function_state.set_is_generator(is_generator); |
ASSERT_EQ(Token::LBRACE, scanner()->current_token()); |
bool ok = true; |
@@ -807,7 +809,8 @@ PreParser::Expression PreParser::ParseFunctionLiteral( |
// Parse function body. |
ScopeType outer_scope_type = scope_->type(); |
PreParserScope function_scope(scope_, FUNCTION_SCOPE); |
- FunctionState function_state(&function_state_, &scope_, &function_scope); |
+ FunctionState function_state(&function_state_, &scope_, &function_scope, NULL, |
+ this->ast_value_factory()); |
function_state.set_is_generator(is_generator); |
// FormalParameterList :: |
// '(' (Identifier)*[','] ')' |