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

#include <js-array-buffer.h>

Inheritance diagram for v8::internal::JSTypedArray:
Collaboration diagram for v8::internal::JSTypedArray:

Classes

class  BodyDescriptor
 

Public Member Functions

ExternalArrayType type ()
 
V8_EXPORT_PRIVATE size_t element_size () const
 
V8_EXPORT_PRIVATE Handle< JSArrayBufferGetBuffer ()
 
void * DataPtr ()
 
void SetOffHeapDataPtr (Isolate *isolate, void *base, Address offset)
 
bool is_on_heap () const
 
bool is_on_heap (AcquireLoadTag tag) const
 
size_t GetVariableByteLengthOrOutOfBounds (bool &out_of_bounds) const
 
size_t GetVariableLengthOrOutOfBounds (bool &out_of_bounds) const
 
size_t GetLengthOrOutOfBounds (bool &out_of_bounds) const
 
size_t GetLength () const
 
size_t GetByteLength () const
 
bool IsOutOfBounds () const
 
bool IsDetachedOrOutOfBounds () const
 
uint32_t GetExternalBackingStoreRefForDeserialization () const
 
void SetExternalBackingStoreRefForSerialization (uint32_t ref)
 
void RemoveExternalPointerCompensationForSerialization (Isolate *isolate)
 
void AddExternalPointerCompensationForDeserialization (Isolate *isolate)
 

Static Public Member Functions

static V8_WARN_UNUSED_RESULT Maybe< boolDefineOwnProperty (Isolate *isolate, DirectHandle< JSTypedArray > o, DirectHandle< Object > key, PropertyDescriptor *desc, Maybe< ShouldThrow > should_throw)
 
static void ForFixedTypedArray (ExternalArrayType array_type, size_t *element_size, ElementsKind *element_kind)
 
static size_t LengthTrackingGsabBackedTypedArrayLength (Isolate *isolate, Address raw_array)
 
static Address ExternalPointerCompensationForOnHeapArray (PtrComprCageBase cage_base)
 
static MaybeDirectHandle< JSTypedArrayValidate (Isolate *isolate, DirectHandle< Object > receiver, const char *method_name)
 

Static Public Attributes

static constexpr size_t kMaxByteLength = JSArrayBuffer::kMaxByteLength
 
static constexpr bool kOffHeapDataPtrEqualsExternalPointer = true
 
static constexpr int kSizeWithEmbedderFields
 
static constexpr bool kContainsEmbedderFields
 
static constexpr size_t kMaxSizeInHeap = 64
 

Private Member Functions

size_t LengthUnchecked () const
 
void set_external_pointer (Isolate *isolate, Address value)
 

Friends

template<typename IsolateT >
class Deserializer
 
class Factory
 

Detailed Description

Definition at line 328 of file js-array-buffer.h.

Member Function Documentation

◆ AddExternalPointerCompensationForDeserialization()

void v8::internal::JSTypedArray::AddExternalPointerCompensationForDeserialization ( Isolate * isolate)
inline

Definition at line 333 of file js-array-buffer-inl.h.

Here is the call graph for this function:

◆ DataPtr()

void * v8::internal::JSTypedArray::DataPtr ( )
inline

Definition at line 341 of file js-array-buffer-inl.h.

Here is the caller graph for this function:

◆ DefineOwnProperty()

Maybe< bool > v8::internal::JSTypedArray::DefineOwnProperty ( Isolate * isolate,
DirectHandle< JSTypedArray > o,
DirectHandle< Object > key,
PropertyDescriptor * desc,
Maybe< ShouldThrow > should_throw )
static

Definition at line 341 of file js-array-buffer.cc.

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

◆ element_size()

size_t v8::internal::JSTypedArray::element_size ( ) const

Definition at line 426 of file js-array-buffer.cc.

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

◆ ExternalPointerCompensationForOnHeapArray()

Address v8::internal::JSTypedArray::ExternalPointerCompensationForOnHeapArray ( PtrComprCageBase cage_base)
inlinestatic

Definition at line 306 of file js-array-buffer-inl.h.

Here is the caller graph for this function:

◆ ForFixedTypedArray()

void v8::internal::JSTypedArray::ForFixedTypedArray ( ExternalArrayType array_type,
size_t * element_size,
ElementsKind * element_kind )
inlinestatic

Definition at line 268 of file js-array-buffer-inl.h.

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

◆ GetBuffer()

Handle< JSArrayBuffer > v8::internal::JSTypedArray::GetBuffer ( )

Definition at line 297 of file js-array-buffer.cc.

Here is the call graph for this function:

◆ GetByteLength()

size_t v8::internal::JSTypedArray::GetByteLength ( ) const
inline

Definition at line 244 of file js-array-buffer-inl.h.

Here is the call graph for this function:

◆ GetExternalBackingStoreRefForDeserialization()

uint32_t v8::internal::JSTypedArray::GetExternalBackingStoreRefForDeserialization ( ) const
inline

Definition at line 315 of file js-array-buffer-inl.h.

Here is the call graph for this function:

