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

#include <wasm-objects.h>

Inheritance diagram for v8::internal::WasmMemoryObject:
Collaboration diagram for v8::internal::WasmMemoryObject:

Public Member Functions

bool has_maximum_pages ()
 
bool is_memory64 () const
 
void SetNewBuffer (Isolate *isolate, Tagged< JSArrayBuffer > new_buffer)
 
void UpdateInstances (Isolate *isolate)
 
void FixUpResizableArrayBuffer (Tagged< JSArrayBuffer > new_buffer)
 

Static Public Member Functions

static V8_EXPORT_PRIVATE void UseInInstance (Isolate *isolate, DirectHandle< WasmMemoryObject > memory, DirectHandle< WasmTrustedInstanceData > trusted_instance_data, DirectHandle< WasmTrustedInstanceData > shared_trusted_instance_data, int memory_index_in_instance)
 
static V8_EXPORT_PRIVATE DirectHandle< WasmMemoryObjectNew (Isolate *isolate, DirectHandle< JSArrayBuffer > buffer, int maximum, wasm::AddressType address_type)
 
static V8_EXPORT_PRIVATE MaybeDirectHandle< WasmMemoryObjectNew (Isolate *isolate, int initial, int maximum, SharedFlag shared, wasm::AddressType address_type)
 
static DirectHandle< JSArrayBufferRefreshBuffer (Isolate *isolate, DirectHandle< WasmMemoryObject > memory, std::shared_ptr< BackingStore > new_backing_store)
 
static DirectHandle< JSArrayBufferRefreshSharedBuffer (Isolate *isolate, DirectHandle< WasmMemoryObject > memory, ResizableFlag resizable_by_js)
 
static V8_EXPORT_PRIVATE int32_t Grow (Isolate *, DirectHandle< WasmMemoryObject >, uint32_t pages)
 
static DirectHandle< JSArrayBufferToFixedLengthBuffer (Isolate *isolate, DirectHandle< WasmMemoryObject > memory)
 
static DirectHandle< JSArrayBufferToResizableBuffer (Isolate *isolate, DirectHandle< WasmMemoryObject > memory)
 

Static Public Attributes

static constexpr int kNoMaximum = -1
 

Detailed Description

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

Member Function Documentation

◆ FixUpResizableArrayBuffer()

void v8::internal::WasmMemoryObject::FixUpResizableArrayBuffer ( Tagged< JSArrayBuffer > new_buffer)

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

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

◆ Grow()

int32_t v8::internal::WasmMemoryObject::Grow ( Isolate * isolate,
DirectHandle< WasmMemoryObject > memory_object,
uint32_t pages )
static

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

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

◆ has_maximum_pages()

bool v8::internal::WasmMemoryObject::has_maximum_pages ( )
inline

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

Here is the caller graph for this function:

◆ is_memory64()

bool v8::internal::WasmMemoryObject::is_memory64 ( ) const
inline

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

◆ New() [1/2]

DirectHandle< WasmMemoryObject > v8::internal::WasmMemoryObject::New ( Isolate * isolate,
DirectHandle< JSArrayBuffer > buffer,
int maximum,
wasm::AddressType address_type )
static

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

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

◆ New() [2/2]

MaybeDirectHandle< WasmMemoryObject > v8::internal::WasmMemoryObject::New ( Isolate * isolate,
int initial,
int maximum,
SharedFlag shared,
wasm::AddressType address_type )
static

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

Here is the call graph for this function:

◆ RefreshBuffer()

DirectHandle< JSArrayBuffer > v8::internal::WasmMemoryObject::RefreshBuffer ( Isolate * isolate,
DirectHandle< WasmMemoryObject > memory,
std::shared_ptr< BackingStore > new_backing_store )
static

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

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

◆ RefreshSharedBuffer()

DirectHandle< JSArrayBuffer > v8::internal::WasmMemoryObject::RefreshSharedBuffer ( Isolate * isolate,
DirectHandle< WasmMemoryObject > memory,
ResizableFlag resizable_by_js )
static

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

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

◆ SetNewBuffer()

void v8::internal::WasmMemoryObject::SetNewBuffer ( Isolate * isolate,
Tagged< JSArrayBuffer > new_buffer )

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

Here is the call graph for this function:

◆ ToFixedLengthBuffer()

DirectHandle< JSArrayBuffer > v8::internal::WasmMemoryObject::ToFixedLengthBuffer ( Isolate * isolate,
DirectHandle< WasmMemoryObject > memory )
static

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

Here is the call graph for this function:

◆ ToResizableBuffer()

DirectHandle< JSArrayBuffer > v8::internal::WasmMemoryObject::ToResizableBuffer ( Isolate * isolate,
DirectHandle< WasmMemoryObject > memory )
static

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

Here is the call graph for this function:

◆ UpdateInstances()

void v8::internal::WasmMemoryObject::UpdateInstances ( Isolate * isolate)

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

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

◆ UseInInstance()

void v8::internal::WasmMemoryObject::UseInInstance ( Isolate * isolate,
DirectHandle< WasmMemoryObject > memory,
DirectHandle< WasmTrustedInstanceData > trusted_instance_data,
DirectHandle< WasmTrustedInstanceData > shared_trusted_instance_data,
int memory_index_in_instance )
static

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

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

Member Data Documentation

◆ kNoMaximum

int v8::internal::WasmMemoryObject::kNoMaximum = -1
staticconstexpr

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


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