v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::DeclarationScope Class Reference

#include <scopes.h>

Inheritance diagram for v8::internal::DeclarationScope:
Collaboration diagram for v8::internal::DeclarationScope:

Classes

struct  RareData
 

Public Member Functions

 DeclarationScope (Zone *zone, Scope *outer_scope, ScopeType scope_type, FunctionKind function_kind=FunctionKind::kNormalFunction)
 
 DeclarationScope (Zone *zone, ScopeType scope_type, AstValueFactory *ast_value_factory, Handle< ScopeInfo > scope_info)
 
 DeclarationScope (Zone *zone, AstValueFactory *ast_value_factory, REPLMode repl_mode=REPLMode::kNo)
 
FunctionKind function_kind () const
 
void RecordSuperPropertyUsage ()
 
bool uses_super_property () const
 
void TakeUnresolvedReferencesFromParent ()
 
bool is_arrow_scope () const
 
void RecordDeclarationScopeEvalCall ()
 
bool sloppy_eval_can_extend_vars () const
 
bool was_lazily_parsed () const
 
VariableLookupInModule (const AstRawString *name)
 
void DeserializeReceiver (AstValueFactory *ast_value_factory)
 
void set_zone (Zone *zone)
 
DeclarationCheckConflictingVarDeclarations (bool *allowed_catch_binding_var_redeclaration)
 
void set_has_checked_syntax (bool has_checked_syntax)
 
bool has_checked_syntax () const
 
bool ShouldEagerCompile () const
 
void set_should_eager_compile ()
 
void SetScriptScopeInfo (Handle< ScopeInfo > scope_info)
 
bool should_ban_arguments () const
 
void set_module_has_toplevel_await ()
 
void DeclareThis (AstValueFactory *ast_value_factory)
 
void DeclareArguments (AstValueFactory *ast_value_factory)
 
void DeclareDefaultFunctionVariables (AstValueFactory *ast_value_factory)
 
VariableDeclareFunctionVar (const AstRawString *name, Scope *cache=nullptr)
 
VariableDeclareGeneratorObjectVar (const AstRawString *name)
 
VariableDeclareParameter (const AstRawString *name, VariableMode mode, bool is_optional, bool is_rest, AstValueFactory *ast_value_factory, int position)
 
void RecordParameter (bool is_rest)
 
VariableDeclareDynamicGlobal (const AstRawString *name, VariableKind variable_kind, Scope *cache)
 
Variablereceiver ()
 
bool has_this_declaration () const
 
Variablenew_target_var ()
 
Variablefunction_var () const
 
Variablegenerator_object_var () const
 
Variableparameter (int index) const
 
int num_parameters () const
 
Variablerest_parameter () const
 
bool has_simple_parameters () const
 
void SetHasNonSimpleParameters ()
 
void MakeParametersNonSimple ()
 
CreateArgumentsType GetArgumentsType () const
 
Variablearguments () const
 
Variablethis_function_var () const
 
void AddLocal (Variable *var)
 
void DeclareSloppyBlockFunction (SloppyBlockFunctionStatement *sloppy_block_function)
 
void HoistSloppyBlockFunctions (AstNodeFactory *factory)
 
void AnalyzePartially (Parser *parser, AstNodeFactory *ast_node_factory, bool maybe_in_arrowhead)
 
bool AllowsLazyCompilation () const
 
void ForceEagerCompilation ()
 
V8_INLINE void AllocateLocals ()
 
V8_INLINE void AllocateParameterLocals ()
 
V8_INLINE void AllocateReceiver ()
 
void ResetAfterPreparsing (AstValueFactory *ast_value_factory, bool aborted)
 
bool is_skipped_function () const
 
void set_is_skipped_function (bool is_skipped_function)
 
bool has_inferred_function_name () const
 
void set_has_inferred_function_name (bool value)
 
void SavePreparseDataForDeclarationScope (Parser *parser)
 
void set_preparse_data_builder (PreparseDataBuilder *preparse_data_builder)
 
PreparseDataBuilderpreparse_data_builder () const
 
void set_has_this_reference ()
 
bool has_this_reference () const
 
void UsesThis ()
 
bool needs_private_name_context_chain_recalc () const
 
