|
| Scope (Zone *zone, Scope *outer_scope, ScopeType scope_type) |
|
int | UniqueIdInScript () const |
|
DeclarationScope * | AsDeclarationScope () |
|
const DeclarationScope * | AsDeclarationScope () const |
|
ModuleScope * | AsModuleScope () |
|
const ModuleScope * | AsModuleScope () const |
|
ClassScope * | AsClassScope () |
|
const ClassScope * | AsClassScope () const |
|
bool | is_reparsed () const |
|
void | RewriteReplGlobalVariables () |
|
Scope * | FinalizeBlockScope () |
|
Zone * | zone () const |
|
void | SetMustUsePreparseData () |
|
bool | must_use_preparsed_scope_data () const |
|
Variable * | LookupLocal (const AstRawString *name) |
|
Variable * | LookupInScopeInfo (const AstRawString *name, Scope *cache) |
|
Variable * | DeclareLocal (const AstRawString *name, VariableMode mode, VariableKind kind, bool *was_added, InitializationFlag init_flag=kCreatedInitialized) |
|
Variable * | DeclareVariable (Declaration *declaration, const AstRawString *name, int pos, VariableMode mode, VariableKind kind, InitializationFlag init, bool *was_added, bool *sloppy_mode_block_scope_function_redefinition, bool *ok) |
|
Variable * | DeclareVariableName (const AstRawString *name, VariableMode mode, bool *was_added, VariableKind kind=NORMAL_VARIABLE) |
|
Variable * | DeclareCatchVariableName (const AstRawString *name) |
|
Variable * | DeclareHomeObjectVariable (AstValueFactory *ast_value_factory) |
|
Variable * | DeclareStaticHomeObjectVariable (AstValueFactory *ast_value_factory) |
|
base::ThreadedList< Declaration > * | declarations () |
|
base::ThreadedList< Variable > * | locals () |
|
VariableProxy * | NewUnresolved (AstNodeFactory *factory, const AstRawString *name, int start_pos, VariableKind kind=NORMAL_VARIABLE) |
|
void | AddUnresolved (VariableProxy *proxy) |
|
void | DeleteUnresolved (VariableProxy *var) |
|
Variable * | NewTemporary (const AstRawString *name) |
|
const AstRawString * | FindVariableDeclaredIn (Scope *scope, VariableMode mode_limit) |
|
void | RecordEvalCall () |
|
void | RecordInnerScopeEvalCall () |
|
void | SetLanguageMode (LanguageMode language_mode) |
|
void | SetNonlinear () |
|
int | start_position () const |
|
void | set_start_position (int statement_pos) |
|
int | end_position () const |
|
void | set_end_position (int statement_pos) |
|
bool | is_hidden () const |
|
void | set_is_hidden () |
|
void | ForceContextAllocationForParameters () |
|
bool | has_forced_context_allocation_for_parameters () const |
|
bool | is_eval_scope () const |
|
bool | is_function_scope () const |
|
bool | is_module_scope () const |
|
bool | is_script_scope () const |
|
bool | is_catch_scope () const |
|
bool | is_block_scope () const |
|
bool | is_with_scope () const |
|
bool | is_declaration_scope () const |
|
bool | is_class_scope () const |
|
bool | is_home_object_scope () const |
|
bool | is_block_scope_for_object_literal () const |
|
void | set_is_block_scope_for_object_literal () |
|
bool | inner_scope_calls_eval () const |
|
bool | private_name_lookup_skips_outer_class () const |
|
bool | has_using_declaration () const |
|
bool | has_await_using_declaration () const |
|
bool | is_wrapped_function () const |
|
void | set_is_wrapped_function () |
|
bool | is_nonlinear () const |
|
bool | ForceContextForLanguageMode () const |
|
bool | NeedsContext () const |
|
template<typename FunctionType > |
V8_INLINE void | ForEach (FunctionType callback) |
|
bool | IsConstructorScope () const |
|
bool | IsOuterScopeOf (Scope *other) const |
|
ScopeType | scope_type () const |
|
LanguageMode | language_mode () const |
|
Scope * | inner_scope () const |
|
Scope * | sibling () const |
|
Scope * | outer_scope () const |
|
Variable * | catch_variable () const |
|
bool | ShouldBanArguments () |
|
int | num_stack_slots () const |
|
int | num_heap_slots () const |
|
bool | HasContextExtensionSlot () const |
|
int | ContextHeaderLength () const |
|
int | ContextLocalCount () const |
|
bool | AllowsLazyParsingWithoutUnresolvedVariables (const Scope *outer) const |
|
int | ContextChainLength (Scope *scope) const |
|
int | ContextChainLengthUntilOutermostSloppyEval () const |
|
DeclarationScope * | GetDeclarationScope () |
|
DeclarationScope * | GetNonEvalDeclarationScope () |
|
DeclarationScope * | GetClosureScope () |
|
const DeclarationScope * | GetClosureScope () const |
|
DeclarationScope * | GetReceiverScope () |
|
DeclarationScope * | GetConstructorScope () |
|
Scope * | GetHomeObjectScope () |
|
DeclarationScope * | GetScriptScope () |
|
Scope * | GetOuterScopeWithContext () |
|
bool | HasReceiverToDeserialize () const |
|
bool | HasThisReference () const |
|
Handle< ScopeInfo > | scope_info () const |
|
int | num_var () const |
|
bool | HasSimpleParameters () |
|
void | set_is_debug_evaluate_scope () |
|
bool | is_debug_evaluate_scope () const |
|
bool | IsSkippableFunctionScope () |
|
bool | is_repl_mode_scope () const |
|
bool | needs_home_object () const |
|
void | set_needs_home_object () |
|
bool | RemoveInnerScope (Scope *inner_scope) |
|
Variable * | LookupInScopeOrScopeInfo (const AstRawString *name, Scope *cache) |
|
Variable * | LookupForTesting (const AstRawString *name) |
|
void | ForceDynamicLookup (VariableProxy *proxy) |
|
template<typename FunctionType > |
void | ForEach (FunctionType callback) |
|
template<typename IsolateT > |
void | AllocateScopeInfosRecursively (IsolateT *isolate, MaybeHandle< ScopeInfo > outer_scope, std::unordered_map< int, Handle< ScopeInfo > > &scope_infos_to_reuse) |
|
|
Variable * | Declare (Zone *zone, const AstRawString *name, VariableMode mode, VariableKind kind, InitializationFlag initialization_flag, MaybeAssignedFlag maybe_assigned_flag, bool *was_added) |
|
bool | NeedsScopeInfo () const |
|
Variable * | NewTemporary (const AstRawString *name, MaybeAssignedFlag maybe_assigned) |
|
void | SavePreparseData (Parser *parser) |
|
Variable * | NonLocal (const AstRawString *name, VariableMode mode) |
|
void | ResolveTo (VariableProxy *proxy, Variable *var) |
|
void | ResolveVariable (VariableProxy *proxy) |
|
V8_WARN_UNUSED_RESULT bool | ResolveVariablesRecursively (Scope *end) |
|
void | AnalyzePartially (DeclarationScope *max_outer_scope, AstNodeFactory *ast_node_factory, UnresolvedList *new_unresolved_list, bool maybe_in_arrowhead) |
|
bool | MustAllocate (Variable *var) |
|
bool | MustAllocateInContext (Variable *var) |
|
void | AllocateStackSlot (Variable *var) |
|
V8_INLINE void | AllocateHeapSlot (Variable *var) |
|
void | AllocateNonParameterLocal (Variable *var) |
|
void | AllocateDeclaredGlobal (Variable *var) |
|
V8_INLINE void | AllocateNonParameterLocalsAndDeclaredGlobals () |
|
void | AllocateVariablesRecursively () |
|
template<typename IsolateT > |
void | AllocateScopeInfosRecursively (IsolateT *isolate, MaybeHandle< ScopeInfo > outer_scope, std::unordered_map< int, IndirectHandle< ScopeInfo > > &scope_infos_to_reuse) |
|
| Scope (Zone *zone, ScopeType type, AstValueFactory *ast_value_factory, Handle< ScopeInfo > scope_info) |
|
| Scope (Zone *zone, const AstRawString *catch_variable_name, MaybeAssignedFlag maybe_assigned, Handle< ScopeInfo > scope_info) |
|
void | AddInnerScope (Scope *inner_scope) |
|
void | SetDefaults () |
|
Definition at line 90 of file scopes.h.