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

#include <v8-wasm.h>

Collaboration diagram for v8::CompiledWasmModule:

Public Member Functions

OwnedBuffer Serialize ()
 
MemorySpan< const uint8_t > GetWireBytesRef ()
 
const std::string & source_url () const
 

Private Member Functions

 CompiledWasmModule (std::shared_ptr< internal::wasm::NativeModule >, const char *source_url, size_t url_length)
 

Private Attributes

const std::shared_ptr< internal::wasm::NativeModulenative_module_
 
const std::string source_url_
 

Friends

class WasmModuleObject
 
class WasmStreaming
 

Detailed Description

Definition at line 43 of file v8-wasm.h.

Constructor & Destructor Documentation

◆ CompiledWasmModule()

v8::CompiledWasmModule::CompiledWasmModule ( std::shared_ptr< internal::wasm::NativeModule > native_module,
const char * source_url,
size_t url_length )
explicitprivate

Definition at line 8807 of file api.cc.

Member Function Documentation

◆ GetWireBytesRef()

MemorySpan< const uint8_t > v8::CompiledWasmModule::GetWireBytesRef ( )

Get the (wasm-encoded) wire bytes that were used to compile this module.

Definition at line 8829 of file api.cc.

Here is the call graph for this function:

◆ Serialize()

OwnedBuffer v8::CompiledWasmModule::Serialize ( )

Serialize the compiled module. The serialized data does not include the wire bytes.

Definition at line 8815 of file api.cc.

◆ source_url()

const std::string & v8::CompiledWasmModule::source_url ( ) const
inline

Definition at line 56 of file v8-wasm.h.

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ WasmModuleObject

friend class WasmModuleObject
friend

Definition at line 59 of file v8-wasm.h.

◆ WasmStreaming

friend class WasmStreaming
friend

Definition at line 60 of file v8-wasm.h.

Member Data Documentation

◆ native_module_

const std::shared_ptr<internal::wasm::NativeModule> v8::CompiledWasmModule::native_module_
private

Definition at line 65 of file v8-wasm.h.

◆ source_url_

const std::string v8::CompiledWasmModule::source_url_
private

Definition at line 66 of file v8-wasm.h.


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