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

Public Member Functions

 WasmStreamingImpl (i::Isolate *isolate, const char *api_method_name, CompileTimeImports compile_imports, std::shared_ptr< internal::wasm::CompilationResultResolver > resolver)
 
void OnBytesReceived (const uint8_t *bytes, size_t size)
 
void Finish (bool can_use_compiled_module)
 
void Abort (i::MaybeHandle< i::JSAny > exception)
 
bool SetCompiledModuleBytes (base::Vector< const uint8_t > bytes)
 
void SetMoreFunctionsCanBeSerializedCallback (std::function< void(CompiledWasmModule)> callback)
 
void SetUrl (base::Vector< const char > url)
 

Private Attributes

i::Isolate *const i_isolate_
 
const WasmEnabledFeatures enabled_features_
 
const std::shared_ptr< internal::wasm::StreamingDecoderstreaming_decoder_
 
const std::shared_ptr< internal::wasm::CompilationResultResolverresolver_
 

Detailed Description

Definition at line 59 of file wasm-js.cc.

Constructor & Destructor Documentation

◆ WasmStreamingImpl()

v8::WasmStreaming::WasmStreamingImpl::WasmStreamingImpl ( i::Isolate * isolate,
const char * api_method_name,
CompileTimeImports compile_imports,
std::shared_ptr< internal::wasm::CompilationResultResolver > resolver )
inline

Definition at line 61 of file wasm-js.cc.

Member Function Documentation

◆ Abort()

void v8::WasmStreaming::WasmStreamingImpl::Abort ( i::MaybeHandle< i::JSAny > exception)
inline

Definition at line 80 of file wasm-js.cc.

◆ Finish()

void v8::WasmStreaming::WasmStreamingImpl::Finish ( bool can_use_compiled_module)
inline

Definition at line 76 of file wasm-js.cc.

◆ OnBytesReceived()

void v8::WasmStreaming::WasmStreamingImpl::OnBytesReceived ( const uint8_t * bytes,
size_t size )
inline

Definition at line 73 of file wasm-js.cc.

Here is the call graph for this function:

◆ SetCompiledModuleBytes()

bool v8::WasmStreaming::WasmStreamingImpl::SetCompiledModuleBytes ( base::Vector< const uint8_t > bytes)
inline

Definition at line 92 of file wasm-js.cc.

◆ SetMoreFunctionsCanBeSerializedCallback()

void v8::WasmStreaming::WasmStreamingImpl::SetMoreFunctionsCanBeSerializedCallback ( std::function< void(CompiledWasmModule)> callback)
inline

Definition at line 98 of file wasm-js.cc.

◆ SetUrl()

void v8::WasmStreaming::WasmStreamingImpl::SetUrl ( base::Vector< const char > url)
inline

Definition at line 108 of file wasm-js.cc.

Member Data Documentation

◆ enabled_features_

const WasmEnabledFeatures v8::WasmStreaming::WasmStreamingImpl::enabled_features_
private

Definition at line 112 of file wasm-js.cc.

◆ i_isolate_

i::Isolate* const v8::WasmStreaming::WasmStreamingImpl::i_isolate_
private

Definition at line 111 of file wasm-js.cc.

◆ resolver_

const std::shared_ptr<internal::wasm::CompilationResultResolver> v8::WasmStreaming::WasmStreamingImpl::resolver_
private

Definition at line 114 of file wasm-js.cc.

◆ streaming_decoder_

const std::shared_ptr<internal::wasm::StreamingDecoder> v8::WasmStreaming::WasmStreamingImpl::streaming_decoder_
private

Definition at line 113 of file wasm-js.cc.


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