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

#include <wasm-interpreter.h>

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

Classes

class  CodeMap
 

Public Member Functions

 WasmInterpreter (Isolate *isolate, const WasmModule *module, const ModuleWireBytes &wire_bytes, DirectHandle< WasmInstanceObject > instance)
 
void BeginExecution (WasmInterpreterThread *thread, uint32_t function_index, Address frame_pointer, uint8_t *interpreter_fp, uint32_t ref_stack_offset, const std::vector< WasmValue > &argument_values)
 
void BeginExecution (WasmInterpreterThread *thread, uint32_t function_index, Address frame_pointer, uint8_t *interpreter_fp)
 
WasmInterpreterThread::State ContinueExecution (WasmInterpreterThread *thread, bool called_from_js)
 
WasmValue GetReturnValue (int index) const
 
std::vector< WasmInterpreterStackEntryGetInterpretedStack (Address frame_pointer)
 
int GetFunctionIndex (Address frame_pointer, int index) const
 
void SetTrapFunctionIndex (int32_t func_index)
 
WasmInterpreterRuntimeGetWasmRuntime ()
 

Static Public Member Functions

static void InitializeOncePerProcess ()
 
static void GlobalTearDown ()
 
static void NotifyIsolateDisposal (Isolate *isolate)
 

Private Member Functions

 WasmInterpreter (const WasmInterpreter &)=delete
 
WasmInterpreteroperator= (const WasmInterpreter &)=delete
 

Private Attributes

Zone zone_
 
IndirectHandle< WasmInstanceObjectinstance_object_
 
const ZoneVector< uint8_t > module_bytes_
 
CodeMap codemap_
 
std::shared_ptr< WasmInterpreterRuntimewasm_runtime_
 

Detailed Description

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

Constructor & Destructor Documentation

◆ WasmInterpreter() [1/2]

v8::internal::wasm::WasmInterpreter::WasmInterpreter ( Isolate * isolate,
const WasmModule * module,
const ModuleWireBytes & wire_bytes,
DirectHandle< WasmInstanceObject > instance )

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

Here is the call graph for this function:

◆ WasmInterpreter() [2/2]

v8::internal::wasm::WasmInterpreter::WasmInterpreter ( const WasmInterpreter & )
privatedelete

Member Function Documentation

◆ BeginExecution() [1/2]

void v8::internal::wasm::WasmInterpreter::BeginExecution ( WasmInterpreterThread * thread,
uint32_t function_index,
Address frame_pointer,
uint8_t * interpreter_fp )
inline

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

Here is the call graph for this function:

◆ BeginExecution() [2/2]

void v8::internal::wasm::WasmInterpreter::BeginExecution ( WasmInterpreterThread * thread,
uint32_t function_index,
Address frame_pointer,
uint8_t * interpreter_fp,
uint32_t ref_stack_offset,
const std::vector< WasmValue > & argument_values )
inline

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

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

◆ ContinueExecution()

WasmInterpreterThread::State v8::internal::wasm::WasmInterpreter::ContinueExecution ( WasmInterpreterThread * thread,
bool called_from_js )

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

Here is the caller graph for this function:

◆ GetFunctionIndex()

int v8::internal::wasm::WasmInterpreter::GetFunctionIndex ( Address frame_pointer,
int index ) const
inline

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

Here is the caller graph for this function:

◆ GetInterpretedStack()

std::vector< WasmInterpreterStackEntry > v8::internal::wasm::WasmInterpreter::GetInterpretedStack ( Address frame_pointer)
inline

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

Here is the caller graph for this function:

◆ GetReturnValue()

WasmValue v8::internal::wasm::WasmInterpreter::GetReturnValue ( int index) const
inline

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

Here is the caller graph for this function:

◆ GetWasmRuntime()

WasmInterpreterRuntime * v8::internal::wasm::WasmInterpreter::GetWasmRuntime ( )
inline

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

Here is the caller graph for this function:

◆ GlobalTearDown()

void v8::internal::wasm::WasmInterpreter::GlobalTearDown ( )
static

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

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

◆ InitializeOncePerProcess()

void v8::internal::wasm::WasmInterpreter::InitializeOncePerProcess ( )
static

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

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

◆ NotifyIsolateDisposal()

void v8::internal::wasm::WasmInterpreter::NotifyIsolateDisposal ( Isolate * isolate)
static

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

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

◆ operator=()

WasmInterpreter & v8::internal::wasm::WasmInterpreter::operator= ( const WasmInterpreter & )
privatedelete

◆ SetTrapFunctionIndex()

void v8::internal::wasm::WasmInterpreter::SetTrapFunctionIndex ( int32_t func_index)
inline

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

Here is the caller graph for this function:

Member Data Documentation

◆ codemap_

CodeMap v8::internal::wasm::WasmInterpreter::codemap_
private

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

◆ instance_object_

IndirectHandle<WasmInstanceObject> v8::internal::wasm::WasmInterpreter::instance_object_
private

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

◆ module_bytes_

const ZoneVector<uint8_t> v8::internal::wasm::WasmInterpreter::module_bytes_
private

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

◆ wasm_runtime_

std::shared_ptr<WasmInterpreterRuntime> v8::internal::wasm::WasmInterpreter::wasm_runtime_
private

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

◆ zone_

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

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


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