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

#include <property-array.h>

Inheritance diagram for v8::internal::PropertyArray:
Collaboration diagram for v8::internal::PropertyArray:

Public Types

using BodyDescriptor = FlexibleBodyDescriptor<kHeaderSize>
 
using LengthField = base::BitField<int, 0, kLengthFieldSize>
 
using HashField
 

Public Member Functions

int length () const
 
int length (AcquireLoadTag) const
 
void initialize_length (int length)
 
void SetHash (int hash)
 
int Hash () const
 
Tagged< JSAnyget (int index) const
 
Tagged< JSAnyget (PtrComprCageBase cage_base, int index) const
 
Tagged< JSAnyget (int index, SeqCstAccessTag tag) const
 
Tagged< JSAnyget (PtrComprCageBase cage_base, int index, SeqCstAccessTag tag) const
 
void set (int index, Tagged< Object > value)
 
void set (int index, Tagged< Object > value, SeqCstAccessTag tag)
 
void set (int index, Tagged< Object > value, WriteBarrierMode mode)
 
Tagged< ObjectSwap (int index, Tagged< Object > value, SeqCstAccessTag tag)
 
Tagged< ObjectSwap (PtrComprCageBase cage_base, int index, Tagged< Object > value, SeqCstAccessTag tag)
 
Tagged< ObjectCompareAndSwap (int index, Tagged< Object > expected, Tagged< Object > value, SeqCstAccessTag tag)
 
ObjectSlot data_start ()
 
ObjectSlot RawFieldOfElementAt (int index)
 

Static Public Member Functions

static void CopyElements (Isolate *isolate, Tagged< PropertyArray > dst, int dst_index, Tagged< PropertyArray > src, int src_index, int len, WriteBarrierMode mode=UPDATE_WRITE_BARRIER)
 
static constexpr int SizeFor (int length)
 
static constexpr int OffsetOfElementAt (int index)
 

Static Public Attributes

static const int kLengthFieldSize = 10
 
static const int kMaxLength = LengthField::kMax
 
static const int kNoHashSentinel = 0
 

Detailed Description

Definition at line 18 of file property-array.h.

Member Typedef Documentation

◆ BodyDescriptor

◆ HashField

Initial value:
base::BitField<int, kLengthFieldSize,
static const int kLengthFieldSize
const int kSmiValueSize

Definition at line 77 of file property-array.h.

◆ LengthField

Member Function Documentation

◆ CompareAndSwap()

Tagged< Object > v8::internal::PropertyArray::CompareAndSwap ( int index,
Tagged< Object > expected,
Tagged< Object > value,
SeqCstAccessTag tag )
inline

Definition at line 102 of file property-array-inl.h.

Here is the call graph for this function:

◆ CopyElements()

void v8::internal::PropertyArray::CopyElements ( Isolate * isolate,
Tagged< PropertyArray > dst,
int dst_index,
Tagged< PropertyArray > src,
int src_index,
int len,
WriteBarrierMode mode = UPDATE_WRITE_BARRIER )
inlinestatic

Definition at line 146 of file property-array-inl.h.

◆ data_start()

ObjectSlot v8::internal::PropertyArray::data_start ( )
inline

Definition at line 118 of file property-array-inl.h.

Here is the call graph for this function:

◆ get() [1/4]

Tagged< JSAny > v8::internal::PropertyArray::get ( int index) const
inline

◆ get() [2/4]

Tagged< JSAny > v8::internal::PropertyArray::get ( int index,
SeqCstAccessTag tag ) const
inline

◆ get() [3/4]

Tagged< JSAny > v8::internal::PropertyArray::get ( PtrComprCageBase cage_base,
int index ) const
inline

◆ get() [4/4]

Tagged< JSAny > v8::internal::PropertyArray::get ( PtrComprCageBase cage_base,
int index,
SeqCstAccessTag tag ) const
inline

◆ Hash()

int v8::internal::PropertyArray::Hash ( ) const
inline

Definition at line 137 of file property-array-inl.h.

Here is the call graph for this function:

◆ initialize_length()

void v8::internal::PropertyArray::initialize_length ( int length)
inline

Definition at line 128 of file property-array-inl.h.

Here is the call graph for this function:

◆ length() [1/2]

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

Definition at line 124 of file property-array-inl.h.

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

◆ length() [2/2]

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

Definition at line 133 of file property-array-inl.h.

Here is the call graph for this function:

◆ OffsetOfElementAt()

static constexpr int v8::internal::PropertyArray::OffsetOfElementAt ( int index)
inlinestaticconstexpr

Definition at line 66 of file property-array.h.

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

◆ RawFieldOfElementAt()

ObjectSlot v8::internal::PropertyArray::RawFieldOfElementAt ( int index)
inline

Definition at line 120 of file property-array-inl.h.

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

◆ set() [1/3]

void v8::internal::PropertyArray::set ( int index,
Tagged< Object > value )
inline

◆ set() [2/3]

void v8::internal::PropertyArray::set ( int index,
Tagged< Object > value,
SeqCstAccessTag tag )
inline

Definition at line 73 of file property-array-inl.h.

Here is the call graph for this function:

◆ set() [3/3]

void v8::internal::PropertyArray::set ( int index,
Tagged< Object > value,
WriteBarrierMode mode )
inline

Definition at line 64 of file property-array-inl.h.

Here is the call graph for this function:

◆ SetHash()

void v8::internal::PropertyArray::SetHash ( int hash)
inline

Definition at line 139 of file property-array-inl.h.

Here is the call graph for this function:

◆ SizeFor()

static constexpr int v8::internal::PropertyArray::SizeFor ( int length)
inlinestaticconstexpr

Definition at line 63 of file property-array.h.

Here is the caller graph for this function:

◆ Swap() [1/2]

Tagged< Object > v8::internal::PropertyArray::Swap ( int index,
Tagged< Object > value,
SeqCstAccessTag tag )
inline

Definition at line 83 of file property-array-inl.h.

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

◆ Swap() [2/2]

Tagged< Object > v8::internal::PropertyArray::Swap ( PtrComprCageBase cage_base,
int index,
Tagged< Object > value,
SeqCstAccessTag tag )
inline

Definition at line 89 of file property-array-inl.h.

Here is the call graph for this function:

Member Data Documentation

◆ kLengthFieldSize

const int v8::internal::PropertyArray::kLengthFieldSize = 10
static

Definition at line 74 of file property-array.h.

◆ kMaxLength

const int v8::internal::PropertyArray::kMaxLength = LengthField::kMax
static

Definition at line 76 of file property-array.h.

◆ kNoHashSentinel

const int v8::internal::PropertyArray::kNoHashSentinel = 0
static

Definition at line 80 of file property-array.h.


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