void RecordNeedsPrivateNameContextChainRecalc ()
 
void set_class_scope_has_private_brand (bool value)
 
bool class_scope_has_private_brand () const
 
template<typename IsolateT >
void AllocateScopeInfos (ParseInfo *parse_info, DirectHandle< Script > script, IsolateT *isolate)
 
- Public Member Functions inherited from v8::internal::Scope
 Scope (Zone *zone, Scope *outer_scope, ScopeType scope_type)
 
int UniqueIdInScript () const
 
DeclarationScopeAsDeclarationScope ()
 
const DeclarationScopeAsDeclarationScope () const
 
ModuleScopeAsModuleScope ()
 
const ModuleScopeAsModuleScope () const
 
ClassScopeAsClassScope ()
 
const ClassScopeAsClassScope () const
 
bool is_reparsed () const
 
void RewriteReplGlobalVariables ()
 
ScopeFinalizeBlockScope ()
 
Zonezone () const
 
void SetMustUsePreparseData ()
 
bool must_use_preparsed_scope_data () const
 
VariableLookupLocal (const AstRawString *name)
 
VariableLookupInScopeInfo (const AstRawString *name, Scope *cache)
 
VariableDeclareLocal (const AstRawString *name, VariableMode mode, VariableKind kind, bool *was_added, InitializationFlag init_flag=kCreatedInitialized)
 
VariableDeclareVariable (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)
 
VariableDeclareVariableName (const AstRawString *name, VariableMode mode, bool *was_added, VariableKind kind=NORMAL_VARIABLE)
 
VariableDeclareCatchVariableName (const AstRawString *name)
 
VariableDeclareHomeObjectVariable (AstValueFactory *ast_value_factory)
 
VariableDeclareStaticHomeObjectVariable (AstValueFactory *ast_value_factory)
 
base::ThreadedList< Declaration > * declarations ()
 
base::ThreadedList< Variable > * locals ()
 
VariableProxyNewUnresolved (AstNodeFactory *factory, const AstRawString *name, int start_pos, VariableKind kind=NORMAL_VARIABLE)
 
void AddUnresolved (VariableProxy *proxy)
 
void DeleteUnresolved (VariableProxy *var)
 
VariableNewTemporary (const AstRawString *name)
 
const AstRawStringFindVariableDeclaredIn (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
 
Scopeinner_scope () const
 
Scopesibling () const
 
Scopeouter_scope () const
 
Variablecatch_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
 
DeclarationScopeGetDeclarationScope ()
 
DeclarationScopeGetNonEvalDeclarationScope ()
 
DeclarationScopeGetClosureScope ()
 
const DeclarationScopeGetClosureScope () const
 
DeclarationScopeGetReceiverScope ()
 
DeclarationScopeGetConstructorScope ()
 
ScopeGetHomeObjectScope ()
 
DeclarationScopeGetScriptScope ()
 
ScopeGetOuterScopeWithContext ()
 
bool HasReceiverToDeserialize () const
 
bool HasThisReference () const
 
Handle< ScopeInfoscope_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)
 
VariableLookupInScopeOrScopeInfo (const AstRawString *name, Scope *cache)
 
VariableLookupForTesting (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)
 

Static Public Member Functions

static V8_WARN_UNUSED_RESULT bool Analyze (ParseInfo *info)
 
template<typename IsolateT >
static V8_EXPORT_PRIVATE void AllocateScopeInfos (ParseInfo *info, DirectHandle< Script > script, IsolateT *isolate)
 
- Static Public Member Functions inherited from v8::internal::Scope
template<typename IsolateT >
static ScopeDeserializeScopeChain (IsolateT *isolate, Zone *zone, Tagged< ScopeInfo > scope_info, DeclarationScope *script_scope, AstValueFactory *ast_value_factory, DeserializationMode deserialization_mode, ParseInfo *info=nullptr)
 
template<typename IsolateT >
static void SetScriptScopeInfo (IsolateT *isolate, DeclarationScope *script_scope)
 

Private Types

enum class  RareVariable { kThisFunction = offsetof(RareData, this_function) , kGeneratorObject = offsetof(RareData, generator_object) }
 

Private Member Functions

V8_INLINE void AllocateParameter (Variable *var, int index)
 
