| Index: src/ast/ast.h
|
| diff --git a/src/ast/ast.h b/src/ast/ast.h
|
| index 85f15fb2d0a00a32a1959f49acf482711fcaebf8..e2b2e0513e178b6c09f0b6d9a405a7c1a58bd411 100644
|
| --- a/src/ast/ast.h
|
| +++ b/src/ast/ast.h
|
| @@ -2543,7 +2543,7 @@ class FunctionLiteral final : public Expression {
|
| Handle<String> name() const { return raw_name_->string(); }
|
| const AstString* raw_name() const { return raw_name_; }
|
| void set_raw_name(const AstString* name) { raw_name_ = name; }
|
| - Scope* scope() const { return scope_; }
|
| + DeclarationScope* scope() const { return scope_; }
|
| ZoneList<Statement*>* body() const { return body_; }
|
| void set_function_token_position(int pos) { function_token_position_ = pos; }
|
| int function_token_position() const { return function_token_position_; }
|
| @@ -2660,7 +2660,7 @@ class FunctionLiteral final : public Expression {
|
|
|
| protected:
|
| FunctionLiteral(Zone* zone, const AstString* name,
|
| - AstValueFactory* ast_value_factory, Scope* scope,
|
| + AstValueFactory* ast_value_factory, DeclarationScope* scope,
|
| ZoneList<Statement*>* body, int materialized_literal_count,
|
| int expected_property_count, int parameter_count,
|
| FunctionType function_type,
|
| @@ -2711,7 +2711,7 @@ class FunctionLiteral final : public Expression {
|
| int yield_count_;
|
|
|
| const AstString* raw_name_;
|
| - Scope* scope_;
|
| + DeclarationScope* scope_;
|
| ZoneList<Statement*>* body_;
|
| const AstString* raw_inferred_name_;
|
| Handle<String> inferred_name_;
|
| @@ -3381,9 +3381,9 @@ class AstNodeFactory final BASE_EMBEDDED {
|
| }
|
|
|
| FunctionLiteral* NewFunctionLiteral(
|
| - const AstRawString* name, Scope* scope, ZoneList<Statement*>* body,
|
| - int materialized_literal_count, int expected_property_count,
|
| - int parameter_count,
|
| + const AstRawString* name, DeclarationScope* scope,
|
| + ZoneList<Statement*>* body, int materialized_literal_count,
|
| + int expected_property_count, int parameter_count,
|
| FunctionLiteral::ParameterFlag has_duplicate_parameters,
|
| FunctionLiteral::FunctionType function_type,
|
| FunctionLiteral::EagerCompileHint eager_compile_hint, FunctionKind kind,
|
| @@ -3399,8 +3399,8 @@ class AstNodeFactory final BASE_EMBEDDED {
|
| // result of an eval (top-level or otherwise), or the result of calling
|
| // the Function constructor.
|
| FunctionLiteral* NewScriptOrEvalFunctionLiteral(
|
| - Scope* scope, ZoneList<Statement*>* body, int materialized_literal_count,
|
| - int expected_property_count) {
|
| + DeclarationScope* scope, ZoneList<Statement*>* body,
|
| + int materialized_literal_count, int expected_property_count) {
|
| return new (zone_) FunctionLiteral(
|
| zone_, ast_value_factory_->empty_string(), ast_value_factory_, scope,
|
| body, materialized_literal_count, expected_property_count, 0,
|
|
|