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

Public Member Functions

 NativeModuleDeserializer (NativeModule *)
 
 NativeModuleDeserializer (const NativeModuleDeserializer &)=delete
 
NativeModuleDeserializeroperator= (const NativeModuleDeserializer &)=delete
 
bool Read (Reader *reader)
 
base::Vector< const int > lazy_functions ()
 
base::Vector< const int > eager_functions ()
 

Private Member Functions

void ReadHeader (Reader *reader)
 
DeserializationUnit ReadCode (int fn_index, Reader *reader)
 
void ReadTieringBudget (Reader *reader)
 
void CopyAndRelocate (const DeserializationUnit &unit)
 
void Publish (std::vector< DeserializationUnit > batch)
 

Private Attributes

NativeModule *const native_module_
 
size_t remaining_code_size_ = 0
 
bool all_functions_validated_ = false
 
CompileTimeImports compile_imports_
 
base::Vector< uint8_t > current_code_space_
 
NativeModule::JumpTablesRef current_jump_tables_
 
std::vector< int > lazy_functions_
 
std::vector< int > eager_functions_
 

Friends

class DeserializeCodeTask
 

Detailed Description

Definition at line 696 of file wasm-serialization.cc.

Constructor & Destructor Documentation

◆ NativeModuleDeserializer() [1/2]

v8::internal::wasm::NativeModuleDeserializer::NativeModuleDeserializer ( NativeModule * native_module)
explicit

Definition at line 797 of file wasm-serialization.cc.

◆ NativeModuleDeserializer() [2/2]

v8::internal::wasm::NativeModuleDeserializer::NativeModuleDeserializer ( const NativeModuleDeserializer & )
delete

Member Function Documentation

◆ CopyAndRelocate()

void v8::internal::wasm::NativeModuleDeserializer::CopyAndRelocate ( const DeserializationUnit & unit)
private

Definition at line 964 of file wasm-serialization.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ eager_functions()

base::Vector< const int > v8::internal::wasm::NativeModuleDeserializer::eager_functions ( )
inline

Definition at line 708 of file wasm-serialization.cc.

Here is the caller graph for this function:

◆ lazy_functions()

base::Vector< const int > v8::internal::wasm::NativeModuleDeserializer::lazy_functions ( )
inline

Definition at line 704 of file wasm-serialization.cc.

Here is the caller graph for this function:

◆ operator=()

NativeModuleDeserializer & v8::internal::wasm::NativeModuleDeserializer::operator= ( const NativeModuleDeserializer & )
delete

◆ Publish()

void v8::internal::wasm::NativeModuleDeserializer::Publish ( std::vector< DeserializationUnit > batch)
private

Definition at line 1059 of file wasm-serialization.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Read()

bool v8::internal::wasm::NativeModuleDeserializer::Read ( Reader * reader)

Definition at line 800 of file wasm-serialization.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadCode()

DeserializationUnit v8::internal::wasm::NativeModuleDeserializer::ReadCode ( int fn_index,
Reader * reader )
private

Definition at line 895 of file wasm-serialization.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadHeader()

void v8::internal::wasm::NativeModuleDeserializer::ReadHeader ( Reader * reader)
private

Definition at line 866 of file wasm-serialization.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadTieringBudget()

void v8::internal::wasm::NativeModuleDeserializer::ReadTieringBudget ( Reader * reader)
private

Definition at line 1046 of file wasm-serialization.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ DeserializeCodeTask

friend class DeserializeCodeTask
friend

Definition at line 713 of file wasm-serialization.cc.

Member Data Documentation

◆ all_functions_validated_

bool v8::internal::wasm::NativeModuleDeserializer::all_functions_validated_ = false
private

Definition at line 728 of file wasm-serialization.cc.

◆ compile_imports_

CompileTimeImports v8::internal::wasm::NativeModuleDeserializer::compile_imports_
private

Definition at line 729 of file wasm-serialization.cc.

◆ current_code_space_

base::Vector<uint8_t> v8::internal::wasm::NativeModuleDeserializer::current_code_space_
private

Definition at line 730 of file wasm-serialization.cc.

◆ current_jump_tables_

NativeModule::JumpTablesRef v8::internal::wasm::NativeModuleDeserializer::current_jump_tables_
private

Definition at line 731 of file wasm-serialization.cc.

◆ eager_functions_

std::vector<int> v8::internal::wasm::NativeModuleDeserializer::eager_functions_
private

Definition at line 733 of file wasm-serialization.cc.

◆ lazy_functions_

std::vector<int> v8::internal::wasm::NativeModuleDeserializer::lazy_functions_
private

Definition at line 732 of file wasm-serialization.cc.

◆ native_module_

NativeModule* const v8::internal::wasm::NativeModuleDeserializer::native_module_
private

Definition at line 721 of file wasm-serialization.cc.

◆ remaining_code_size_

size_t v8::internal::wasm::NativeModuleDeserializer::remaining_code_size_ = 0
private

Definition at line 727 of file wasm-serialization.cc.


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