bool AllocateVariables (ParseInfo *info)
 
void SetDefaults ()
 
void RecalcPrivateNameContextChain ()
 
V8_INLINE RareDataEnsureRareData ()
 
V8_INLINE VariableGetRareVariable (RareVariable id) const
 
template<typename Predicate >
V8_INLINE void NullifyRareVariableIf (RareVariable id, Predicate predicate)
 

Private Attributes

bool has_simple_parameters_: 1
 
bool force_eager_compilation_: 1
 
bool has_rest_: 1
 
bool has_arguments_parameter_: 1
 
bool uses_super_property_: 1
 
bool should_eager_compile_: 1
 
bool was_lazily_parsed_: 1
 
bool is_skipped_function_: 1
 
bool has_inferred_function_name_: 1
 
bool has_checked_syntax_: 1
 
bool has_this_reference_: 1
 
bool has_this_declaration_: 1
 
bool needs_private_name_context_chain_recalc_: 1
 
bool class_scope_has_private_brand_: 1
 
FunctionKind function_kind_
 
int num_parameters_ = 0
 
ZonePtrList< Variableparams_
 
base::ThreadedList< SloppyBlockFunctionStatementsloppy_block_functions_
 
Variablereceiver_
 
Variablefunction_
 
Variablenew_target_
 
Variablearguments_
 
PreparseDataBuilderpreparse_data_builder_
 
RareDatarare_data_ = nullptr
 

Additional Inherited Members

- Public Types inherited from v8::internal::Scope
enum class  DeserializationMode { kIncludingVariables , kScopesOnly }
 
enum  Iteration { kContinue , kDescend }
 
- Protected Member Functions inherited from v8::internal::Scope
 Scope (Zone *zone, ScopeType scope_type)
 
void set_language_mode (LanguageMode language_mode)
 

Detailed Description

Definition at line 852 of file scopes.h.

Member Enumeration Documentation

◆ RareVariable

Enumerator
kThisFunction 
kGeneratorObject 

Definition at line 1309 of file scopes.h.

Constructor & Destructor Documentation

◆ DeclarationScope() [1/3]

v8::internal::DeclarationScope::DeclarationScope ( Zone * zone,
Scope * outer_scope,
ScopeType scope_type,
FunctionKind function_kind = FunctionKind::kNormalFunction )

Definition at line 154 of file scopes.cc.

Here is the call graph for this function:

◆ DeclarationScope() [2/3]

v8::internal::DeclarationScope::DeclarationScope ( Zone * zone,
ScopeType scope_type,
AstValueFactory * ast_value_factory,
Handle< ScopeInfo > scope_info )

Definition at line 268 of file scopes.cc.

Here is the call graph for this function:

◆ DeclarationScope() [3/3]

v8::internal::DeclarationScope::DeclarationScope ( Zone * zone,
AstValueFactory * ast_value_factory,
REPLMode repl_mode = REPLMode::kNo )

Definition at line 140 of file scopes.cc.

Here is the call graph for this function:

Member Function Documentation

◆ AddLocal()

void v8::internal::DeclarationScope::AddLocal ( Variable * var)

Definition at line 901 of file scopes.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AllocateLocals()

void v8::internal::DeclarationScope::AllocateLocals ( )

Definition at line 2539 of file scopes.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AllocateParameter()

void v8::internal::DeclarationScope::AllocateParameter ( Variable * var,
int index )
private

Definition at line 2480 of file scopes.cc.

Here is the call graph for this function:

◆ AllocateParameterLocals()

void v8::internal::DeclarationScope::AllocateParameterLocals ( )

Definition at line 2442 of file scopes.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AllocateReceiver()

void v8::internal::DeclarationScope::AllocateReceiver ( )

Definition at line 2494 of file scopes.cc.

Here is the caller graph for this function:

◆ AllocateScopeInfos() [1/2]

template<typename IsolateT >
static V8_EXPORT_PRIVATE void v8::internal::DeclarationScope::AllocateScopeInfos ( ParseInfo * info,
DirectHandle< Script > script,
IsolateT * isolate )
static

◆ AllocateScopeInfos() [2/2]

