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

#include <fixed-array.h>

Inheritance diagram for v8::internal::WeakArrayList:
Collaboration diagram for v8::internal::WeakArrayList:

Classes

class  Iterator
 

Public Member Functions

V8_EXPORT_PRIVATE void Compact (Isolate *isolate)
 
Tagged< MaybeObjectGet (int index) const
 
Tagged< MaybeObjectGet (PtrComprCageBase cage_base, int index) const
 
Tagged< MaybeObjectget (int index) const
 
void Set (int index, Tagged< MaybeObject > value, WriteBarrierMode mode=UPDATE_WRITE_BARRIER)
 
void Set (int index, Tagged< Smi > value)
 
MaybeObjectSlot data_start ()
 
void CopyElements (Isolate *isolate, int dst_index, Tagged< WeakArrayList > src, int src_index, int len, WriteBarrierMode mode)
 
V8_EXPORT_PRIVATE bool IsFull () const
 
int AllocatedSize () const
 
int CountLiveWeakReferences () const
 
int CountLiveElements () const
 
V8_EXPORT_PRIVATE bool RemoveOne (MaybeObjectDirectHandle value)
 
V8_EXPORT_PRIVATE bool Contains (Tagged< MaybeObject > value)
 

Static Public Member Functions

NEVER_READ_ONLY_SPACE static V8_EXPORT_PRIVATE Handle< WeakArrayListAddToEnd (Isolate *isolate, Handle< WeakArrayList > array, MaybeObjectDirectHandle value)
 
static V8_EXPORT_PRIVATE Handle< WeakArrayListAddToEnd (Isolate *isolate, Handle< WeakArrayList > array, MaybeObjectDirectHandle value1, Tagged< Smi > value2)
 
static V8_WARN_UNUSED_RESULT DirectHandle< WeakArrayListAppend (Isolate *isolate, DirectHandle< WeakArrayList > array, MaybeObjectDirectHandle value, AllocationType allocation=AllocationType::kYoung)
 
static constexpr int SizeForCapacity (int capacity)
 
static constexpr int CapacityForLength (int length)
 
static Handle< WeakArrayListEnsureSpace (Isolate *isolate, Handle< WeakArrayList > array, int length, AllocationType allocation=AllocationType::kYoung)
 

Static Public Attributes

static constexpr int kMaxCapacity = kMaxFixedArrayCapacity
 

Static Private Member Functions

static int OffsetOfElementAt (int index)
 

Detailed Description

Definition at line 587 of file fixed-array.h.

Member Function Documentation

◆ AddToEnd() [1/2]

Handle< WeakArrayList > v8::internal::WeakArrayList::AddToEnd ( Isolate * isolate,
Handle< WeakArrayList > array,
MaybeObjectDirectHandle value )
static

Definition at line 166 of file fixed-array.cc.

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

◆ AddToEnd() [2/2]

Handle< WeakArrayList > v8::internal::WeakArrayList::AddToEnd ( Isolate * isolate,
Handle< WeakArrayList > array,
MaybeObjectDirectHandle value1,
Tagged< Smi > value2 )
static

Definition at line 182 of file fixed-array.cc.

Here is the call graph for this function:

◆ AllocatedSize()

int v8::internal::WeakArrayList::AllocatedSize ( ) const
inline

Definition at line 438 of file fixed-array-inl.h.

◆ Append()

DirectHandle< WeakArrayList > v8::internal::WeakArrayList::Append ( Isolate * isolate,
DirectHandle< WeakArrayList > array,
MaybeObjectDirectHandle value,
AllocationType allocation = AllocationType::kYoung )
static

Definition at line 201 of file fixed-array.cc.

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

◆ CapacityForLength()

static constexpr int v8::internal::WeakArrayList::CapacityForLength ( int length)
inlinestaticconstexpr

Definition at line 631 of file fixed-array.h.

Here is the caller graph for this function:

◆ Compact()

void v8::internal::WeakArrayList::Compact ( Isolate * isolate)

Definition at line 250 of file fixed-array.cc.

Here is the call graph for this function:

◆ Contains()

bool v8::internal::WeakArrayList::Contains ( Tagged< MaybeObject > value)

Definition at line 320 of file fixed-array.cc.

Here is the call graph for this function:

◆ CopyElements()

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

Definition at line 696 of file fixed-array-inl.h.

Here is the call graph for this function:

◆ CountLiveElements()

int v8::internal::WeakArrayList::CountLiveElements ( ) const

Definition at line 295 of file fixed-array.cc.

Here is the call graph for this function:

◆ CountLiveWeakReferences()

int v8::internal::WeakArrayList::CountLiveWeakReferences ( ) const

Definition at line 285 of file fixed-array.cc.

Here is the call graph for this function:

◆ data_start()

MaybeObjectSlot v8::internal::WeakArrayList::data_start ( )
inline

Definition at line 692 of file fixed-array-inl.h.

Here is the caller graph for this function:

◆ EnsureSpace()

Handle< WeakArrayList > v8::internal::WeakArrayList::EnsureSpace ( Isolate * isolate,
Handle< WeakArrayList > array,
int length,
AllocationType allocation = AllocationType::kYoung )
static

Definition at line 272 of file fixed-array.cc.

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

◆ Get() [1/2]

Tagged< MaybeObject > v8::internal::WeakArrayList::Get ( int index) const
inline

Definition at line 671 of file fixed-array-inl.h.

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

◆ Get() [2/2]

Tagged< MaybeObject > v8::internal::WeakArrayList::Get ( PtrComprCageBase cage_base,
int index ) const
inline

Definition at line 677 of file fixed-array-inl.h.

◆ get()

Tagged< MaybeObject > v8::internal::WeakArrayList::get ( int index) const
inline

Definition at line 675 of file fixed-array-inl.h.

Here is the call graph for this function:

◆ IsFull()

bool v8::internal::WeakArrayList::IsFull ( ) const

Definition at line 269 of file fixed-array.cc.

◆ OffsetOfElementAt()

static int v8::internal::WeakArrayList::OffsetOfElementAt ( int index)
inlinestaticprivate

Definition at line 679 of file fixed-array.h.

Here is the caller graph for this function:

◆ RemoveOne()

bool v8::internal::WeakArrayList::RemoveOne ( MaybeObjectDirectHandle value)

Definition at line 305 of file fixed-array.cc.

Here is the call graph for this function:

◆ Set() [1/2]

void v8::internal::WeakArrayList::Set ( int index,
Tagged< MaybeObject > value,
WriteBarrierMode mode = UPDATE_WRITE_BARRIER )
inline

Definition at line 683 of file fixed-array-inl.h.

Here is the caller graph for this function:

◆ Set() [2/2]

void v8::internal::WeakArrayList::Set ( int index,
Tagged< Smi > value )
inline

Definition at line 688 of file fixed-array-inl.h.

Here is the call graph for this function:

◆ SizeForCapacity()

static constexpr int v8::internal::WeakArrayList::SizeForCapacity ( int capacity)
inlinestaticconstexpr

Definition at line 627 of file fixed-array.h.

Here is the caller graph for this function:

Member Data Documentation

◆ kMaxCapacity

int v8::internal::WeakArrayList::kMaxCapacity = kMaxFixedArrayCapacity
staticconstexpr

Definition at line 654 of file fixed-array.h.


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