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

#include <scope-info.h>

Inheritance diagram for v8::internal::ScopeInfo:
Collaboration diagram for v8::internal::ScopeInfo:

Classes

class  LocalNamesRange
 

Public Types

enum  Fields {
  kFlags , kParameterCount , kContextLocalCount , kPositionInfoStart ,
  kPositionInfoEnd , kVariablePartIndex
}
 

Public Member Functions

ScopeType scope_type () const
 
LanguageMode language_mode () const
 
bool is_declaration_scope () const
 
bool SloppyEvalCanExtendVars () const
 
int ContextLength () const
 
int ContextHeaderLength () const
 
bool HasContextExtensionSlot () const
 
bool SomeContextHasExtension () const
 
void mark_some_context_has_extension ()
 
bool HasReceiver () const
 
bool HasAllocatedReceiver () const
 
bool ClassScopeHasPrivateBrand () const
 
bool HasSavedClassVariable () const
 
bool HasNewTarget () const
 
V8_EXPORT_PRIVATE bool HasFunctionName () const
 
bool HasContextAllocatedFunctionName () const
 
V8_EXPORT_PRIVATE bool HasSharedFunctionName () const
 
V8_EXPORT_PRIVATE bool HasInferredFunctionName () const
 
void SetFunctionName (Tagged< UnionOf< Smi, String > > name)
 
void SetInferredFunctionName (Tagged< String > name)
 
bool HasPositionInfo () const
 
bool IsWrappedFunctionScope () const
 
bool HasContext () const
 
bool IsAsmModule () const
 
bool HasSimpleParameters () const
 
V8_EXPORT_PRIVATE Tagged< UnionOf< Smi, String > > FunctionName () const
 
Tagged< StringFunctionDebugName () const
 
V8_EXPORT_PRIVATE Tagged< ObjectInferredFunctionName () const
 
int StartPosition () const
 
int EndPosition () const
 
void SetPositionInfo (int start, int end)
 
int UniqueIdInScript () const
 
Tagged< SourceTextModuleInfoModuleDescriptorInfo () const
 
bool HasInlinedLocalNames () const
 
Tagged< StringContextInlinedLocalName (int var) const
 
Tagged< StringContextInlinedLocalName (PtrComprCageBase cage_base, int var) const
 
VariableMode ContextLocalMode (int var) const
 
IsStaticFlag ContextLocalIsStaticFlag (int var) const
 
InitializationFlag ContextLocalInitFlag (int var) const
 
bool ContextLocalIsParameter (int var) const
 
uint32_t ContextLocalParameterNumber (int var) const
 
MaybeAssignedFlag ContextLocalMaybeAssignedFlag (int var) const
 
int ContextSlotIndex (DirectHandle< String > name)
 
int ContextSlotIndex (DirectHandle< String > name, VariableLookupResult *lookup_result)
 
int ModuleIndex (Tagged< String > name, VariableMode *mode, InitializationFlag *init_flag, MaybeAssignedFlag *maybe_assigned_flag)
 
int ModuleVariableCount () const
 
int FunctionContextSlotIndex (Tagged< String > name) const
 
int ReceiverContextSlotIndex () const
 
int ParametersStartIndex () const
 
std::pair< Tagged< String >, int > SavedClassVariable () const
 
FunctionKind function_kind () const
 
bool HasOuterScopeInfo () const
 
bool IsDebugEvaluateScope () const
 
void SetIsDebugEvaluateScope ()
 
Tagged< ScopeInfoOuterScopeInfo () const
 
bool is_script_scope () const
 
bool PrivateNameLookupSkipsOuterClass () const
 
bool IsReplModeScope () const
 
bool Equals (Tagged< ScopeInfo > other, bool is_live_edit_compare=false, int *out_last_checked_field=nullptr) const
 
uint32_t Flags () const
 
int ParameterCount () const
 
int ContextLocalCount () const
 
Tagged< DependentCodedependent_code () const
 
bool IsEmpty () const
 
ObjectSlot data_start ()
 
V8_EXPORT_PRIVATE uint32_t Hash ()
 

Static Public Member Functions

static LocalNamesRange< DirectHandle< ScopeInfo > > IterateLocalNames (DirectHandle< ScopeInfo > scope_info)
 