template<typename IsolateT >
void v8::internal::DeclarationScope::AllocateScopeInfos ( ParseInfo * parse_info,
DirectHandle< Script > script,
IsolateT * isolate )

Definition at line 2758 of file scopes.cc.

Here is the call graph for this function:

◆ AllocateVariables()

bool v8::internal::DeclarationScope::AllocateVariables ( ParseInfo * info)
private

Definition at line 1358 of file scopes.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AllowsLazyCompilation()

bool v8::internal::DeclarationScope::AllowsLazyCompilation ( ) const

Definition at line 1424 of file scopes.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Analyze()

bool v8::internal::DeclarationScope::Analyze ( ParseInfo * info)
static

Definition at line 687 of file scopes.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AnalyzePartially()

void v8::internal::DeclarationScope::AnalyzePartially ( Parser * parser,
AstNodeFactory * ast_node_factory,
bool maybe_in_arrowhead )

Definition at line 1711 of file scopes.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ arguments()

Variable * v8::internal::DeclarationScope::arguments ( ) const
inline

Definition at line 1109 of file scopes.h.

Here is the caller graph for this function:

◆ CheckConflictingVarDeclarations()

Declaration * v8::internal::DeclarationScope::CheckConflictingVarDeclarations ( bool * allowed_catch_binding_var_redeclaration)

Definition at line 1264 of file scopes.cc.

Here is the call graph for this function:

◆ class_scope_has_private_brand()

bool v8::internal::DeclarationScope::class_scope_has_private_brand ( ) const
inline

Definition at line 1227 of file scopes.h.

Here is the caller graph for this function:

◆ DeclareArguments()

void v8::internal::DeclarationScope::DeclareArguments ( AstValueFactory * ast_value_factory)

Definition at line 760 of file scopes.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeclareDefaultFunctionVariables()

void v8::internal::DeclarationScope::DeclareDefaultFunctionVariables ( AstValueFactory * ast_value_factory)

Definition at line 792 of file scopes.cc.

Here is the call graph for this function:

◆ DeclareDynamicGlobal()

Variable * v8::internal::DeclarationScope::DeclareDynamicGlobal ( const AstRawString * name,
VariableKind variable_kind,
Scope * cache )

Definition at line 1234 of file scopes.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeclareFunctionVar()

Variable * v8::internal::DeclarationScope::DeclareFunctionVar ( const AstRawString * name,
Scope * cache = nullptr )

Definition at line 813 of file scopes.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeclareGeneratorObjectVar()

Variable * v8::internal::DeclarationScope::DeclareGeneratorObjectVar ( const AstRawString * name)

Definition at line 836 of file scopes.cc.

Here is the call graph for this function:

◆ DeclareParameter()

Variable * v8::internal::DeclarationScope::DeclareParameter ( const AstRawString * name,
VariableMode mode,
bool is_optional,
bool is_rest,
AstValueFactory * ast_value_factory,
int position )

Definition at line 1012 of file scopes.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeclareSloppyBlockFunction()

void v8::internal::DeclarationScope::DeclareSloppyBlockFunction ( SloppyBlockFunctionStatement * sloppy_block_function)

Definition at line 576 of file scopes.cc.

Here is the caller graph for this function:

◆ DeclareThis()

void v8::internal::DeclarationScope::DeclareThis ( AstValueFactory * ast_value_factory)

Definition at line 739 of file scopes.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeserializeReceiver()

void v8::internal::DeclarationScope::DeserializeReceiver ( AstValueFactory * ast_value_factory)

Definition at line 1343 of file scopes.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureRareData()

V8_INLINE RareData * v8::internal::DeclarationScope::EnsureRareData ( )
inlineprivate

Definition at line 1314 of file scopes.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ForceEagerCompilation()

void v8::internal::DeclarationScope::ForceEagerCompilation ( )
inline

Definition at line 1166 of file scopes.h.

◆ function_kind()

FunctionKind v8::internal::DeclarationScope::function_kind ( ) const
inline

Definition at line 863 of file scopes.h.

Here is the caller graph for this function:

◆ function_var()

Variable * v8::internal::DeclarationScope::function_var ( ) const
inline

Definition at line 1046 of file scopes.h.

Here is the caller graph for this function:

◆ generator_object_var()

