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

Public Member Functions

 NativeModuleSerializer (const NativeModule *, base::Vector< WasmCode *const >, base::Vector< WellKnownImport const >)
 
 NativeModuleSerializer (const NativeModuleSerializer &)=delete
 
NativeModuleSerializeroperator= (const NativeModuleSerializer &)=delete
 
size_t Measure () const
 
bool Write (Writer *writer)
 

Private Member Functions

size_t MeasureCode (const WasmCode *) const
 
void WriteHeader (Writer *, size_t total_code_size)
 
void WriteCode (const WasmCode *, Writer *, const NativeModule::CallIndirectTargetMap &)
 
void WriteTieringBudget (Writer *writer)
 
uint32_t CanonicalSigIdToModuleLocalTypeId (uint32_t canonical_sig_id)
 

Private Attributes

const NativeModule *const native_module_
 
const base::Vector< WasmCode *const > code_table_
 
const base::Vector< WellKnownImport const > import_statuses_
 
std::unordered_map< uint32_t, uint32_t > canonical_sig_ids_to_module_local_ids_
 
bool write_called_ = false
 
size_t total_written_code_ = 0
 
int num_turbofan_functions_ = 0
 

Detailed Description

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

Constructor & Destructor Documentation

◆ NativeModuleSerializer() [1/2]

v8::internal::wasm::NativeModuleSerializer::NativeModuleSerializer ( const NativeModule * module,
base::Vector< WasmCode *const > code_table,
base::Vector< WellKnownImport const > import_statuses )

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

◆ NativeModuleSerializer() [2/2]

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

Member Function Documentation

◆ CanonicalSigIdToModuleLocalTypeId()

uint32_t v8::internal::wasm::NativeModuleSerializer::CanonicalSigIdToModuleLocalTypeId ( uint32_t canonical_sig_id)
private

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

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

◆ Measure()

size_t v8::internal::wasm::NativeModuleSerializer::Measure ( ) const

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

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

◆ MeasureCode()

size_t v8::internal::wasm::NativeModuleSerializer::MeasureCode ( const WasmCode * code) const
private

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

Here is the caller graph for this function:

◆ operator=()

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

◆ Write()

bool v8::internal::wasm::NativeModuleSerializer::Write ( Writer * writer)

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

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

◆ WriteCode()

void v8::internal::wasm::NativeModuleSerializer::WriteCode ( const WasmCode * code,
Writer * writer,
const NativeModule::CallIndirectTargetMap & function_index_map )
private

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

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

◆ WriteHeader()

void v8::internal::wasm::NativeModuleSerializer::WriteHeader ( Writer * writer,
size_t total_code_size )
private

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

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

◆ WriteTieringBudget()

void v8::internal::wasm::NativeModuleSerializer::WriteTieringBudget ( Writer * writer)
private

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

Here is the caller graph for this function:

Member Data Documentation

◆ canonical_sig_ids_to_module_local_ids_

std::unordered_map<uint32_t, uint32_t> v8::internal::wasm::NativeModuleSerializer::canonical_sig_ids_to_module_local_ids_
private

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

◆ code_table_

const base::Vector<WasmCode* const> v8::internal::wasm::NativeModuleSerializer::code_table_
private

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

◆ import_statuses_

const base::Vector<WellKnownImport const> v8::internal::wasm::NativeModuleSerializer::import_statuses_
private

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

◆ native_module_

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

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

◆ num_turbofan_functions_

int v8::internal::wasm::NativeModuleSerializer::num_turbofan_functions_ = 0
private

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

◆ total_written_code_

size_t v8::internal::wasm::NativeModuleSerializer::total_written_code_ = 0
private

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

◆ write_called_

bool v8::internal::wasm::NativeModuleSerializer::write_called_ = false
private

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


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