◆ GetLength()

size_t v8::internal::JSTypedArray::GetLength ( ) const
inline

Definition at line 239 of file js-array-buffer-inl.h.

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

◆ GetLengthOrOutOfBounds()

size_t v8::internal::JSTypedArray::GetLengthOrOutOfBounds ( bool & out_of_bounds) const
inline

Definition at line 230 of file js-array-buffer-inl.h.

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

◆ GetVariableByteLengthOrOutOfBounds()

size_t v8::internal::JSTypedArray::GetVariableByteLengthOrOutOfBounds ( bool & out_of_bounds) const

Definition at line 459 of file js-array-buffer.cc.

Here is the caller graph for this function:

◆ GetVariableLengthOrOutOfBounds()

size_t v8::internal::JSTypedArray::GetVariableLengthOrOutOfBounds ( bool & out_of_bounds) const

Definition at line 489 of file js-array-buffer.cc.

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

◆ is_on_heap() [1/2]

bool v8::internal::JSTypedArray::is_on_heap ( ) const
inline

Definition at line 365 of file js-array-buffer-inl.h.

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

◆ is_on_heap() [2/2]

bool v8::internal::JSTypedArray::is_on_heap ( AcquireLoadTag tag) const
inline

Definition at line 371 of file js-array-buffer-inl.h.

Here is the call graph for this function:

◆ IsDetachedOrOutOfBounds()

bool v8::internal::JSTypedArray::IsDetachedOrOutOfBounds ( ) const
inline

Definition at line 254 of file js-array-buffer-inl.h.

Here is the call graph for this function:

◆ IsOutOfBounds()

bool v8::internal::JSTypedArray::IsOutOfBounds ( ) const
inline

Definition at line 248 of file js-array-buffer-inl.h.

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

◆ LengthTrackingGsabBackedTypedArrayLength()

size_t v8::internal::JSTypedArray::LengthTrackingGsabBackedTypedArrayLength ( Isolate * isolate,
Address raw_array )
static

Definition at line 441 of file js-array-buffer.cc.

Here is the call graph for this function:

◆ LengthUnchecked()

size_t v8::internal::JSTypedArray::LengthUnchecked ( ) const
inlineprivate

Definition at line 290 of file js-array-buffer-inl.h.

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

◆ RemoveExternalPointerCompensationForSerialization()

void v8::internal::JSTypedArray::RemoveExternalPointerCompensationForSerialization ( Isolate * isolate)
inline

Definition at line 325 of file js-array-buffer-inl.h.

Here is the call graph for this function:

◆ set_external_pointer()

void v8::internal::JSTypedArray::set_external_pointer ( Isolate * isolate,
Address value )
inlineprivate

Definition at line 302 of file js-array-buffer-inl.h.

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

◆ SetExternalBackingStoreRefForSerialization()

void v8::internal::JSTypedArray::SetExternalBackingStoreRefForSerialization ( uint32_t ref)
inline

Definition at line 320 of file js-array-buffer-inl.h.

Here is the call graph for this function:

◆ SetOffHeapDataPtr()

void v8::internal::JSTypedArray::SetOffHeapDataPtr ( Isolate * isolate,
void * base,
Address offset )
inline

Definition at line 351 of file js-array-buffer-inl.h.

Here is the call graph for this function:

◆ type()

ExternalArrayType v8::internal::JSTypedArray::type ( )

Definition at line 411 of file js-array-buffer.cc.

Here is the call graph for this function:

◆ Validate()

MaybeDirectHandle< JSTypedArray > v8::internal::JSTypedArray::Validate ( Isolate * isolate,
DirectHandle< Object > receiver,
const char * method_name )
inlinestatic

Definition at line 380 of file js-array-buffer-inl.h.

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

Friends And Related Symbol Documentation

◆ Deserializer

template<typename IsolateT >
friend class Deserializer
friend

Definition at line 438 of file js-array-buffer.h.

◆ Factory

friend class Factory
friend

Definition at line 439 of file js-array-buffer.h.

Member Data Documentation

◆ kContainsEmbedderFields

bool v8::internal::JSTypedArray::kContainsEmbedderFields
staticconstexpr
Initial value:

Definition at line 425 of file js-array-buffer.h.

◆ kMaxByteLength

size_t v8::internal::JSTypedArray::kMaxByteLength = JSArrayBuffer::kMaxByteLength
staticconstexpr

Definition at line 331 of file js-array-buffer.h.

◆ kMaxSizeInHeap

size_t v8::internal::JSTypedArray::kMaxSizeInHeap = 64
staticconstexpr

Definition at line 433 of file js-array-buffer.h.

◆ kOffHeapDataPtrEqualsExternalPointer

bool v8::internal::JSTypedArray::kOffHeapDataPtrEqualsExternalPointer = true
staticconstexpr

Definition at line 352 of file js-array-buffer.h.

◆ kSizeWithEmbedderFields

int v8::internal::JSTypedArray::kSizeWithEmbedderFields
staticconstexpr
Initial value:

Definition at line 422 of file js-array-buffer.h.


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