Variable * v8::internal::DeclarationScope::generator_object_var ( ) const
inline

Definition at line 1051 of file scopes.h.

Here is the caller graph for this function:

◆ GetArgumentsType()

CreateArgumentsType v8::internal::DeclarationScope::GetArgumentsType ( ) const
inline

Definition at line 1098 of file scopes.h.

Here is the call graph for this function:

◆ GetRareVariable()

V8_INLINE Variable * v8::internal::DeclarationScope::GetRareVariable ( RareVariable id) const
inlineprivate

Definition at line 1321 of file scopes.h.

◆ has_checked_syntax()

bool v8::internal::DeclarationScope::has_checked_syntax ( ) const
inline

Definition at line 968 of file scopes.h.

◆ has_inferred_function_name()

bool v8::internal::DeclarationScope::has_inferred_function_name ( ) const
inline

Definition at line 1191 of file scopes.h.

◆ has_simple_parameters()

bool v8::internal::DeclarationScope::has_simple_parameters ( ) const
inline

Definition at line 1076 of file scopes.h.

Here is the caller graph for this function:

◆ has_this_declaration()

bool v8::internal::DeclarationScope::has_this_declaration ( ) const
inline

Definition at line 1039 of file scopes.h.

Here is the caller graph for this function:

◆ has_this_reference()

bool v8::internal::DeclarationScope::has_this_reference ( ) const
inline

Definition at line 1213 of file scopes.h.

◆ HoistSloppyBlockFunctions()

void v8::internal::DeclarationScope::HoistSloppyBlockFunctions ( AstNodeFactory * factory)

Definition at line 581 of file scopes.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_arrow_scope()

bool v8::internal::DeclarationScope::is_arrow_scope ( ) const
inline

Definition at line 880 of file scopes.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_skipped_function()

bool v8::internal::DeclarationScope::is_skipped_function ( ) const
inline

Definition at line 1186 of file scopes.h.

Here is the caller graph for this function:

◆ LookupInModule()

Variable * v8::internal::DeclarationScope::LookupInModule ( const AstRawString * name)
inline

Definition at line 932 of file scopes.h.

Here is the caller graph for this function:

◆ MakeParametersNonSimple()

void v8::internal::DeclarationScope::MakeParametersNonSimple ( )
inline

Definition at line 1088 of file scopes.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ needs_private_name_context_chain_recalc()

bool v8::internal::DeclarationScope::needs_private_name_context_chain_recalc ( ) const
inline

Definition at line 1219 of file scopes.h.

Here is the caller graph for this function:

◆ new_target_var()

Variable * v8::internal::DeclarationScope::new_target_var ( )
inline

Definition at line 1042 of file scopes.h.

Here is the caller graph for this function:

◆ NullifyRareVariableIf()

template<typename Predicate >
V8_INLINE void v8::internal::DeclarationScope::NullifyRareVariableIf ( RareVariable id,
Predicate predicate )
inlineprivate

Definition at line 1330 of file scopes.h.

◆ num_parameters()

int v8::internal::DeclarationScope::num_parameters ( ) const
inline

Definition at line 1069 of file scopes.h.

Here is the caller graph for this function:

◆ parameter()

Variable * v8::internal::DeclarationScope::parameter ( int index) const
inline

Definition at line 1058 of file scopes.h.

Here is the caller graph for this function:

◆ preparse_data_builder()

PreparseDataBuilder * v8::internal::DeclarationScope::preparse_data_builder ( ) const
inline

Definition at line 1208 of file scopes.h.

Here is the caller graph for this function:

◆ RecalcPrivateNameContextChain()

void v8::internal::DeclarationScope::RecalcPrivateNameContextChain ( )
private
Here is the caller graph for this function:

◆ receiver()

Variable * v8::internal::DeclarationScope::receiver ( )
inline

Definition at line 1033 of file scopes.h.

Here is the caller graph for this function:

◆ RecordDeclarationScopeEvalCall()

void v8::internal::DeclarationScope::RecordDeclarationScopeEvalCall ( )
inline

Definition at line 886 of file scopes.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RecordNeedsPrivateNameContextChainRecalc()

void v8::internal::DeclarationScope::RecordNeedsPrivateNameContextChainRecalc ( )

