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

#include <wasm-interpreter.h>

Collaboration diagram for v8::internal::wasm::WasmInterpreter::CodeMap:

Public Member Functions

 CodeMap (Isolate *isolate, const WasmModule *module, const uint8_t *module_start, Zone *zone)
 
const WasmModulemodule () const
 
InterpreterCodeGetCode (uint32_t function_index)
 
WasmBytecodeGetFunctionBytecode (uint32_t func_index)
 
void AddFunction (const WasmFunction *function, const uint8_t *code_start, const uint8_t *code_end)
 
size_t TotalBytecodeSize ()
 

Private Member Functions

void Preprocess (uint32_t function_index)
 

Private Attributes

Zonezone_
 
Isolateisolate_
 
const WasmModulemodule_
 
ZoneVector< InterpreterCodeinterpreter_code_
 
base::TimeDelta bytecode_generation_time_
 
std::atomic< size_tgenerated_code_size_
 

Detailed Description

Definition at line 588 of file wasm-interpreter.h.

Constructor & Destructor Documentation

◆ CodeMap()

v8::internal::wasm::WasmInterpreter::CodeMap::CodeMap ( Isolate * isolate,
const WasmModule * module,
const uint8_t * module_start,
Zone * zone )

Definition at line 92 of file wasm-interpreter.cc.

Here is the call graph for this function:

Member Function Documentation

◆ AddFunction()

void v8::internal::wasm::WasmInterpreter::CodeMap::AddFunction ( const WasmFunction * function,
const uint8_t * code_start,
const uint8_t * code_end )
inline

Definition at line 40 of file wasm-interpreter-inl.h.

◆ GetCode()

InterpreterCode * v8::internal::wasm::WasmInterpreter::CodeMap::GetCode ( uint32_t function_index)
inline

Definition at line 21 of file wasm-interpreter-inl.h.

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

◆ GetFunctionBytecode()

WasmBytecode * v8::internal::wasm::WasmInterpreter::CodeMap::GetFunctionBytecode ( uint32_t func_index)
inline

Definition at line 31 of file wasm-interpreter-inl.h.

Here is the caller graph for this function:

◆ module()

const WasmModule * v8::internal::wasm::WasmInterpreter::CodeMap::module ( ) const
inline

Definition at line 593 of file wasm-interpreter.h.

Here is the caller graph for this function:

◆ Preprocess()

void v8::internal::wasm::WasmInterpreter::CodeMap::Preprocess ( uint32_t function_index)
private

Definition at line 113 of file wasm-interpreter.cc.

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

◆ TotalBytecodeSize()

size_t v8::internal::wasm::WasmInterpreter::CodeMap::TotalBytecodeSize ( )
inline

Definition at line 602 of file wasm-interpreter.h.

Here is the caller graph for this function:

Member Data Documentation

◆ bytecode_generation_time_

base::TimeDelta v8::internal::wasm::WasmInterpreter::CodeMap::bytecode_generation_time_
private

Definition at line 614 of file wasm-interpreter.h.

◆ generated_code_size_

std::atomic<size_t> v8::internal::wasm::WasmInterpreter::CodeMap::generated_code_size_
private

Definition at line 615 of file wasm-interpreter.h.

◆ interpreter_code_

ZoneVector<InterpreterCode> v8::internal::wasm::WasmInterpreter::CodeMap::interpreter_code_
private

Definition at line 612 of file wasm-interpreter.h.

◆ isolate_

Isolate* v8::internal::wasm::WasmInterpreter::CodeMap::isolate_
private

Definition at line 610 of file wasm-interpreter.h.

◆ module_

const WasmModule* v8::internal::wasm::WasmInterpreter::CodeMap::module_
private

Definition at line 611 of file wasm-interpreter.h.

◆ zone_

Zone* v8::internal::wasm::WasmInterpreter::CodeMap::zone_
private

Definition at line 609 of file wasm-interpreter.h.


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