static LocalNamesRange< Tagged< ScopeInfo > > IterateLocalNames (Tagged< ScopeInfo > scope_info, const DisallowGarbageCollection &no_gc)
 
static bool VariableIsSynthetic (Tagged< String > name)
 
template<typename IsolateT >
static Handle< ScopeInfoCreate (IsolateT *isolate, Zone *zone, Scope *scope, MaybeDirectHandle< ScopeInfo > outer_scope)
 
static V8_EXPORT_PRIVATE DirectHandle< ScopeInfoCreateForWithScope (Isolate *isolate, MaybeDirectHandle< ScopeInfo > outer_scope)
 
static V8_EXPORT_PRIVATE DirectHandle< ScopeInfoCreateForEmptyFunction (Isolate *isolate)
 
static DirectHandle< ScopeInfoCreateForNativeContext (Isolate *isolate)
 
static DirectHandle< ScopeInfoCreateForShadowRealmNativeContext (Isolate *isolate)
 
static DirectHandle< ScopeInfoCreateGlobalThisBinding (Isolate *isolate)
 
static V8_EXPORT_PRIVATE Tagged< ScopeInfoEmpty (Isolate *isolate)
 
static constexpr int SizeFor (int length)
 

Private Types

enum class  BootstrappingType { kScript , kFunction , kNative , kShadowRealm }
 

Private Member Functions

int InlinedLocalNamesLookup (Tagged< String > name)
 
int ContextLocalNamesIndex () const
 
int ContextLocalInfosIndex () const
 
int SavedClassVariableInfoIndex () const
 
int FunctionVariableInfoIndex () const
 
int InferredFunctionNameIndex () const
 
int OuterScopeInfoIndex () const
 
int ModuleInfoIndex () const
 
int ModuleVariableCountIndex () const
 
int ModuleVariablesIndex () const
 
int DependentCodeIndex () const
 
V8_EXPORT_PRIVATE Tagged< Objectget (int index) const
 
Tagged< Objectget (PtrComprCageBase cage_base, int index) const
 
void set (int index, Tagged< Smi > value)
 
void set (int index, Tagged< Object > value, WriteBarrierMode mode=UPDATE_WRITE_BARRIER)
 
void CopyElements (Isolate *isolate, int dst_index, Tagged< ScopeInfo > src, int src_index, int len, WriteBarrierMode mode)
 
ObjectSlot RawFieldOfElementAt (int index)
 
V8_EXPORT_PRIVATE int length () const
 
int Lookup (Handle< String > name, int start, int end, VariableMode *mode, VariableLocation *location, InitializationFlag *init_flag, MaybeAssignedFlag *maybe_assigned_flag)
 
void ModuleVariable (int i, Tagged< String > *name, int *index, VariableMode *mode=nullptr, InitializationFlag *init_flag=nullptr, MaybeAssignedFlag *maybe_assigned_flag=nullptr)
 

Static Private Member Functions

static constexpr int OffsetOfElementAt (int index)
 
static constexpr int ConvertOffsetToIndex (int offset)
 
static DirectHandle< ScopeInfoCreateForBootstrapping (Isolate *isolate, BootstrappingType type)
 

Static Private Attributes

static const int kFunctionNameEntries
 
static const int kModuleVariableEntryLength
 

Friends

class ScopeIterator
 
std::ostream & operator<< (std::ostream &os, VariableAllocationInfo var)
 

Detailed Description

Definition at line 50 of file scope-info.h.

Member Enumeration Documentation

◆ BootstrappingType

Enumerator
kScript 
kFunction 
kNative 
kShadowRealm 

Definition at line 351 of file scope-info.h.

◆ Fields

Enumerator
kFlags 
kParameterCount 
kContextLocalCount 
kPositionInfoStart 
kPositionInfoEnd 
kVariablePartIndex 

Definition at line 282 of file scope-info.h.

Member Function Documentation

◆ ClassScopeHasPrivateBrand()

bool v8::internal::ScopeInfo::ClassScopeHasPrivateBrand ( ) const

Definition at line 769 of file scope-info.cc.

Here is the call graph for this function:

◆ ContextHeaderLength()

int v8::internal::ScopeInfo::ContextHeaderLength ( ) const

Definition at line 744 of file scope-info.cc.

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

