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

#include <fixed-array.h>

Inheritance diagram for v8::internal::ProtectedFixedArray:
Collaboration diagram for v8::internal::ProtectedFixedArray:

Classes

class  BodyDescriptor
 

Static Public Member Functions

template<class IsolateT >
static Handle< ProtectedFixedArrayNew (IsolateT *isolate, int capacity)
 
- Static Public Member Functions inherited from v8::internal::TaggedArrayBase< ProtectedFixedArray, ProtectedArrayShape, TrustedObjectLayout >
static void MoveElements (Isolate *isolate, Tagged< ProtectedFixedArray > dst, int dst_index, Tagged< ProtectedFixedArray > src, int src_index, int len, WriteBarrierMode mode=kDefaultMode)
 
static void CopyElements (Isolate *isolate, Tagged< ProtectedFixedArray > dst, int dst_index, Tagged< ProtectedFixedArray > src, int src_index, int len, WriteBarrierMode mode=kDefaultMode)
 
static constexpr int SizeFor (int capacity)
 
static constexpr int OffsetOfElementAt (int index)
 

Static Public Attributes

static constexpr int kMaxLength = Super::kMaxCapacity
 
static constexpr int kMaxRegularLength
 
- Static Public Attributes inherited from v8::internal::TaggedArrayBase< ProtectedFixedArray, ProtectedArrayShape, TrustedObjectLayout >
static constexpr bool kElementsAreMaybeObject
 
static constexpr int kElementSize
 
static constexpr int kMaxCapacity
 
static constexpr int kMaxRegularCapacity
 

Private Types

using Super
 

Additional Inherited Members

- Public Types inherited from v8::internal::TaggedArrayBase< ProtectedFixedArray, ProtectedArrayShape, TrustedObjectLayout >
using Header
 
using Shape
 
- Public Member Functions inherited from v8::internal::TaggedArrayBase< ProtectedFixedArray, ProtectedArrayShape, TrustedObjectLayout >
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)
 
- Protected Member Functions inherited from v8::internal::TaggedArrayBase< ProtectedFixedArray, ProtectedArrayShape, TrustedObjectLayout >
bool IsInBounds (int index) const
 
bool IsCowArray () const
 
 FLEXIBLE_ARRAY_MEMBER (ElementMemberT, objects)
 
- Static Protected Member Functions inherited from v8::internal::TaggedArrayBase< ProtectedFixedArray, ProtectedArrayShape, TrustedObjectLayout >
static Handle< ProtectedFixedArrayAllocate (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 332 of file fixed-array.h.

Member Typedef Documentation

◆ Super

Initial value:
TaggedArrayBase<ProtectedFixedArray, ProtectedArrayShape,
TrustedObjectLayout>

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

Member Function Documentation

◆ New()

template<class IsolateT >
Handle< ProtectedFixedArray > v8::internal::ProtectedFixedArray::New ( IsolateT * isolate,
int capacity )
inlinestatic

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

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

Member Data Documentation

◆ kMaxLength

int v8::internal::ProtectedFixedArray::kMaxLength = Super::kMaxCapacity
staticconstexpr

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

◆ kMaxRegularLength

int v8::internal::ProtectedFixedArray::kMaxRegularLength
staticconstexpr

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