Definition at line 2744 of file scopes.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RecordParameter()

void v8::internal::DeclarationScope::RecordParameter ( bool is_rest)

Definition at line 1046 of file scopes.cc.

Here is the call graph for this function:

◆ RecordSuperPropertyUsage()

void v8::internal::DeclarationScope::RecordSuperPropertyUsage ( )
inline

Definition at line 866 of file scopes.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ResetAfterPreparsing()

void v8::internal::DeclarationScope::ResetAfterPreparsing ( AstValueFactory * ast_value_factory,
bool aborted )

Definition at line 1640 of file scopes.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rest_parameter()

Variable * v8::internal::DeclarationScope::rest_parameter ( ) const
inline

Definition at line 1072 of file scopes.h.

Here is the caller graph for this function:

◆ SavePreparseDataForDeclarationScope()

void v8::internal::DeclarationScope::SavePreparseDataForDeclarationScope ( Parser * parser)

Definition at line 1706 of file scopes.cc.

Here is the caller graph for this function:

◆ set_class_scope_has_private_brand()

void v8::internal::DeclarationScope::set_class_scope_has_private_brand ( bool value)
inline

Definition at line 1224 of file scopes.h.

Here is the caller graph for this function:

◆ set_has_checked_syntax()

void v8::internal::DeclarationScope::set_has_checked_syntax ( bool has_checked_syntax)
inline

Definition at line 965 of file scopes.h.

Here is the caller graph for this function:

◆ set_has_inferred_function_name()

void v8::internal::DeclarationScope::set_has_inferred_function_name ( bool value)
inline

Definition at line 1194 of file scopes.h.

Here is the caller graph for this function:

◆ set_has_this_reference()

void v8::internal::DeclarationScope::set_has_this_reference ( )
inline

Definition at line 1212 of file scopes.h.

Here is the caller graph for this function:

◆ set_is_skipped_function()

void v8::internal::DeclarationScope::set_is_skipped_function ( bool is_skipped_function)
inline

Definition at line 1187 of file scopes.h.

Here is the caller graph for this function:

◆ set_module_has_toplevel_await()

void v8::internal::DeclarationScope::set_module_has_toplevel_await ( )
inline

Definition at line 991 of file scopes.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_preparse_data_builder()

void v8::internal::DeclarationScope::set_preparse_data_builder ( PreparseDataBuilder * preparse_data_builder)
inline

Definition at line 1204 of file scopes.h.

Here is the caller graph for this function:

◆ set_should_eager_compile()

void v8::internal::DeclarationScope::set_should_eager_compile ( )

Definition at line 388 of file scopes.cc.

Here is the caller graph for this function:

◆ set_zone()

void v8::internal::DeclarationScope::set_zone ( Zone * zone)
inline

Definition at line 948 of file scopes.h.

Here is the caller graph for this function:

◆ SetDefaults()

void v8::internal::DeclarationScope::SetDefaults ( )
private

Definition at line 307 of file scopes.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetHasNonSimpleParameters()

void v8::internal::DeclarationScope::SetHasNonSimpleParameters ( )
inline

Definition at line 1083 of file scopes.h.

Here is the caller graph for this function:

◆ SetScriptScopeInfo()

void v8::internal::DeclarationScope::SetScriptScopeInfo ( Handle< ScopeInfo > scope_info)
inline

Definition at line 976 of file scopes.h.

Here is the caller graph for this function:

◆ should_ban_arguments()

bool v8::internal::DeclarationScope::should_ban_arguments ( ) const
inline

Definition at line 987 of file scopes.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ShouldEagerCompile()

bool v8::internal::DeclarationScope::ShouldEagerCompile ( ) const
inline

Definition at line 970 of file scopes.h.

Here is the caller graph for this function:

◆ sloppy_eval_can_extend_vars()

bool v8::internal::DeclarationScope::sloppy_eval_can_extend_vars ( ) const
inline

Definition at line 926 of file scopes.h.

Here is the caller graph for this function:

◆ TakeUnresolvedReferencesFromParent()

void v8::internal::DeclarationScope::TakeUnresolvedReferencesFromParent ( )

Definition at line 681 of file scopes.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ this_function_var()

Variable * v8::internal::DeclarationScope::this_function_var ( ) const
inline