◆ ContextInlinedLocalName() [1/2]

Tagged< String > v8::internal::ScopeInfo::ContextInlinedLocalName ( int var) const

Definition at line 892 of file scope-info.cc.

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

◆ ContextInlinedLocalName() [2/2]

Tagged< String > v8::internal::ScopeInfo::ContextInlinedLocalName ( PtrComprCageBase cage_base,
int var ) const

Definition at line 897 of file scope-info.cc.

Here is the call graph for this function:

◆ ContextLength()

int v8::internal::ScopeInfo::ContextLength ( ) const

Definition at line 694 of file scope-info.cc.

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

◆ ContextLocalCount()

int v8::internal::ScopeInfo::ContextLocalCount ( ) const
inline

Definition at line 36 of file scope-info-inl.h.

Here is the caller graph for this function:

◆ ContextLocalInfosIndex()

int v8::internal::ScopeInfo::ContextLocalInfosIndex ( ) const
private

Definition at line 1070 of file scope-info.cc.

Here is the call graph for this function:

◆ ContextLocalInitFlag()

InitializationFlag v8::internal::ScopeInfo::ContextLocalInitFlag ( int var) const

Definition at line 913 of file scope-info.cc.

Here is the caller graph for this function:

◆ ContextLocalIsParameter()

bool v8::internal::ScopeInfo::ContextLocalIsParameter ( int var) const

Definition at line 918 of file scope-info.cc.

Here is the caller graph for this function:

◆ ContextLocalIsStaticFlag()

IsStaticFlag v8::internal::ScopeInfo::ContextLocalIsStaticFlag ( int var) const

Definition at line 908 of file scope-info.cc.

Here is the caller graph for this function:

◆ ContextLocalMaybeAssignedFlag()

MaybeAssignedFlag v8::internal::ScopeInfo::ContextLocalMaybeAssignedFlag ( int var) const

Definition at line 929 of file scope-info.cc.

Here is the caller graph for this function:

◆ ContextLocalMode()

VariableMode v8::internal::ScopeInfo::ContextLocalMode ( int var) const

Definition at line 903 of file scope-info.cc.

Here is the caller graph for this function:

◆ ContextLocalNamesIndex()

int v8::internal::ScopeInfo::ContextLocalNamesIndex ( ) const
private

Definition at line 1066 of file scope-info.cc.

Here is the call graph for this function:

◆ ContextLocalParameterNumber()

uint32_t v8::internal::ScopeInfo::ContextLocalParameterNumber ( int var) const

Definition at line 923 of file scope-info.cc.

Here is the call graph for this function:

◆ ContextSlotIndex() [1/2]

int v8::internal::ScopeInfo::ContextSlotIndex ( DirectHandle< String > name)

Definition at line 1010 of file scope-info.cc.

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

◆ ContextSlotIndex() [2/2]

int v8::internal::ScopeInfo::ContextSlotIndex ( DirectHandle< String > name,
VariableLookupResult * lookup_result )

Definition at line 984 of file scope-info.cc.

Here is the call graph for this function:

◆ ConvertOffsetToIndex()

static constexpr int v8::internal::ScopeInfo::ConvertOffsetToIndex ( int offset)
inlinestaticconstexprprivate

Definition at line 345 of file scope-info.h.

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

◆ CopyElements()

void v8::internal::ScopeInfo::CopyElements ( Isolate * isolate,
int dst_index,
Tagged< ScopeInfo > src,
int src_index,
int len,
WriteBarrierMode mode )
private

Definition at line 639 of file scope-info.cc.

Here is the call graph for this function:

◆ Create()

template<typename IsolateT >
Handle< ScopeInfo > v8::internal::ScopeInfo::Create ( IsolateT * isolate,
Zone * zone,
Scope * scope,
MaybeDirectHandle< ScopeInfo > outer_scope )
static

Definition at line 79 of file scope-info.cc.

Here is the caller graph for this function:

◆ CreateForBootstrapping()

DirectHandle< ScopeInfo > v8::internal::ScopeInfo::CreateForBootstrapping ( Isolate * isolate,
BootstrappingType type )
staticprivate

Definition at line 515 of file scope-info.cc.

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

◆ CreateForEmptyFunction()

