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

Public Member Functions

 SyncStreamingDecoder (Isolate *isolate, WasmEnabledFeatures enabled, CompileTimeImports compile_imports, DirectHandle< Context > context, const char *api_method_name_for_errors, std::shared_ptr< CompilationResultResolver > resolver)
 
void OnBytesReceived (base::Vector< const uint8_t > bytes) override
 
void Finish (bool can_use_compiled_module) override
 
void Abort () override
 
void NotifyCompilationDiscarded () override
 
void NotifyNativeModuleCreated (const std::shared_ptr< NativeModule > &) override
 
- Public Member Functions inherited from v8::internal::wasm::StreamingDecoder
virtual ~StreamingDecoder ()=default
 
void SetMoreFunctionsCanBeSerializedCallback (MoreFunctionsCanBeSerializedCallback callback)
 
void SetCompiledModuleBytes (base::Vector< const uint8_t > bytes)
 
const std::string & url () const
 
std::shared_ptr< const std::string > shared_url () const
 
void SetUrl (base::Vector< const char > url)
 

Private Attributes

Isolateisolate_
 
const WasmEnabledFeatures enabled_
 
CompileTimeImports compile_imports_
 
IndirectHandle< Contextcontext_
 
const char * api_method_name_for_errors_
 
std::shared_ptr< CompilationResultResolverresolver_
 
std::vector< std::vector< uint8_t > > buffer_
 
size_t buffer_size_ = 0
 

Additional Inherited Members

- Public Types inherited from v8::internal::wasm::StreamingDecoder
using MoreFunctionsCanBeSerializedCallback
 
- Static Public Member Functions inherited from v8::internal::wasm::StreamingDecoder
static std::unique_ptr< StreamingDecoderCreateAsyncStreamingDecoder (std::unique_ptr< StreamingProcessor > processor)
 
static std::unique_ptr< StreamingDecoderCreateSyncStreamingDecoder (Isolate *isolate, WasmEnabledFeatures enabled, CompileTimeImports compile_imports, DirectHandle< Context > context, const char *api_method_name_for_errors, std::shared_ptr< CompilationResultResolver > resolver)
 
- Protected Member Functions inherited from v8::internal::wasm::StreamingDecoder
bool deserializing () const
 
- Protected Attributes inherited from v8::internal::wasm::StreamingDecoder
const std::shared_ptr< std::string > url_ = std::make_shared<std::string>()
 
MoreFunctionsCanBeSerializedCallback more_functions_can_be_serialized_callback_
 
base::Vector< const uint8_t > compiled_module_bytes_
 

Detailed Description

Definition at line 15 of file sync-streaming-decoder.cc.

Constructor & Destructor Documentation

◆ SyncStreamingDecoder()

v8::internal::wasm::SyncStreamingDecoder::SyncStreamingDecoder ( Isolate * isolate,
WasmEnabledFeatures enabled,
CompileTimeImports compile_imports,
DirectHandle< Context > context,
const char * api_method_name_for_errors,
std::shared_ptr< CompilationResultResolver > resolver )
inline

Definition at line 17 of file sync-streaming-decoder.cc.

Here is the call graph for this function:

Member Function Documentation

◆ Abort()

void v8::internal::wasm::SyncStreamingDecoder::Abort ( )
inlineoverridevirtual

Implements v8::internal::wasm::StreamingDecoder.

Definition at line 78 of file sync-streaming-decoder.cc.

◆ Finish()

void v8::internal::wasm::SyncStreamingDecoder::Finish ( bool can_use_compiled_module)
inlineoverridevirtual

Implements v8::internal::wasm::StreamingDecoder.

Definition at line 37 of file sync-streaming-decoder.cc.

Here is the call graph for this function:

◆ NotifyCompilationDiscarded()

void v8::internal::wasm::SyncStreamingDecoder::NotifyCompilationDiscarded ( )
inlineoverridevirtual

Implements v8::internal::wasm::StreamingDecoder.

Definition at line 83 of file sync-streaming-decoder.cc.

◆ NotifyNativeModuleCreated()

void v8::internal::wasm::SyncStreamingDecoder::NotifyNativeModuleCreated ( const std::shared_ptr< NativeModule > & )
inlineoverridevirtual

Implements v8::internal::wasm::StreamingDecoder.

Definition at line 85 of file sync-streaming-decoder.cc.

◆ OnBytesReceived()

void v8::internal::wasm::SyncStreamingDecoder::OnBytesReceived ( base::Vector< const uint8_t > bytes)
inlineoverridevirtual

Implements v8::internal::wasm::StreamingDecoder.

Definition at line 30 of file sync-streaming-decoder.cc.

Member Data Documentation

◆ api_method_name_for_errors_

const char* v8::internal::wasm::SyncStreamingDecoder::api_method_name_for_errors_
private

Definition at line 96 of file sync-streaming-decoder.cc.

◆ buffer_

std::vector<std::vector<uint8_t> > v8::internal::wasm::SyncStreamingDecoder::buffer_
private

Definition at line 99 of file sync-streaming-decoder.cc.

◆ buffer_size_

size_t v8::internal::wasm::SyncStreamingDecoder::buffer_size_ = 0
private

Definition at line 100 of file sync-streaming-decoder.cc.

◆ compile_imports_

CompileTimeImports v8::internal::wasm::SyncStreamingDecoder::compile_imports_
private

Definition at line 94 of file sync-streaming-decoder.cc.

◆ context_

IndirectHandle<Context> v8::internal::wasm::SyncStreamingDecoder::context_
private

Definition at line 95 of file sync-streaming-decoder.cc.

◆ enabled_

const WasmEnabledFeatures v8::internal::wasm::SyncStreamingDecoder::enabled_
private

Definition at line 93 of file sync-streaming-decoder.cc.

◆ isolate_

Isolate* v8::internal::wasm::SyncStreamingDecoder::isolate_
private

Definition at line 92 of file sync-streaming-decoder.cc.

◆ resolver_

std::shared_ptr<CompilationResultResolver> v8::internal::wasm::SyncStreamingDecoder::resolver_
private

Definition at line 97 of file sync-streaming-decoder.cc.


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