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

#include <wasm-objects.h>

Inheritance diagram for v8::internal::WasmArray:
Collaboration diagram for v8::internal::WasmArray:

Public Member Functions

ObjectSlot ElementSlot (uint32_t index)
 
V8_EXPORT_PRIVATE wasm::WasmValue GetElement (uint32_t index)
 
void SetTaggedElement (uint32_t index, DirectHandle< Object > value, WriteBarrierMode mode=UPDATE_WRITE_BARRIER)
 
uint32_t element_offset (uint32_t index)
 
Address ElementAddress (uint32_t index)
 

Static Public Member Functions

static wasm::CanonicalTypeIndex type_index (Tagged< Map > map)
 
static const wasm::CanonicalValueType GcSafeElementType (Tagged< Map > map)
 
static int SizeFor (Tagged< Map > map, int length)
 
static DirectHandle< ObjectGetElement (Isolate *isolate, DirectHandle< WasmArray > array, uint32_t index)
 
static constexpr int MaxLength (uint32_t element_size_bytes)
 
static int MaxLength (const wasm::ArrayType *type)
 
static void EncodeElementSizeInMap (int element_size, Tagged< Map > map)
 
static int DecodeElementSizeFromMap (Tagged< Map > map)
 

Detailed Description

Definition at line 1469 of file wasm-objects.h.

Member Function Documentation

◆ DecodeElementSizeFromMap()

int v8::internal::WasmArray::DecodeElementSizeFromMap ( Tagged< Map > map)
inlinestatic

Definition at line 820 of file wasm-objects-inl.h.

Here is the caller graph for this function:

◆ element_offset()

uint32_t v8::internal::WasmArray::element_offset ( uint32_t index)
inline

Definition at line 785 of file wasm-objects-inl.h.

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

◆ ElementAddress()

Address v8::internal::WasmArray::ElementAddress ( uint32_t index)
inline

Definition at line 791 of file wasm-objects-inl.h.

Here is the call graph for this function:

◆ ElementSlot()

ObjectSlot v8::internal::WasmArray::ElementSlot ( uint32_t index)
inline

Definition at line 795 of file wasm-objects-inl.h.

◆ EncodeElementSizeInMap()

void v8::internal::WasmArray::EncodeElementSizeInMap ( int element_size,
Tagged< Map > map )
inlinestatic

Definition at line 815 of file wasm-objects-inl.h.

Here is the caller graph for this function:

◆ GcSafeElementType()

const wasm::CanonicalValueType v8::internal::WasmArray::GcSafeElementType ( Tagged< Map > map)
inlinestatic

Definition at line 770 of file wasm-objects-inl.h.

Here is the call graph for this function:

◆ GetElement() [1/2]

DirectHandle< Object > v8::internal::WasmArray::GetElement ( Isolate * isolate,
DirectHandle< WasmArray > array,
uint32_t index )
inlinestatic

Definition at line 802 of file wasm-objects-inl.h.

◆ GetElement() [2/2]

wasm::WasmValue v8::internal::WasmArray::GetElement ( uint32_t index)

Definition at line 2311 of file wasm-objects.cc.

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

◆ MaxLength() [1/2]

static int v8::internal::WasmArray::MaxLength ( const wasm::ArrayType * type)
inlinestatic

Definition at line 1501 of file wasm-objects.h.

◆ MaxLength() [2/2]

static constexpr int v8::internal::WasmArray::MaxLength ( uint32_t element_size_bytes)
inlinestaticconstexpr

Definition at line 1494 of file wasm-objects.h.

Here is the caller graph for this function:

◆ SetTaggedElement()

void v8::internal::WasmArray::SetTaggedElement ( uint32_t index,
DirectHandle< Object > value,
WriteBarrierMode mode = UPDATE_WRITE_BARRIER )

Definition at line 2341 of file wasm-objects.cc.

Here is the call graph for this function:

◆ SizeFor()

int v8::internal::WasmArray::SizeFor ( Tagged< Map > map,
int length )
inlinestatic

Definition at line 780 of file wasm-objects-inl.h.

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

◆ type_index()

wasm::CanonicalTypeIndex v8::internal::WasmArray::type_index ( Tagged< Map > map)
inlinestatic

Definition at line 764 of file wasm-objects-inl.h.


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