DirectHandle< ScopeInfo > v8::internal::ScopeInfo::CreateForEmptyFunction ( Isolate * isolate)
static

Definition at line 499 of file scope-info.cc.

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

◆ CreateForNativeContext()

DirectHandle< ScopeInfo > v8::internal::ScopeInfo::CreateForNativeContext ( Isolate * isolate)
static

Definition at line 504 of file scope-info.cc.

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

◆ CreateForShadowRealmNativeContext()

DirectHandle< ScopeInfo > v8::internal::ScopeInfo::CreateForShadowRealmNativeContext ( Isolate * isolate)
static

Definition at line 509 of file scope-info.cc.

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

◆ CreateForWithScope()

static V8_EXPORT_PRIVATE DirectHandle< ScopeInfo > v8::internal::ScopeInfo::CreateForWithScope ( Isolate * isolate,
MaybeDirectHandle< ScopeInfo > outer_scope )
static
Here is the caller graph for this function:

◆ CreateGlobalThisBinding()

DirectHandle< ScopeInfo > v8::internal::ScopeInfo::CreateGlobalThisBinding ( Isolate * isolate)
static

Definition at line 494 of file scope-info.cc.

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

◆ data_start()

ObjectSlot v8::internal::ScopeInfo::data_start ( )
inline

Definition at line 42 of file scope-info-inl.h.

Here is the call graph for this function:

◆ dependent_code()

Tagged< DependentCode > v8::internal::ScopeInfo::dependent_code ( ) const
inline

Definition at line 38 of file scope-info-inl.h.

Here is the call graph for this function:

◆ DependentCodeIndex()

int v8::internal::ScopeInfo::DependentCodeIndex ( ) const
private

Definition at line 1126 of file scope-info.cc.

Here is the call graph for this function:

◆ Empty()

Tagged< ScopeInfo > v8::internal::ScopeInfo::Empty ( Isolate * isolate)
static

Definition at line 662 of file scope-info.cc.

◆ EndPosition()

int v8::internal::ScopeInfo::EndPosition ( ) const

Definition at line 870 of file scope-info.cc.

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

◆ Equals()

bool v8::internal::ScopeInfo::Equals ( Tagged< ScopeInfo > other,
bool is_live_edit_compare = false,
int * out_last_checked_field = nullptr ) const

Definition at line 25 of file scope-info.cc.

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

◆ Flags()

uint32_t v8::internal::ScopeInfo::Flags ( ) const
inline

Definition at line 34 of file scope-info-inl.h.

Here is the caller graph for this function:

◆ function_kind()

FunctionKind v8::internal::ScopeInfo::function_kind ( ) const

Definition at line 1062 of file scope-info.cc.

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

◆ FunctionContextSlotIndex()

int v8::internal::ScopeInfo::FunctionContextSlotIndex ( Tagged< String > name) const

Definition at line 1051 of file scope-info.cc.

Here is the call graph for this function:

◆ FunctionDebugName()

Tagged< String > v8::internal::ScopeInfo::FunctionDebugName ( ) const

Definition at line 852 of file scope-info.cc.

Here is the call graph for this function:

◆ FunctionName()

Tagged< UnionOf< Smi, String > > v8::internal::ScopeInfo::FunctionName ( ) const

Definition at line 842 of file scope-info.cc.

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

◆ FunctionVariableInfoIndex()

int v8::internal::ScopeInfo::FunctionVariableInfoIndex ( ) const
private

Definition at line 1078 of file scope-info.cc.

Here is the call graph for this function:

◆ get() [1/2]

Tagged< Object > v8::internal::ScopeInfo::get ( int index) const
private

Definition at line 614 of file scope-info.cc.

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

◆ get() [2/2]

Tagged< Object > v8::internal::ScopeInfo::get ( PtrComprCageBase cage_base,
int index ) const
private

Definition at line 619 of file scope-info.cc.

Here is the call graph for this function:

◆ HasAllocatedReceiver()

bool v8::internal::ScopeInfo::HasAllocatedReceiver ( ) const

Definition at line 753 of file scope-info.cc.

Here is the call graph for this function:

◆ HasContext()

bool v8::internal::ScopeInfo::HasContext ( ) const

Definition at line 840 of file scope-info.cc.

Here is the call graph for this function:

◆ HasContextAllocatedFunctionName()

