![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
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 |
![]() | |
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 | |
Isolate * | isolate_ |
const WasmEnabledFeatures | enabled_ |
CompileTimeImports | compile_imports_ |
IndirectHandle< Context > | context_ |
const char * | api_method_name_for_errors_ |
std::shared_ptr< CompilationResultResolver > | resolver_ |
std::vector< std::vector< uint8_t > > | buffer_ |
size_t | buffer_size_ = 0 |
Additional Inherited Members | |
![]() | |
using | MoreFunctionsCanBeSerializedCallback |
![]() | |
static std::unique_ptr< StreamingDecoder > | CreateAsyncStreamingDecoder (std::unique_ptr< StreamingProcessor > processor) |
static std::unique_ptr< StreamingDecoder > | CreateSyncStreamingDecoder (Isolate *isolate, WasmEnabledFeatures enabled, CompileTimeImports compile_imports, DirectHandle< Context > context, const char *api_method_name_for_errors, std::shared_ptr< CompilationResultResolver > resolver) |
![]() | |
bool | deserializing () const |
![]() | |
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_ |
Definition at line 15 of file sync-streaming-decoder.cc.
|
inline |
|
inlineoverridevirtual |
Implements v8::internal::wasm::StreamingDecoder.
Definition at line 78 of file sync-streaming-decoder.cc.
|
inlineoverridevirtual |
Implements v8::internal::wasm::StreamingDecoder.
Definition at line 37 of file sync-streaming-decoder.cc.
|
inlineoverridevirtual |
Implements v8::internal::wasm::StreamingDecoder.
Definition at line 83 of file sync-streaming-decoder.cc.
|
inlineoverridevirtual |
Implements v8::internal::wasm::StreamingDecoder.
Definition at line 85 of file sync-streaming-decoder.cc.
|
inlineoverridevirtual |
Implements v8::internal::wasm::StreamingDecoder.
Definition at line 30 of file sync-streaming-decoder.cc.
|
private |
Definition at line 96 of file sync-streaming-decoder.cc.
|
private |
Definition at line 99 of file sync-streaming-decoder.cc.
|
private |
Definition at line 100 of file sync-streaming-decoder.cc.
|
private |
Definition at line 94 of file sync-streaming-decoder.cc.
|
private |
Definition at line 95 of file sync-streaming-decoder.cc.
|
private |
Definition at line 93 of file sync-streaming-decoder.cc.
|
private |
Definition at line 92 of file sync-streaming-decoder.cc.
|
private |
Definition at line 97 of file sync-streaming-decoder.cc.