| Index: src/ast/scopes.h
|
| diff --git a/src/ast/scopes.h b/src/ast/scopes.h
|
| index 0c10633e02fdc387cd7e238dafe9b98839b82744..ac6f3f75fe0127017c9a41ef5fb49c667bae21b0 100644
|
| --- a/src/ast/scopes.h
|
| +++ b/src/ast/scopes.h
|
| @@ -98,13 +98,9 @@ class Scope: public ZoneObject {
|
| int top_decl_;
|
| };
|
|
|
| - enum class DeserializationMode { kDeserializeOffHeap, kKeepScopeInfo };
|
| -
|
| - static Scope* DeserializeScopeChain(Isolate* isolate, Zone* zone,
|
| - Context* context,
|
| - DeclarationScope* script_scope,
|
| - AstValueFactory* ast_value_factory,
|
| - DeserializationMode deserialization_mode);
|
| + static Scope* DeserializeScopeChainForTesting(
|
| + Isolate* isolate, Zone* zone, Context* context,
|
| + DeclarationScope* script_scope, AstValueFactory* ast_value_factory);
|
|
|
| // Checks if the block scope is redundant, i.e. it does not contain any
|
| // block scoped declarations. In that case it is removed from the scope
|
| @@ -572,8 +568,10 @@ class Scope: public ZoneObject {
|
|
|
| void SetDefaults();
|
|
|
| - void DeserializeScopeInfo(Isolate* isolate,
|
| - AstValueFactory* ast_value_factory);
|
| + static Scope* DeserializeScopeChain(Isolate* isolate, Zone* zone,
|
| + Context* context,
|
| + DeclarationScope* script_scope,
|
| + AstValueFactory* ast_value_factory);
|
|
|
| friend class DeclarationScope;
|
| };
|
| @@ -804,6 +802,10 @@ class DeclarationScope : public Scope {
|
|
|
| void SetDefaults();
|
|
|
| + void DeserializeScopeChain(ParseInfo* parse_info);
|
| +
|
| + void HoistSloppyBlockFunctionsInternal(AstNodeFactory* factory, bool* ok);
|
| +
|
| // If the scope is a function scope, this is the function kind.
|
| const FunctionKind function_kind_;
|
|
|
|
|