bool v8::internal::ScopeInfo::HasContextAllocatedFunctionName ( ) const

Definition at line 785 of file scope-info.cc.

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

◆ HasContextExtensionSlot()

bool v8::internal::ScopeInfo::HasContextExtensionSlot ( ) const

Definition at line 732 of file scope-info.cc.

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

◆ HasFunctionName()

bool v8::internal::ScopeInfo::HasFunctionName ( ) const

Definition at line 781 of file scope-info.cc.

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

◆ Hash()

uint32_t v8::internal::ScopeInfo::Hash ( )

Definition at line 1130 of file scope-info.cc.

Here is the call graph for this function:

◆ HasInferredFunctionName()

bool v8::internal::ScopeInfo::HasInferredFunctionName ( ) const

Definition at line 790 of file scope-info.cc.

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

◆ HasInlinedLocalNames()

bool v8::internal::ScopeInfo::HasInlinedLocalNames ( ) const
inline

Definition at line 44 of file scope-info-inl.h.

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

◆ HasNewTarget()

bool v8::internal::ScopeInfo::HasNewTarget ( ) const

Definition at line 777 of file scope-info.cc.

Here is the call graph for this function:

◆ HasOuterScopeInfo()

bool v8::internal::ScopeInfo::HasOuterScopeInfo ( ) const

Definition at line 812 of file scope-info.cc.

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

◆ HasPositionInfo()

bool v8::internal::ScopeInfo::HasPositionInfo ( ) const

Definition at line 794 of file scope-info.cc.

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

◆ HasReceiver()

bool v8::internal::ScopeInfo::HasReceiver ( ) const

Definition at line 749 of file scope-info.cc.

Here is the call graph for this function:

◆ HasSavedClassVariable()

bool v8::internal::ScopeInfo::HasSavedClassVariable ( ) const

Definition at line 773 of file scope-info.cc.

Here is the call graph for this function:

◆ HasSharedFunctionName()

bool v8::internal::ScopeInfo::HasSharedFunctionName ( ) const

Definition at line 796 of file scope-info.cc.

Here is the call graph for this function:

◆ HasSimpleParameters()

bool v8::internal::ScopeInfo::HasSimpleParameters ( ) const
inline

Definition at line 30 of file scope-info-inl.h.

Here is the call graph for this function:

◆ InferredFunctionName()

Tagged< Object > v8::internal::ScopeInfo::InferredFunctionName ( ) const

Definition at line 847 of file scope-info.cc.

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

◆ InferredFunctionNameIndex()

int v8::internal::ScopeInfo::InferredFunctionNameIndex ( ) const
private

Definition at line 1082 of file scope-info.cc.

Here is the call graph for this function:

◆ InlinedLocalNamesLookup()

int v8::internal::ScopeInfo::InlinedLocalNamesLookup ( Tagged< String > name)
private

Definition at line 972 of file scope-info.cc.

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

◆ is_declaration_scope()

bool v8::internal::ScopeInfo::is_declaration_scope ( ) const

Definition at line 690 of file scope-info.cc.

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

◆ is_script_scope()

bool v8::internal::ScopeInfo::is_script_scope ( ) const

Definition at line 673 of file scope-info.cc.

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

◆ IsAsmModule()

bool v8::internal::ScopeInfo::IsAsmModule ( ) const
inline

Definition at line 28 of file scope-info-inl.h.

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

◆ IsDebugEvaluateScope()

bool v8::internal::ScopeInfo::IsDebugEvaluateScope ( ) const

Definition at line 816 of file scope-info.cc.

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

◆ IsEmpty()

bool v8::internal::ScopeInfo::IsEmpty ( ) const

Definition at line 666 of file scope-info.cc.

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

◆ IsReplModeScope()

bool v8::internal::ScopeInfo::IsReplModeScope ( ) const

Definition at line 830 of file scope-info.cc.

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

◆ IsWrappedFunctionScope()

bool v8::internal::ScopeInfo::IsWrappedFunctionScope ( ) const

Definition at line 834 of file scope-info.cc.

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

◆ IterateLocalNames() [1/2]

ScopeInfo::LocalNamesRange< DirectHandle< ScopeInfo > > v8::internal::ScopeInfo::IterateLocalNames ( DirectHandle< ScopeInfo > scope_info)
inlinestatic

