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

#include <contexts.h>

Inheritance diagram for v8::internal::ScriptContextTable:
Collaboration diagram for v8::internal::ScriptContextTable:

Classes

class  BodyDescriptor
 

Public Types

using Shape = ScriptContextTableShape
 
- Public Types inherited from v8::internal::TaggedArrayBase< ScriptContextTable, ScriptContextTableShape >
using Header
 
using Shape
 

Public Member Functions

int length (AcquireLoadTag) const
 
void set_length (int value, ReleaseStoreTag)
 
Tagged< NameToIndexHashTablenames_to_context_index () const
 
void set_names_to_context_index (Tagged< NameToIndexHashTable > value, WriteBarrierMode mode=UPDATE_WRITE_BARRIER)
 
Tagged< Contextget (int index) const
 
Tagged< Contextget (int index, AcquireLoadTag) const
 
V8_WARN_UNUSED_RESULT V8_EXPORT_PRIVATE bool Lookup (DirectHandle< String > name, VariableLookupResult *result)
 
- Public Member Functions inherited from v8::internal::TaggedArrayBase< ScriptContextTable, ScriptContextTableShape >
Tagged< ElementTget (int index) const
 
Tagged< ElementTget (int index, RelaxedLoadTag) const
 
Tagged< ElementTget (int index, AcquireLoadTag) const
 
Tagged< ElementTget (int index, SeqCstAccessTag) const
 
void set (int index, Tagged< ElementT > value, WriteBarrierMode mode=kDefaultMode)
 
void set (int index, Tagged< Smi > value)
 
void set (int index, Tagged< ElementT > value, RelaxedStoreTag, WriteBarrierMode mode=kDefaultMode)
 
void set (int index, Tagged< Smi > value, RelaxedStoreTag)
 
void set (int index, Tagged< ElementT > value, ReleaseStoreTag, WriteBarrierMode mode=kDefaultMode)
 
void set (int index, Tagged< Smi > value, ReleaseStoreTag)
 
void set (int index, Tagged< ElementT > value, SeqCstAccessTag, WriteBarrierMode mode=kDefaultMode)
 
void set (int index, Tagged< Smi > value, SeqCstAccessTag)
 
Tagged< ElementTswap (int index, Tagged< ElementT > value, SeqCstAccessTag, WriteBarrierMode mode=kDefaultMode)
 
Tagged< ElementTcompare_and_swap (int index, Tagged< ElementT > expected, Tagged< ElementT > value, SeqCstAccessTag, WriteBarrierMode mode=kDefaultMode)
 
void RightTrim (Isolate *isolate, int new_capacity)
 
int AllocatedSize () const
 
SlotType RawFieldOfFirstElement () const
 
SlotType RawFieldOfElementAt (int index) const
 
Handle< DAllocate (IsolateT *isolate, int capacity, std::optional< DisallowGarbageCollection > *no_gc_out, AllocationType allocation)
 

Static Public Member Functions

static Handle< ScriptContextTableNew (Isolate *isolate, int capacity, AllocationType allocation=AllocationType::kYoung)
 
V8_WARN_UNUSED_RESULT static V8_EXPORT_PRIVATE Handle< ScriptContextTableAdd (Isolate *isolate, Handle< ScriptContextTable > table, DirectHandle< Context > script_context, bool ignore_duplicates)
 
- Static Public Member Functions inherited from v8::internal::TaggedArrayBase< ScriptContextTable, ScriptContextTableShape >
static void MoveElements (Isolate *isolate, Tagged< ScriptContextTable > dst, int dst_index, Tagged< ScriptContextTable > src, int src_index, int len, WriteBarrierMode mode=kDefaultMode)
 
static void CopyElements (Isolate *isolate, Tagged< ScriptContextTable > dst, int dst_index, Tagged< ScriptContextTable > src, int src_index, int len, WriteBarrierMode mode=kDefaultMode)
 
static constexpr int SizeFor (int capacity)
 
static constexpr int OffsetOfElementAt (int index)
 

Private Types

using Super = TaggedArrayBase<ScriptContextTable, ScriptContextTableShape>
 

Additional Inherited Members

- Static Public Attributes inherited from v8::internal::TaggedArrayBase< ScriptContextTable, ScriptContextTableShape >
static constexpr bool kElementsAreMaybeObject
 
static constexpr int kElementSize
 
static constexpr int kMaxCapacity
 
static constexpr int kMaxRegularCapacity
 
- Protected Member Functions inherited from v8::internal::TaggedArrayBase< ScriptContextTable, ScriptContextTableShape >
bool IsInBounds (int index) const
 
bool IsCowArray () const
 
 FLEXIBLE_ARRAY_MEMBER (ElementMemberT, objects)
 
- Static Protected Member Functions inherited from v8::internal::TaggedArrayBase< ScriptContextTable, ScriptContextTableShape >
static Handle< ScriptContextTableAllocate (IsolateT *isolate, int capacity, std::optional< DisallowGarbageCollection > *no_gc_out, AllocationType allocation=AllocationType::kYoung)
 
static constexpr int NewCapacityForIndex (int index, int old_capacity)
 

Detailed Description

Definition at line 820 of file contexts.h.

Member Typedef Documentation

◆ Shape

◆ Super

Member Function Documentation

◆ Add()

Handle< ScriptContextTable > v8::internal::ScriptContextTable::Add ( Isolate * isolate,
Handle< ScriptContextTable > table,
DirectHandle< Context > script_context,
bool ignore_duplicates )
static

Definition at line 76 of file contexts.cc.

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

◆ get() [1/2]

Tagged< Context > v8::internal::ScriptContextTable::get ( int index) const
inline

Definition at line 49 of file contexts-inl.h.

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

◆ get() [2/2]

Tagged< Context > v8::internal::ScriptContextTable::get ( int index,
AcquireLoadTag tag ) const
inline

Definition at line 54 of file contexts-inl.h.

Here is the call graph for this function:

◆ length()

int v8::internal::ScriptContextTable::length ( AcquireLoadTag ) const
inline

Definition at line 33 of file contexts-inl.h.

◆ Lookup()

bool v8::internal::ScriptContextTable::Lookup ( DirectHandle< String > name,
VariableLookupResult * result )

Definition at line 118 of file contexts.cc.

Here is the call graph for this function:

◆ names_to_context_index()

Tagged< NameToIndexHashTable > v8::internal::ScriptContextTable::names_to_context_index ( ) const
inline

Definition at line 40 of file contexts-inl.h.

Here is the caller graph for this function:

◆ New()

Handle< ScriptContextTable > v8::internal::ScriptContextTable::New ( Isolate * isolate,
int capacity,
AllocationType allocation = AllocationType::kYoung )
static

Definition at line 28 of file contexts.cc.

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

◆ set_length()

void v8::internal::ScriptContextTable::set_length ( int value,
ReleaseStoreTag  )
inline

Definition at line 36 of file contexts-inl.h.

Here is the call graph for this function:

◆ set_names_to_context_index()

void v8::internal::ScriptContextTable::set_names_to_context_index ( Tagged< NameToIndexHashTable > value,
WriteBarrierMode mode = UPDATE_WRITE_BARRIER )
inline

Definition at line 44 of file contexts-inl.h.


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