V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::internal::ScopeInfo Class Reference
Inheritance diagram for v8::internal::ScopeInfo:
v8::internal::FixedArray v8::internal::FixedArrayBase v8::internal::HeapObjectPtr v8::internal::ObjectPtr

Public Types

enum  { kVariablePartIndex }
 
- Public Types inherited from v8::internal::FixedArray
typedef FlexibleBodyDescriptor< kHeaderSize > BodyDescriptor
 

Public Member Functions

ScopeType scope_type () const
 
LanguageMode language_mode () const
 
bool is_declaration_scope () const
 
bool CallsSloppyEval () const
 
int ContextLength () const
 
bool HasReceiver () const
 
bool HasAllocatedReceiver () const
 
bool HasNewTarget () const
 
bool HasFunctionName () const
 
bool HasSharedFunctionName () const
 
bool HasInferredFunctionName () const
 
void SetFunctionName (Object *name)
 
void SetInferredFunctionName (String name)
 
bool HasPositionInfo () const
 
bool HasContext () const
 
bool IsAsmModule () const
 
bool HasSimpleParameters () const
 
ObjectFunctionName () const
 
String FunctionDebugName () const
 
ObjectInferredFunctionName () const
 
int StartPosition () const
 
int EndPosition () const
 
void SetPositionInfo (int start, int end)
 
ModuleInfo ModuleDescriptorInfo () const
 
String ContextLocalName (int var) const
 