Definition at line 142 of file scope-info-inl.h.

Here is the caller graph for this function:

◆ IterateLocalNames() [2/2]

ScopeInfo::LocalNamesRange< Tagged< ScopeInfo > > v8::internal::ScopeInfo::IterateLocalNames ( Tagged< ScopeInfo > scope_info,
const DisallowGarbageCollection & no_gc )
inlinestatic

Definition at line 147 of file scope-info-inl.h.

◆ language_mode()

LanguageMode v8::internal::ScopeInfo::language_mode ( ) const

Definition at line 686 of file scope-info.cc.

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

◆ length()

int v8::internal::ScopeInfo::length ( ) const
private

Definition at line 655 of file scope-info.cc.

Here is the caller graph for this function:

◆ Lookup()

int v8::internal::ScopeInfo::Lookup ( Handle< String > name,
int start,
int end,
VariableMode * mode,
VariableLocation * location,
InitializationFlag * init_flag,
MaybeAssignedFlag * maybe_assigned_flag )
private

◆ mark_some_context_has_extension()

void v8::internal::ScopeInfo::mark_some_context_has_extension ( )

Definition at line 740 of file scope-info.cc.

Here is the call graph for this function:

◆ ModuleDescriptorInfo()

Tagged< SourceTextModuleInfo > v8::internal::ScopeInfo::ModuleDescriptorInfo ( ) const

Definition at line 887 of file scope-info.cc.

Here is the call graph for this function:

◆ ModuleIndex()

int v8::internal::ScopeInfo::ModuleIndex ( Tagged< String > name,
VariableMode * mode,
InitializationFlag * init_flag,
MaybeAssignedFlag * maybe_assigned_flag )

Definition at line 949 of file scope-info.cc.

Here is the call graph for this function:

◆ ModuleInfoIndex()

int v8::internal::ScopeInfo::ModuleInfoIndex ( ) const
private

Definition at line 1090 of file scope-info.cc.

Here is the call graph for this function:

◆ ModuleVariable()

void v8::internal::ScopeInfo::ModuleVariable ( int i,
Tagged< String > * name,
int * index,
VariableMode * mode = nullptr,
InitializationFlag * init_flag = nullptr,
MaybeAssignedFlag * maybe_assigned_flag = nullptr )
private

Definition at line 1102 of file scope-info.cc.

Here is the caller graph for this function:

◆ ModuleVariableCount()

int v8::internal::ScopeInfo::ModuleVariableCount ( ) const

Definition at line 944 of file scope-info.cc.

Here is the call graph for this function:

◆ ModuleVariableCountIndex()

int v8::internal::ScopeInfo::ModuleVariableCountIndex ( ) const
private

Definition at line 1094 of file scope-info.cc.

Here is the call graph for this function:

◆ ModuleVariablesIndex()

int v8::internal::ScopeInfo::ModuleVariablesIndex ( ) const
private

Definition at line 1098 of file scope-info.cc.

Here is the call graph for this function:

◆ OffsetOfElementAt()

static constexpr int v8::internal::ScopeInfo::OffsetOfElementAt ( int index)
inlinestaticconstexprprivate

Definition at line 342 of file scope-info.h.

Here is the caller graph for this function:

◆ OuterScopeInfo()

Tagged< ScopeInfo > v8::internal::ScopeInfo::OuterScopeInfo ( ) const

Definition at line 882 of file scope-info.cc.

Here is the call graph for this function:

◆ OuterScopeInfoIndex()

int v8::internal::ScopeInfo::OuterScopeInfoIndex ( ) const
private

Definition at line 1086 of file scope-info.cc.

Here is the call graph for this function:

◆ ParameterCount()

int v8::internal::ScopeInfo::ParameterCount ( ) const
inline

Definition at line 35 of file scope-info-inl.h.

◆ ParametersStartIndex()

int v8::internal::ScopeInfo::ParametersStartIndex ( ) const

Definition at line 1043 of file scope-info.cc.

Here is the call graph for this function:

◆ PrivateNameLookupSkipsOuterClass()

bool v8::internal::ScopeInfo::PrivateNameLookupSkipsOuterClass ( ) const

Definition at line 826 of file scope-info.cc.

