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

#include <wasm-interpreter.h>

Collaboration diagram for v8::internal::wasm::WasmInterpreterThread::Activation:

Public Member Functions

 Activation (WasmInterpreterThread *thread, WasmInterpreterRuntime *wasm_runtime, Address frame_pointer, uint8_t *start_fp, const FrameState &callee_frame_state)
 
WasmInterpreterThreadthread () const
 
IsolateGetIsolate () const
 
Address GetFramePointer () const
 
void SetCurrentFrame (const FrameState &frame_state)
 
const FrameStateGetCurrentFrame () const
 
void SetCurrentActivationFrame (uint8_t *current_fp, uint32_t current_frame_size, uint32_t current_stack_size, uint32_t current_ref_stack_fp, uint32_t current_ref_stack_frame_size)
 
uint8_t * NextFrameAddress () const
 
uint32_t NextRefStackOffset () const
 
void SetTrapped (int trap_function_index, int trap_pc)
 
std::vector< WasmInterpreterStackEntryGetStackTrace ()
 
int GetFunctionIndex (int index) const
 
const WasmInterpreterRuntimeGetWasmRuntime () const
 

Private Member Functions

std::vector< WasmInterpreterStackEntryCaptureStackTrace (const TrapStatus *trap_status=nullptr) const
 

Private Attributes

WasmInterpreterThreadthread_
 
WasmInterpreterRuntimewasm_runtime_
 
Address frame_pointer_
 
uint32_t current_frame_size_
 
uint32_t current_ref_stack_fp_
 
uint32_t current_ref_stack_frame_size_
 
uint8_t * current_fp_
 
FrameState current_frame_state_
 
std::unique_ptr< std::vector< WasmInterpreterStackEntry > > trap_stack_trace_
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Activation()

v8::internal::wasm::WasmInterpreterThread::Activation::Activation ( WasmInterpreterThread * thread,
WasmInterpreterRuntime * wasm_runtime,
Address frame_pointer,
uint8_t * start_fp,
const FrameState & callee_frame_state )
inline

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

Member Function Documentation

◆ CaptureStackTrace()

std::vector< WasmInterpreterStackEntry > v8::internal::wasm::WasmInterpreterThread::Activation::CaptureStackTrace ( const TrapStatus * trap_status = nullptr) const
private

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

◆ GetCurrentFrame()

const FrameState & v8::internal::wasm::WasmInterpreterThread::Activation::GetCurrentFrame ( ) const
inline

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

◆ GetFramePointer()

Address v8::internal::wasm::WasmInterpreterThread::Activation::GetFramePointer ( ) const
inline

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

◆ GetFunctionIndex()

int v8::internal::wasm::WasmInterpreterThread::Activation::GetFunctionIndex ( int index) const

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

Here is the caller graph for this function:

◆ GetIsolate()

Isolate * v8::internal::wasm::WasmInterpreterThread::Activation::GetIsolate ( ) const
inline

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

◆ GetStackTrace()

std::vector< WasmInterpreterStackEntry > v8::internal::wasm::WasmInterpreterThread::Activation::GetStackTrace ( )
inline

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

Here is the caller graph for this function:

◆ GetWasmRuntime()

const WasmInterpreterRuntime * v8::internal::wasm::WasmInterpreterThread::Activation::GetWasmRuntime ( ) const
inline

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

◆ NextFrameAddress()

uint8_t * v8::internal::wasm::WasmInterpreterThread::Activation::NextFrameAddress ( ) const
inline

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

◆ NextRefStackOffset()

uint32_t v8::internal::wasm::WasmInterpreterThread::Activation::NextRefStackOffset ( ) const
inline

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

◆ SetCurrentActivationFrame()

void v8::internal::wasm::WasmInterpreterThread::Activation::SetCurrentActivationFrame ( uint8_t * current_fp,
uint32_t current_frame_size,
uint32_t current_stack_size,
uint32_t current_ref_stack_fp,
uint32_t current_ref_stack_frame_size )
inline

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

◆ SetCurrentFrame()

void v8::internal::wasm::WasmInterpreterThread::Activation::SetCurrentFrame ( const FrameState & frame_state)
inline

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

◆ SetTrapped()

void v8::internal::wasm::WasmInterpreterThread::Activation::SetTrapped ( int trap_function_index,
int trap_pc )
inline

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

◆ thread()

WasmInterpreterThread * v8::internal::wasm::WasmInterpreterThread::Activation::thread ( ) const
inline

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

Member Data Documentation

◆ current_fp_

uint8_t* v8::internal::wasm::WasmInterpreterThread::Activation::current_fp_
private

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

◆ current_frame_size_

uint32_t v8::internal::wasm::WasmInterpreterThread::Activation::current_frame_size_
private

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

◆ current_frame_state_

FrameState v8::internal::wasm::WasmInterpreterThread::Activation::current_frame_state_
private

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

◆ current_ref_stack_fp_

uint32_t v8::internal::wasm::WasmInterpreterThread::Activation::current_ref_stack_fp_
private

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

◆ current_ref_stack_frame_size_

uint32_t v8::internal::wasm::WasmInterpreterThread::Activation::current_ref_stack_frame_size_
private

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

◆ frame_pointer_

Address v8::internal::wasm::WasmInterpreterThread::Activation::frame_pointer_
private

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

◆ thread_

WasmInterpreterThread* v8::internal::wasm::WasmInterpreterThread::Activation::thread_
private

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

◆ trap_stack_trace_

std::unique_ptr<std::vector<WasmInterpreterStackEntry> > v8::internal::wasm::WasmInterpreterThread::Activation::trap_stack_trace_
private

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

◆ wasm_runtime_

WasmInterpreterRuntime* v8::internal::wasm::WasmInterpreterThread::Activation::wasm_runtime_
private

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


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