Commit 51779753 authored by marja's avatar marja Committed by Commit bot

Follow up to r37787: Put even more AST nodes into local_zone_.

BUG=

Review-Url: https://codereview.chromium.org/2145753006
Cr-Commit-Position: refs/heads/master@{#37816}
parent 0e000a87
...@@ -3181,8 +3181,8 @@ class AstNodeFactory final BASE_EMBEDDED { ...@@ -3181,8 +3181,8 @@ class AstNodeFactory final BASE_EMBEDDED {
SloppyBlockFunctionStatement* NewSloppyBlockFunctionStatement( SloppyBlockFunctionStatement* NewSloppyBlockFunctionStatement(
Statement* statement, Scope* scope) { Statement* statement, Scope* scope) {
return new (parser_zone_) return new (local_zone_)
SloppyBlockFunctionStatement(parser_zone_, statement, scope); SloppyBlockFunctionStatement(local_zone_, statement, scope);
} }
CaseClause* NewCaseClause( CaseClause* NewCaseClause(
...@@ -3417,8 +3417,8 @@ class AstNodeFactory final BASE_EMBEDDED { ...@@ -3417,8 +3417,8 @@ class AstNodeFactory final BASE_EMBEDDED {
FunctionLiteral* NewScriptOrEvalFunctionLiteral( FunctionLiteral* NewScriptOrEvalFunctionLiteral(
Scope* scope, ZoneList<Statement*>* body, int materialized_literal_count, Scope* scope, ZoneList<Statement*>* body, int materialized_literal_count,
int expected_property_count) { int expected_property_count) {
return new (parser_zone_) FunctionLiteral( return new (local_zone_) FunctionLiteral(
parser_zone_, ast_value_factory_->empty_string(), ast_value_factory_, local_zone_, ast_value_factory_->empty_string(), ast_value_factory_,
scope, body, materialized_literal_count, expected_property_count, 0, scope, body, materialized_literal_count, expected_property_count, 0,
FunctionLiteral::kAnonymousExpression, FunctionLiteral::kAnonymousExpression,
FunctionLiteral::kNoDuplicateParameters, FunctionLiteral::kNoDuplicateParameters,
...@@ -3431,16 +3431,16 @@ class AstNodeFactory final BASE_EMBEDDED { ...@@ -3431,16 +3431,16 @@ class AstNodeFactory final BASE_EMBEDDED {
FunctionLiteral* constructor, FunctionLiteral* constructor,
ZoneList<ObjectLiteral::Property*>* properties, ZoneList<ObjectLiteral::Property*>* properties,
int start_position, int end_position) { int start_position, int end_position) {
return new (parser_zone_) return new (local_zone_)
ClassLiteral(parser_zone_, scope, proxy, extends, constructor, ClassLiteral(local_zone_, scope, proxy, extends, constructor,
properties, start_position, end_position); properties, start_position, end_position);
} }
NativeFunctionLiteral* NewNativeFunctionLiteral(const AstRawString* name, NativeFunctionLiteral* NewNativeFunctionLiteral(const AstRawString* name,
v8::Extension* extension, v8::Extension* extension,
int pos) { int pos) {
return new (parser_zone_) return new (local_zone_)
NativeFunctionLiteral(parser_zone_, name, extension, pos); NativeFunctionLiteral(local_zone_, name, extension, pos);
} }
DoExpression* NewDoExpression(Block* block, Variable* result_var, int pos) { DoExpression* NewDoExpression(Block* block, Variable* result_var, int pos) {
...@@ -3455,16 +3455,16 @@ class AstNodeFactory final BASE_EMBEDDED { ...@@ -3455,16 +3455,16 @@ class AstNodeFactory final BASE_EMBEDDED {
SuperPropertyReference* NewSuperPropertyReference(VariableProxy* this_var, SuperPropertyReference* NewSuperPropertyReference(VariableProxy* this_var,
Expression* home_object, Expression* home_object,
int pos) { int pos) {
return new (parser_zone_) return new (local_zone_)
SuperPropertyReference(parser_zone_, this_var, home_object, pos); SuperPropertyReference(local_zone_, this_var, home_object, pos);
} }
SuperCallReference* NewSuperCallReference(VariableProxy* this_var, SuperCallReference* NewSuperCallReference(VariableProxy* this_var,
VariableProxy* new_target_var, VariableProxy* new_target_var,
VariableProxy* this_function_var, VariableProxy* this_function_var,
int pos) { int pos) {
return new (parser_zone_) SuperCallReference( return new (local_zone_) SuperCallReference(
parser_zone_, this_var, new_target_var, this_function_var, pos); local_zone_, this_var, new_target_var, this_function_var, pos);
} }
EmptyParentheses* NewEmptyParentheses(int pos) { EmptyParentheses* NewEmptyParentheses(int pos) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment