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

#include <wasm-interpreter-runtime.h>

Collaboration diagram for v8::internal::wasm::InterpreterHandle:

Public Member Functions

 InterpreterHandle (Isolate *isolate, DirectHandle< Tuple2 > interpreter_object)
 
WasmInterpreterinterpreter ()
 
const WasmModulemodule () const
 
bool Execute (WasmInterpreterThread *thread, Address frame_pointer, uint32_t func_index, const std::vector< WasmValue > &argument_values, std::vector< WasmValue > &return_values)
 
bool Execute (WasmInterpreterThread *thread, Address frame_pointer, uint32_t func_index, uint8_t *interpreter_fp)
 
WasmInterpreterThread::State ContinueExecution (WasmInterpreterThread *thread, bool called_from_js)
 
DirectHandle< WasmInstanceObjectGetInstanceObject ()
 
std::vector< WasmInterpreterStackEntryGetInterpretedStack (Address frame_pointer)
 
int GetFunctionIndex (Address frame_pointer, int index) const
 
void SetTrapFunctionIndex (int32_t func_index)
 

Static Public Attributes

static constexpr ExternalPointerTag kManagedTag = kGenericManagedTag
 

Private Member Functions

 InterpreterHandle (const InterpreterHandle &)=delete
 
InterpreterHandleoperator= (const InterpreterHandle &)=delete
 
WasmInterpreterThread::State RunExecutionLoop (WasmInterpreterThread *thread, bool called_from_js)
 

Static Private Member Functions

static ModuleWireBytes GetBytes (Tagged< Tuple2 > interpreter_object)
 

Private Attributes

Isolateisolate_
 
const WasmModulemodule_
 
WasmInterpreter interpreter_
 

Detailed Description

Definition at line 411 of file wasm-interpreter-runtime.h.

Constructor & Destructor Documentation

◆ InterpreterHandle() [1/2]

v8::internal::wasm::InterpreterHandle::InterpreterHandle ( Isolate * isolate,
DirectHandle< Tuple2 > interpreter_object )

Definition at line 2844 of file wasm-interpreter-runtime.cc.

◆ InterpreterHandle() [2/2]

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

Member Function Documentation

◆ ContinueExecution()

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

Definition at line 202 of file wasm-interpreter-runtime-inl.h.

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

◆ Execute() [1/2]

V8_EXPORT_PRIVATE bool v8::internal::wasm::InterpreterHandle::Execute ( WasmInterpreterThread * thread,
Address frame_pointer,
uint32_t func_index,
const std::vector< WasmValue > & argument_values,
std::vector< WasmValue > & return_values )

Definition at line 2901 of file wasm-interpreter-runtime.cc.

Here is the call graph for this function:

◆ Execute() [2/2]

bool v8::internal::wasm::InterpreterHandle::Execute ( WasmInterpreterThread * thread,
Address frame_pointer,
uint32_t func_index,
uint8_t * interpreter_fp )

Definition at line 2940 of file wasm-interpreter-runtime.cc.

Here is the call graph for this function:

◆ GetBytes()

ModuleWireBytes v8::internal::wasm::InterpreterHandle::GetBytes ( Tagged< Tuple2 > interpreter_object)
staticprivate

Definition at line 2837 of file wasm-interpreter-runtime.cc.

Here is the call graph for this function:

◆ GetFunctionIndex()

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

Definition at line 2973 of file wasm-interpreter-runtime.cc.

Here is the call graph for this function:

◆ GetInstanceObject()

DirectHandle< WasmInstanceObject > v8::internal::wasm::InterpreterHandle::GetInstanceObject ( )

Definition at line 2952 of file wasm-interpreter-runtime.cc.

Here is the call graph for this function:

◆ GetInterpretedStack()

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

Definition at line 2968 of file wasm-interpreter-runtime.cc.

Here is the call graph for this function:

◆ interpreter()

WasmInterpreter * v8::internal::wasm::InterpreterHandle::interpreter ( )
inline

Definition at line 417 of file wasm-interpreter-runtime.h.

Here is the caller graph for this function:

◆ module()

const WasmModule * v8::internal::wasm::InterpreterHandle::module ( ) const
inline

Definition at line 418 of file wasm-interpreter-runtime.h.

Here is the caller graph for this function:

◆ operator=()

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

◆ RunExecutionLoop()

WasmInterpreterThread::State v8::internal::wasm::InterpreterHandle::RunExecutionLoop ( WasmInterpreterThread * thread,
bool called_from_js )
inlineprivate

Definition at line 2855 of file wasm-interpreter-runtime.cc.

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

◆ SetTrapFunctionIndex()

void v8::internal::wasm::InterpreterHandle::SetTrapFunctionIndex ( int32_t func_index)

Definition at line 2978 of file wasm-interpreter-runtime.cc.

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

Member Data Documentation

◆ interpreter_

WasmInterpreter v8::internal::wasm::InterpreterHandle::interpreter_
private

Definition at line 453 of file wasm-interpreter-runtime.h.

◆ isolate_

Isolate* v8::internal::wasm::InterpreterHandle::isolate_
private

Definition at line 451 of file wasm-interpreter-runtime.h.

◆ kManagedTag

ExternalPointerTag v8::internal::wasm::InterpreterHandle::kManagedTag = kGenericManagedTag
staticconstexpr

Definition at line 413 of file wasm-interpreter-runtime.h.

◆ module_

const WasmModule* v8::internal::wasm::InterpreterHandle::module_
private

Definition at line 452 of file wasm-interpreter-runtime.h.


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