VariableMode ContextLocalMode (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 ModuleIndex (Handle< String > name, VariableMode *mode, InitializationFlag *init_flag, MaybeAssignedFlag *maybe_assigned_flag)
 
int FunctionContextSlotIndex (String name) const
 
int ReceiverContextSlotIndex () const
 
FunctionKind function_kind () const
 
bool HasOuterScopeInfo () const
 
bool IsDebugEvaluateScope () const
 
void SetIsDebugEvaluateScope ()
 
ScopeInfo OuterScopeInfo () const
 
- Public Member Functions inherited from v8::internal::FixedArray
Objectget (int index) const
 
template<class T >
MaybeHandle< TGetValue (Isolate *isolate, int index) const
 
template<class T >
Handle< TGetValueChecked (Isolate *isolate, int index) const
 
void set (int index, Object *value)
 
bool is_the_hole (Isolate *isolate, int index)
 
void set (int index, Smi value)
 
void set (int index, Object *value, WriteBarrierMode mode)
 
void set_undefined (int index)
 
void set_undefined (Isolate *isolate, int index)
 
void set_null (int index)
 
void set_null (Isolate *isolate, int index)
 
void set_the_hole (int index)
 
void set_the_hole (Isolate *isolate, int index)
 
ObjectSlot GetFirstElementAddress ()
 
bool ContainsOnlySmisOrHoles ()
 
bool ContainsSortedNumbers ()
 
ObjectSlot data_start ()
 
void MoveElements (Heap *heap, int dst_index, int src_index, int len, WriteBarrierMode mode)
 
void FillWithHoles (int from, int to)
 
void Shrink (Isolate *isolate, int new_length)
 
void CopyTo (int pos, FixedArray dest, int dest_pos, int len) const
 
ObjectSlot RawFieldOfElementAt (int index)
 
 STATIC_ASSERT (kMaxRegularHeapObjectSize< kMaxSize)
 
- Public Member Functions inherited from v8::internal::FixedArrayBase
int length () const
 
void set_length (int value)
 
int synchronized_length () const
 
void synchronized_set_length (int value)
 
Objectunchecked_synchronized_length () const
 
bool IsCowArray () const
 
- Public Member Functions inherited from v8::internal::HeapObjectPtr
Map map () const
 
void set_map (Map value)
 
void set_map_after_allocation (Map value, WriteBarrierMode mode=UPDATE_WRITE_BARRIER)
 
void set_map_no_write_barrier (Map value)
 
ObjectSlot map_slot ()
 
MapWord map_word () const
 
void set_map_word (MapWord map_word)
 
void synchronized_set_map (Map value)
 
void synchronized_set_map_word (MapWord map_word)
 
WriteBarrierMode GetWriteBarrierMode (const DisallowHeapAllocation &promise)
 
 operator HeapObject * ()
 
 operator const HeapObject * () const
 
bool is_null () const
 
bool IsHeapObjectPtr () const
 
ReadOnlyRoots GetReadOnlyRoots () const
 
Address address () const
 
int Size () const
 
int SizeFromMap (Map map) const
 
ObjectSlot RawField (int byte_offset) const
 
MaybeObjectSlot RawMaybeWeakField (int byte_offset) const
 
void HeapObjectVerify (Isolate *isolate)
 
Address GetFieldAddress (int field_offset) const
 
- Public Member Functions inherited from v8::internal::ObjectPtr
constexpr ObjectPtr (Address ptr)
 
 operator Object * () const
 
bool operator== (const ObjectPtr other) const
 
bool operator!= (const ObjectPtr other) const
 
bool operator< (const ObjectPtr other) const
 
constexpr Address ptr () const
 
ObjectPtroperator-> ()
 
const ObjectPtroperator-> () const
 
bool IsHashTableBase () const
 
V8_INLINE bool IsSmallOrderedHashTable () const
 
bool IsObject () const
 
double Number () const
 
bool ToInt32 (int32_t *value) const
 
bool ToUint32 (uint32_t *value) const
 
bool BooleanValue (Isolate *isolate)
 
bool FilterKey (PropertyFilter filter)
 
ObjectGetHash ()
 
Smi GetOrCreateHash (Isolate *isolate)
 
V8_EXPORT_PRIVATE bool SameValue (Object *other)
 
V8_WARN_UNUSED_RESULT bool ToArrayIndex (uint32_t *index) const
 
void ShortPrint (FILE *out=stdout)
 
void ShortPrint (std::ostream &os)
 
void Print ()
 
void Print (std::ostream &os)
 

Static Public Member Functions

static bool VariableIsSynthetic (String name)
 
static int ContextSlotIndex (Handle< ScopeInfo > scope_info, Handle< String > name, VariableMode *mode, InitializationFlag *init_flag, MaybeAssignedFlag *maybe_assigned_flag)
 
static Handle< ScopeInfoCreate (Isolate *isolate, Zone *zone, Scope *scope, MaybeHandle< ScopeInfo > outer_scope)
 
static Handle< ScopeInfoCreateForWithScope (Isolate *isolate, MaybeHandle< ScopeInfo > outer_scope)
 
static V8_EXPORT_PRIVATE Handle< ScopeInfoCreateForEmptyFunction (Isolate *isolate)
 
static Handle< ScopeInfoCreateGlobalThisBinding (Isolate *isolate)
 
static V8_EXPORT_PRIVATE ScopeInfo Empty (Isolate *isolate)
 
- Static Public Member Functions inherited from v8::internal::FixedArray
static Handle< Objectget (FixedArray array, int index, Isolate *isolate)
 
static Handle< FixedArraySetAndGrow (Isolate *isolate, Handle< FixedArray > array, int index, Handle< Object > value, PretenureFlag pretenure=NOT_TENURED)
 
static Handle< FixedArrayShrinkOrEmpty (Isolate *isolate, Handle< FixedArray > array, int new_length)
 
static constexpr int SizeFor (int length)
 
static constexpr int OffsetOfElementAt (int index)
 
- Static Public Member Functions inherited from v8::internal::FixedArrayBase
static int GetMaxLengthForNewSpaceAllocation (ElementsKind kind)
 

Friends

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

Additional Inherited Members

- Static Public Attributes inherited from v8::internal::FixedArray
static const int kMaxLength = (kMaxSize - kHeaderSize) / kTaggedSize
 
static const int kMaxRegularLength
 
- Static Public Attributes inherited from v8::internal::FixedArrayBase
static const int kMaxSize = 1024 * MB
 
- Static Public Attributes inherited from v8::internal::HeapObjectPtr
static const int kMapOffset = HeapObject::kMapOffset
 
static const int kHeaderSize = HeapObject::kHeaderSize
 
- Protected Types inherited from v8::internal::HeapObjectPtr
enum  AllowInlineSmiStorage { kRequireHeapObjectTag, kAllowBeingASmi }
 
- Protected Member Functions inherited from v8::internal::HeapObjectPtr
 HeapObjectPtr (Address ptr, AllowInlineSmiStorage allow_smi)
 
- Static Protected Member Functions inherited from v8::internal::FixedArray
static void NoWriteBarrierSet (FixedArray array, int index, Object *value)
 

Detailed Description

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


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