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

Classes

class  Snapshot
 

Public Types

enum  DeserializationMode { kIncludingVariables, kScopesOnly }
 
typedef base::ThreadedList< VariableProxy, VariableProxy::UnresolvedNextUnresolvedList
 

Public Member Functions

 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)
 

Static Public Member Functions

static ScopeDeserializeScopeChain (Isolate *isolate, Zone *zone, ScopeInfo scope_info, DeclarationScope *script_scope, AstValueFactory *ast_value_factory, DeserializationMode deserialization_mode)
 

Static Public Attributes

static void *const kDummyPreParserVariable = reinterpret_cast<void*>(0x1)
 
static void *const kDummyPreParserLexicalVariable
 

Protected Member Functions

 Scope (Zone *zone)
 
void set_language_mode (LanguageMode language_mode)
 

Friends

class DeclarationScope
 
class ScopeTestHelper
 

Detailed Description

Definition at line 101 of file scopes.h.

Member Data Documentation

◆ kDummyPreParserLexicalVariable

void *const v8::internal::Scope::kDummyPreParserLexicalVariable
static
Initial value:
=
reinterpret_cast<void*>(0x2)

Definition at line 559 of file scopes.h.


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