V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::internal::ModuleScope Class Referencefinal
Inheritance diagram for v8::internal::ModuleScope:
v8::internal::DeclarationScope v8::internal::Scope NON_EXPORTED_BASEZoneObject

Public Member Functions

 ModuleScope (DeclarationScope *script_scope, AstValueFactory *ast_value_factory)
 
 ModuleScope (Isolate *isolate, Handle< ScopeInfo > scope_info, AstValueFactory *ast_value_factory)
 
ModuleDescriptormodule () const
 
void AllocateModuleVariables ()
 
- Public Member Functions inherited from v8::internal::DeclarationScope
 DeclarationScope (Zone *zone, Scope *outer_scope, ScopeType scope_type, FunctionKind function_kind=kNormalFunction)
 
 DeclarationScope (Zone *zone, ScopeType scope_type, Handle< ScopeInfo > scope_info)
 
 DeclarationScope (Zone *zone, AstValueFactory *ast_value_factory)
 
bool IsDeclaredParameter (const AstRawString *name)
 
FunctionKind function_kind () const
 
bool is_arrow_scope () const
 
void RecordSuperPropertyUsage ()
 
bool NeedsHomeObject () const
 
bool calls_sloppy_eval () const
 
bool was_lazily_parsed () const
 
VariableLookupInModule (const AstRawString *name)
 
void set_zone (Zone *zone)
 
bool ShouldEagerCompile () const
 
void set_should_eager_compile ()
 
void SetScriptScopeInfo (Handle< ScopeInfo > scope_info)
 
bool asm_module () const
 
void set_asm_module ()
 
bool should_ban_arguments () const
 
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)
 
VariableDeclareParameterName (const AstRawString *name, bool is_rest, AstValueFactory *ast_value_factory, bool declare_local, bool add_parameter)
 
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 ()
 
CreateArgumentsType GetArgumentsType () const
 
Variablearguments () const
 
Variablethis_function_var () const
 
void AddLocal (Variable *var)
 
void DeclareSloppyBlockFunction (const AstRawString *name, Scope *scope, SloppyBlockFunctionStatement *statement=nullptr)
 
void HoistSloppyBlockFunctions (AstNodeFactory *factory)
 
SloppyBlockFunctionMapsloppy_block_function_map ()
 
void AttachOuterScopeInfo (ParseInfo *info, Isolate *isolate)
 
void AnalyzePartially (AstNodeFactory *ast_node_factory)
 
Handle< StringSetCollectNonLocals (Isolate *isolate, ParseInfo *info, Handle< StringSet > non_locals)
 
bool AllowsLazyCompilation () const
 
void ForceEagerCompilation ()
 
void AllocateLocals ()
 
void AllocateParameterLocals ()
 
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 SavePreParsedScopeDataForDeclarationScope ()
 
void set_preparsed_scope_data_builder (PreParsedScopeDataBuilder *preparsed_scope_data_builder)
 
PreParsedScopeDataBuilderpreparsed_scope_data_builder () const
 
- Public Member Functions inherited from v8::internal::Scope
 Scope (Zone *zone, Scope *outer_scope, ScopeType scope_type)
 
int num_parameters () const
 
DeclarationScopeAsDeclarationScope ()
 
const DeclarationScopeAsDeclarationScope () const
 
ModuleScopeAsModuleScope ()
 
const ModuleScopeAsModuleScope () const
 
ScopeFinalizeBlockScope ()
 
bool HasBeenRemoved () const
 
ScopeGetUnremovedScope ()
 
void ReplaceOuterScope (Scope *outer_scope)
 
Zonezone () const
 
void SetMustUsePreParsedScopeData ()
 
bool must_use_preparsed_scope_data () const
 
VariableLookupLocal (const AstRawString *name)
 
VariableLookupInScopeInfo (const AstRawString *name, Scope *cache)
 
VariableDeclareLocal (const AstRawString *name, VariableMode mode, InitializationFlag init_flag=kCreatedInitialized)
 
VariableDeclareVariable (Declaration *declaration, VariableMode mode, InitializationFlag init, bool *sloppy_mode_block_scope_function_redefinition, bool *ok)
 
VariableDeclareVariableName (const AstRawString *name, VariableMode mode)
 
void DeclareCatchVariableName (const AstRawString *name)
 
base::ThreadedList< Declaration > * declarations ()
 
base::ThreadedList< Variable > * locals ()
 
VariableProxyNewUnresolved (AstNodeFactory *factory, const AstRawString *name, int start_pos=kNoSourcePosition, VariableKind kind=NORMAL_VARIABLE)
 
void AddUnresolved (VariableProxy *proxy)
 
bool RemoveUnresolved (VariableProxy *var)
 
void DeleteUnresolved (VariableProxy *var)
 
VariableNewTemporary (const AstRawString *name)
 
DeclarationCheckConflictingVarDeclarations ()
 
DeclarationCheckLexDeclarationsConflictingWith (const ZonePtrList< const AstRawString > &names)
 
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 inner_scope_calls_eval () const
 
bool IsAsmModule () const
 
bool ContainsAsmModule () const
 
bool is_nonlinear () const
 
bool NeedsContext () 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
 
int StackLocalCount () const
 
int ContextLocalCount () const
 
bool AllowsLazyParsingWithoutUnresolvedVariables (const Scope *outer) const
 
int ContextChainLength (Scope *scope) const
 
int ContextChainLengthUntilOutermostSloppyEval () const
 
DeclarationScopeGetDeclarationScope ()
 
DeclarationScopeGetClosureScope ()
 
const DeclarationScopeGetClosureScope () const
 
DeclarationScopeGetReceiverScope ()
 
ScopeGetOuterScopeWithContext ()
 
Handle< ScopeInfoscope_info () const
 
int num_var () const
 
bool HasSimpleParameters ()
 
void set_is_debug_evaluate_scope ()
 
bool is_debug_evaluate_scope () const
 
bool RemoveInnerScope (Scope *inner_scope)
 
VariableLookupInScopeOrScopeInfo (const AstRawString *name)
 
VariableLookupForTesting (const AstRawString *name)
 

Additional Inherited Members

- Public Types inherited from v8::internal::Scope
enum  DeserializationMode { kIncludingVariables, kScopesOnly }
 
typedef base::ThreadedList< VariableProxy, VariableProxy::UnresolvedNextUnresolvedList
 
- Static Public Member Functions inherited from v8::internal::DeclarationScope
static V8_WARN_UNUSED_RESULT bool Analyze (ParseInfo *info)
 
static void AllocateScopeInfos (ParseInfo *info, Isolate *isolate)
 
- Static Public Member Functions inherited from v8::internal::Scope
static ScopeDeserializeScopeChain (Isolate *isolate, Zone *zone, ScopeInfo scope_info, DeclarationScope *script_scope, AstValueFactory *ast_value_factory, DeserializationMode deserialization_mode)
 
- Static Public Attributes inherited from v8::internal::Scope
static void *const kDummyPreParserVariable = reinterpret_cast<void*>(0x1)
 
static void *const kDummyPreParserLexicalVariable
 
- Protected Member Functions inherited from v8::internal::Scope
 Scope (Zone *zone)
 
void set_language_mode (LanguageMode language_mode)
 

Detailed Description

Definition at line 1139 of file scopes.h.


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