Here is the call graph for this function:

◆ RawFieldOfElementAt()

ObjectSlot v8::internal::ScopeInfo::RawFieldOfElementAt ( int index)
private

Definition at line 651 of file scope-info.cc.

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

◆ ReceiverContextSlotIndex()

int v8::internal::ScopeInfo::ReceiverContextSlotIndex ( ) const

Definition at line 1035 of file scope-info.cc.

Here is the call graph for this function:

◆ SavedClassVariable()

std::pair< Tagged< String >, int > v8::internal::ScopeInfo::SavedClassVariable ( ) const

Definition at line 1015 of file scope-info.cc.

Here is the call graph for this function:

◆ SavedClassVariableInfoIndex()

int v8::internal::ScopeInfo::SavedClassVariableInfoIndex ( ) const
private

Definition at line 1074 of file scope-info.cc.

Here is the call graph for this function:

◆ scope_type()

ScopeType v8::internal::ScopeInfo::scope_type ( ) const

Definition at line 668 of file scope-info.cc.

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

◆ set() [1/2]

void v8::internal::ScopeInfo::set ( int index,
Tagged< Object > value,
WriteBarrierMode mode = UPDATE_WRITE_BARRIER )
private

Definition at line 632 of file scope-info.cc.

Here is the call graph for this function:

◆ set() [2/2]

void v8::internal::ScopeInfo::set ( int index,
Tagged< Smi > value )
private

Definition at line 625 of file scope-info.cc.

Here is the call graph for this function:

◆ SetFunctionName()

void v8::internal::ScopeInfo::SetFunctionName ( Tagged< UnionOf< Smi, String > > name)

Definition at line 800 of file scope-info.cc.

Here is the call graph for this function:

◆ SetInferredFunctionName()

void v8::internal::ScopeInfo::SetInferredFunctionName ( Tagged< String > name)

Definition at line 807 of file scope-info.cc.

Here is the call graph for this function:

◆ SetIsDebugEvaluateScope()

void v8::internal::ScopeInfo::SetIsDebugEvaluateScope ( )

Definition at line 820 of file scope-info.cc.

Here is the call graph for this function:

◆ SetPositionInfo()

void v8::internal::ScopeInfo::SetPositionInfo ( int start,
int end )

Definition at line 875 of file scope-info.cc.

Here is the call graph for this function:

◆ SizeFor()

static constexpr int v8::internal::ScopeInfo::SizeFor ( int length)
inlinestaticconstexpr

Definition at line 299 of file scope-info.h.

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

◆ SloppyEvalCanExtendVars()

bool v8::internal::ScopeInfo::SloppyEvalCanExtendVars ( ) const

Definition at line 678 of file scope-info.cc.

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

◆ SomeContextHasExtension()

bool v8::internal::ScopeInfo::SomeContextHasExtension ( ) const

Definition at line 736 of file scope-info.cc.

Here is the call graph for this function:

◆ StartPosition()

int v8::internal::ScopeInfo::StartPosition ( ) const

Definition at line 865 of file scope-info.cc.

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

◆ UniqueIdInScript()

int v8::internal::ScopeInfo::UniqueIdInScript ( ) const

Definition at line 715 of file scope-info.cc.

Here is the call graph for this function:

◆ VariableIsSynthetic()

bool v8::internal::ScopeInfo::VariableIsSynthetic ( Tagged< String > name)
static

Definition at line 935 of file scope-info.cc.

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

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
VariableAllocationInfo var )
friend

Definition at line 1143 of file scope-info.cc.

◆ ScopeIterator

friend class ScopeIterator
friend

Definition at line 375 of file scope-info.h.

Member Data Documentation

◆ kFunctionNameEntries

const int v8::internal::ScopeInfo::kFunctionNameEntries
staticprivate
Initial value:
=
TorqueGeneratedFunctionVariableInfoOffsets::kSize / kTaggedSize
constexpr int kTaggedSize
Definition globals.h:542

Definition at line 367 of file scope-info.h.

◆ kModuleVariableEntryLength

const int v8::internal::ScopeInfo::kModuleVariableEntryLength
staticprivate
Initial value:
=
TorqueGeneratedModuleVariableOffsets::kSize / kTaggedSize

Definition at line 369 of file scope-info.h.


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