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

#include <fixed-array.h>

Inheritance diagram for v8::internal::ArrayList:
Collaboration diagram for v8::internal::ArrayList:

Classes

class  BodyDescriptor
 

Public Types

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

Public Member Functions

int length () const
 
void set_length (int value)
 
void RightTrim (Isolate *isolate, int new_capacity)
 
- Public Member Functions inherited from v8::internal::TaggedArrayBase< ArrayList, ArrayListShape >
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

template<class IsolateT >
static DirectHandle< ArrayListNew (IsolateT *isolate, int capacity, AllocationType allocation=AllocationType::kYoung)
 
static V8_EXPORT_PRIVATE DirectHandle< ArrayListAdd (Isolate *isolate, DirectHandle< ArrayList > array, Tagged< Smi > obj, AllocationType allocation=AllocationType::kYoung)
 
static V8_EXPORT_PRIVATE DirectHandle< ArrayListAdd (Isolate *isolate, DirectHandle< ArrayList > array, DirectHandle< Object > obj, AllocationType allocation=AllocationType::kYoung)
 
static V8_EXPORT_PRIVATE DirectHandle< ArrayListAdd (Isolate *isolate, DirectHandle< ArrayList > array, DirectHandle< Object > obj0, DirectHandle< Object > obj1, AllocationType allocation=AllocationType::kYoung)
 
static V8_EXPORT_PRIVATE DirectHandle< FixedArrayToFixedArray (Isolate *isolate, DirectHandle< ArrayList > array, AllocationType allocation=AllocationType::kYoung)
 
- Static Public Member Functions inherited from v8::internal::TaggedArrayBase< ArrayList, ArrayListShape >
static void MoveElements (Isolate *isolate, Tagged< ArrayList > dst, int dst_index, Tagged< ArrayList > src, int src_index, int len, WriteBarrierMode mode=kDefaultMode)
 
static void CopyElements (Isolate *isolate, Tagged< ArrayList > dst, int dst_index, Tagged< ArrayList > 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<ArrayList, ArrayListShape>
 

Static Private Member Functions

static DirectHandle< ArrayListEnsureSpace (Isolate *isolate, DirectHandle< ArrayList > array, int length, AllocationType allocation=AllocationType::kYoung)
 

Additional Inherited Members

- Static Public Attributes inherited from v8::internal::TaggedArrayBase< ArrayList, ArrayListShape >
static constexpr bool kElementsAreMaybeObject
 
static constexpr int kElementSize
 
static constexpr int kMaxCapacity
 
static constexpr int kMaxRegularCapacity
 
- Protected Member Functions inherited from v8::internal::TaggedArrayBase< ArrayList, ArrayListShape >
bool IsInBounds (int index) const
 
bool IsCowArray () const
 
 FLEXIBLE_ARRAY_MEMBER (ElementMemberT, objects)
 
- Static Protected Member Functions inherited from v8::internal::TaggedArrayBase< ArrayList, ArrayListShape >
static Handle< ArrayListAllocate (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 711 of file fixed-array.h.

Member Typedef Documentation

◆ Shape

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

◆ Super

Member Function Documentation

◆ Add() [1/3]

DirectHandle< ArrayList > v8::internal::ArrayList::Add ( Isolate * isolate,
DirectHandle< ArrayList > array,
DirectHandle< Object > obj,
AllocationType allocation = AllocationType::kYoung )
static

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

Here is the call graph for this function:

◆ Add() [2/3]

DirectHandle< ArrayList > v8::internal::ArrayList::Add ( Isolate * isolate,
DirectHandle< ArrayList > array,
DirectHandle< Object > obj0,
DirectHandle< Object > obj1,
AllocationType allocation = AllocationType::kYoung )
static

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

Here is the call graph for this function:

◆ Add() [3/3]

static V8_EXPORT_PRIVATE DirectHandle< ArrayList > v8::internal::ArrayList::Add ( Isolate * isolate,
DirectHandle< ArrayList > array,
Tagged< Smi > obj,
AllocationType allocation = AllocationType::kYoung )
static
Here is the caller graph for this function:

◆ EnsureSpace()

DirectHandle< ArrayList > v8::internal::ArrayList::EnsureSpace ( Isolate * isolate,
DirectHandle< ArrayList > array,
int length,
AllocationType allocation = AllocationType::kYoung )
staticprivate

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

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

◆ length()

int v8::internal::ArrayList::length ( ) const
inline

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

Here is the caller graph for this function:

◆ New()

template<class IsolateT >
DirectHandle< ArrayList > v8::internal::ArrayList::New ( IsolateT * isolate,
int capacity,
AllocationType allocation = AllocationType::kYoung )
inlinestatic

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

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

◆ RightTrim()

void v8::internal::ArrayList::RightTrim ( Isolate * isolate,
int new_capacity )

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

Here is the call graph for this function:

◆ set_length()

void v8::internal::ArrayList::set_length ( int value)
inline

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

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

◆ ToFixedArray()

DirectHandle< FixedArray > v8::internal::ArrayList::ToFixedArray ( Isolate * isolate,
DirectHandle< ArrayList > array,
AllocationType allocation = AllocationType::kYoung )
static

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

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

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