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

Public Member Functions

 AsyncStreamingProcessor (AsyncCompileJob *job)
 
bool ProcessModuleHeader (base::Vector< const uint8_t > bytes) override
 
bool ProcessSection (SectionCode section_code, base::Vector< const uint8_t > bytes, uint32_t offset) override
 
bool ProcessCodeSectionHeader (int num_functions, uint32_t functions_mismatch_error_offset, std::shared_ptr< WireBytesStorage >, int code_section_start, int code_section_length) override
 
bool ProcessFunctionBody (base::Vector< const uint8_t > bytes, uint32_t offset) override
 
void OnFinishedChunk () override
 
void OnFinishedStream (base::OwnedVector< const uint8_t > bytes, bool after_error) override
 
void OnAbort () override
 
bool Deserialize (base::Vector< const uint8_t > wire_bytes, base::Vector< const uint8_t > module_bytes) override
 
- Public Member Functions inherited from v8::internal::wasm::StreamingProcessor
virtual ~StreamingProcessor ()=default
 

Private Member Functions

void CommitCompilationUnits ()
 

Private Attributes

ModuleDecoder decoder_
 
AsyncCompileJobjob_
 
std::unique_ptr< CompilationUnitBuilder > compilation_unit_builder_
 
int num_functions_ = 0
 
bool prefix_cache_hit_ = false
 
bool before_code_section_ = true
 
ValidateFunctionsStreamingJobData validate_functions_job_data_
 
std::unique_ptr< JobHandlevalidate_functions_job_handle_
 
base::Hasher prefix_hasher_
 

Detailed Description

Definition at line 2613 of file module-compiler.cc.

Constructor & Destructor Documentation

◆ AsyncStreamingProcessor()

v8::internal::wasm::AsyncStreamingProcessor::AsyncStreamingProcessor ( AsyncCompileJob * job)
explicit

Definition at line 3222 of file module-compiler.cc.

Member Function Documentation

◆ CommitCompilationUnits()

void v8::internal::wasm::AsyncStreamingProcessor::CommitCompilationUnits ( )
private

Definition at line 3371 of file module-compiler.cc.

Here is the caller graph for this function:

◆ Deserialize()

bool v8::internal::wasm::AsyncStreamingProcessor::Deserialize ( base::Vector< const uint8_t > wire_bytes,
base::Vector< const uint8_t > module_bytes )
overridevirtual

Implements v8::internal::wasm::StreamingProcessor.

Definition at line 3530 of file module-compiler.cc.

Here is the call graph for this function:

◆ OnAbort()

void v8::internal::wasm::AsyncStreamingProcessor::OnAbort ( )
overridevirtual

Implements v8::internal::wasm::StreamingProcessor.

Definition at line 3515 of file module-compiler.cc.

Here is the call graph for this function:

◆ OnFinishedChunk()

void v8::internal::wasm::AsyncStreamingProcessor::OnFinishedChunk ( )
overridevirtual

Implements v8::internal::wasm::StreamingProcessor.

Definition at line 3376 of file module-compiler.cc.

Here is the call graph for this function:

◆ OnFinishedStream()

void v8::internal::wasm::AsyncStreamingProcessor::OnFinishedStream ( base::OwnedVector< const uint8_t > bytes,
bool after_error )
overridevirtual

Implements v8::internal::wasm::StreamingProcessor.

Definition at line 3382 of file module-compiler.cc.

Here is the call graph for this function:

◆ ProcessCodeSectionHeader()

bool v8::internal::wasm::AsyncStreamingProcessor::ProcessCodeSectionHeader ( int num_functions,
uint32_t functions_mismatch_error_offset,
std::shared_ptr< WireBytesStorage > wire_bytes_storage,
int code_section_start,
int code_section_length )
overridevirtual

Implements v8::internal::wasm::StreamingProcessor.

Definition at line 3270 of file module-compiler.cc.

Here is the call graph for this function:

◆ ProcessFunctionBody()

bool v8::internal::wasm::AsyncStreamingProcessor::ProcessFunctionBody ( base::Vector< const uint8_t > bytes,
uint32_t offset )
overridevirtual

Implements v8::internal::wasm::StreamingProcessor.

Definition at line 3322 of file module-compiler.cc.

Here is the call graph for this function:

◆ ProcessModuleHeader()

bool v8::internal::wasm::AsyncStreamingProcessor::ProcessModuleHeader ( base::Vector< const uint8_t > bytes)
overridevirtual

Implements v8::internal::wasm::StreamingProcessor.

Definition at line 3228 of file module-compiler.cc.

Here is the call graph for this function:

◆ ProcessSection()

bool v8::internal::wasm::AsyncStreamingProcessor::ProcessSection ( SectionCode section_code,
base::Vector< const uint8_t > bytes,
uint32_t offset )
overridevirtual

Implements v8::internal::wasm::StreamingProcessor.

Definition at line 3239 of file module-compiler.cc.

Here is the call graph for this function:

Member Data Documentation

◆ before_code_section_

bool v8::internal::wasm::AsyncStreamingProcessor::before_code_section_ = true
private

Definition at line 2650 of file module-compiler.cc.

◆ compilation_unit_builder_

std::unique_ptr<CompilationUnitBuilder> v8::internal::wasm::AsyncStreamingProcessor::compilation_unit_builder_
private

Definition at line 2647 of file module-compiler.cc.

◆ decoder_

ModuleDecoder v8::internal::wasm::AsyncStreamingProcessor::decoder_
private

Definition at line 2645 of file module-compiler.cc.

◆ job_

AsyncCompileJob* v8::internal::wasm::AsyncStreamingProcessor::job_
private

Definition at line 2646 of file module-compiler.cc.

◆ num_functions_

int v8::internal::wasm::AsyncStreamingProcessor::num_functions_ = 0
private

Definition at line 2648 of file module-compiler.cc.

◆ prefix_cache_hit_

bool v8::internal::wasm::AsyncStreamingProcessor::prefix_cache_hit_ = false
private

Definition at line 2649 of file module-compiler.cc.

◆ prefix_hasher_

base::Hasher v8::internal::wasm::AsyncStreamingProcessor::prefix_hasher_
private

Definition at line 2657 of file module-compiler.cc.

◆ validate_functions_job_data_

ValidateFunctionsStreamingJobData v8::internal::wasm::AsyncStreamingProcessor::validate_functions_job_data_
private

Definition at line 2651 of file module-compiler.cc.

◆ validate_functions_job_handle_

std::unique_ptr<JobHandle> v8::internal::wasm::AsyncStreamingProcessor::validate_functions_job_handle_
private

Definition at line 2652 of file module-compiler.cc.


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