Definition at line 1114 of file scopes.h.

Here is the call graph for this function:

◆ uses_super_property()

bool v8::internal::DeclarationScope::uses_super_property ( ) const
inline

Definition at line 876 of file scopes.h.

Here is the caller graph for this function:

◆ UsesThis()

void v8::internal::DeclarationScope::UsesThis ( )
inline

Definition at line 1214 of file scopes.h.

◆ was_lazily_parsed()

bool v8::internal::DeclarationScope::was_lazily_parsed ( ) const
inline

Definition at line 930 of file scopes.h.

Here is the caller graph for this function:

Member Data Documentation

◆ arguments_

Variable* v8::internal::DeclarationScope::arguments_
private

Definition at line 1295 of file scopes.h.

◆ class_scope_has_private_brand_

bool v8::internal::DeclarationScope::class_scope_has_private_brand_
private

Definition at line 1278 of file scopes.h.

◆ force_eager_compilation_

bool v8::internal::DeclarationScope::force_eager_compilation_
private

Definition at line 1259 of file scopes.h.

◆ function_

Variable* v8::internal::DeclarationScope::function_
private

Definition at line 1291 of file scopes.h.

◆ function_kind_

FunctionKind v8::internal::DeclarationScope::function_kind_
private

Definition at line 1280 of file scopes.h.

◆ has_arguments_parameter_

bool v8::internal::DeclarationScope::has_arguments_parameter_
private

Definition at line 1263 of file scopes.h.

◆ has_checked_syntax_

bool v8::internal::DeclarationScope::has_checked_syntax_
private

Definition at line 1274 of file scopes.h.

◆ has_inferred_function_name_

bool v8::internal::DeclarationScope::has_inferred_function_name_
private

Definition at line 1273 of file scopes.h.

◆ has_rest_

bool v8::internal::DeclarationScope::has_rest_
private

Definition at line 1261 of file scopes.h.

◆ has_simple_parameters_

bool v8::internal::DeclarationScope::has_simple_parameters_
private

Definition at line 1254 of file scopes.h.

◆ has_this_declaration_

bool v8::internal::DeclarationScope::has_this_declaration_
private

Definition at line 1276 of file scopes.h.

◆ has_this_reference_

bool v8::internal::DeclarationScope::has_this_reference_
private

Definition at line 1275 of file scopes.h.

◆ is_skipped_function_

bool v8::internal::DeclarationScope::is_skipped_function_
private

Definition at line 1272 of file scopes.h.

◆ needs_private_name_context_chain_recalc_

bool v8::internal::DeclarationScope::needs_private_name_context_chain_recalc_
private

Definition at line 1277 of file scopes.h.

◆ new_target_

Variable* v8::internal::DeclarationScope::new_target_
private

Definition at line 1293 of file scopes.h.

◆ num_parameters_

int v8::internal::DeclarationScope::num_parameters_ = 0
private

Definition at line 1282 of file scopes.h.

◆ params_

ZonePtrList<Variable> v8::internal::DeclarationScope::params_
private

Definition at line 1285 of file scopes.h.

◆ preparse_data_builder_

PreparseDataBuilder* v8::internal::DeclarationScope::preparse_data_builder_
private

Definition at line 1298 of file scopes.h.

◆ rare_data_

RareData* v8::internal::DeclarationScope::rare_data_ = nullptr
private

Definition at line 1337 of file scopes.h.

◆ receiver_

Variable* v8::internal::DeclarationScope::receiver_
private

Definition at line 1289 of file scopes.h.

◆ should_eager_compile_

bool v8::internal::DeclarationScope::should_eager_compile_
private

Definition at line 1266 of file scopes.h.

◆ sloppy_block_functions_

base::ThreadedList<SloppyBlockFunctionStatement> v8::internal::DeclarationScope::sloppy_block_functions_
private

Definition at line 1287 of file scopes.h.

◆ uses_super_property_

bool v8::internal::DeclarationScope::uses_super_property_
private

Definition at line 1265 of file scopes.h.

◆ was_lazily_parsed_

bool v8::internal::DeclarationScope::was_lazily_parsed_
private

Definition at line 1268 of file scopes.h.


The documentation for this class was generated from the following files: