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

#include <wasm-module-debug.h>

Collaboration diagram for v8::internal::wasm::gdb_server::WasmModuleDebug:

Public Member Functions

 WasmModuleDebug (v8::Isolate *isolate, Local< debug::WasmScript > script)
 
std::string GetModuleName () const
 
i::IsolateGetIsolate () const
 
uint32_t GetWasmMemory (Isolate *isolate, uint32_t offset, uint8_t *buffer, uint32_t size)
 
uint32_t GetWasmData (Isolate *isolate, uint32_t offset, uint8_t *buffer, uint32_t size)
 
uint32_t GetWasmModuleBytes (wasm_addr_t wasm_addr, uint8_t *buffer, uint32_t size)
 
bool AddBreakpoint (uint32_t offset, int *breakpoint_id)
 
void RemoveBreakpoint (uint32_t offset, int breakpoint_id)
 
void PrepareStep ()
 

Static Public Member Functions

static bool GetWasmGlobal (Isolate *isolate, uint32_t frame_index, uint32_t index, uint8_t *buffer, uint32_t buffer_size, uint32_t *size)
 
static bool GetWasmLocal (Isolate *isolate, uint32_t frame_index, uint32_t index, uint8_t *buffer, uint32_t buffer_size, uint32_t *size)
 
static bool GetWasmStackValue (Isolate *isolate, uint32_t frame_index, uint32_t index, uint8_t *buffer, uint32_t buffer_size, uint32_t *size)
 
static std::vector< wasm_addr_tGetCallStack (uint32_t debug_context_id, Isolate *isolate)
 

Private Member Functions

Handle< WasmInstanceObjectGetFirstWasmInstance ()
 

Static Private Member Functions

static Handle< WasmInstanceObjectGetWasmInstance (Isolate *isolate, uint32_t frame_index)
 
static std::vector< FrameSummaryFindWasmFrame (DebuggableStackFrameIterator *frame_it, uint32_t *frame_index)
 
static bool GetWasmValue (const wasm::WasmValue &wasm_value, uint8_t *buffer, uint32_t buffer_size, uint32_t *size)
 

Private Attributes

v8::Isolateisolate_
 
Global< debug::WasmScript > wasm_script_
 

Detailed Description

Definition at line 23 of file wasm-module-debug.h.

Constructor & Destructor Documentation

◆ WasmModuleDebug()

v8::internal::wasm::gdb_server::WasmModuleDebug::WasmModuleDebug ( v8::Isolate * isolate,
Local< debug::WasmScript > script )

Definition at line 21 of file wasm-module-debug.cc.

Here is the call graph for this function:

Member Function Documentation

◆ AddBreakpoint()

bool v8::internal::wasm::gdb_server::WasmModuleDebug::AddBreakpoint ( uint32_t offset,
int * breakpoint_id )

Definition at line 359 of file wasm-module-debug.cc.

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

◆ FindWasmFrame()

std::vector< FrameSummary > v8::internal::wasm::gdb_server::WasmModuleDebug::FindWasmFrame ( DebuggableStackFrameIterator * frame_it,
uint32_t * frame_index )
staticprivate

Definition at line 148 of file wasm-module-debug.cc.

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

◆ GetCallStack()

std::vector< wasm_addr_t > v8::internal::wasm::gdb_server::WasmModuleDebug::GetCallStack ( uint32_t debug_context_id,
Isolate * isolate )
static

Definition at line 87 of file wasm-module-debug.cc.

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

◆ GetFirstWasmInstance()

Handle< WasmInstanceObject > v8::internal::wasm::gdb_server::WasmModuleDebug::GetFirstWasmInstance ( )
private

Definition at line 39 of file wasm-module-debug.cc.

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

◆ GetIsolate()

i::Isolate * v8::internal::wasm::gdb_server::WasmModuleDebug::GetIsolate ( ) const
inline

Definition at line 28 of file wasm-module-debug.h.

Here is the caller graph for this function:

◆ GetModuleName()

std::string v8::internal::wasm::gdb_server::WasmModuleDebug::GetModuleName ( ) const

Definition at line 29 of file wasm-module-debug.cc.

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

◆ GetWasmData()

uint32_t v8::internal::wasm::gdb_server::WasmModuleDebug::GetWasmData ( Isolate * isolate,
uint32_t offset,
uint8_t * buffer,
uint32_t size )

Definition at line 311 of file wasm-module-debug.cc.

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

◆ GetWasmGlobal()

bool v8::internal::wasm::gdb_server::WasmModuleDebug::GetWasmGlobal ( Isolate * isolate,
uint32_t frame_index,
uint32_t index,
uint8_t * buffer,
uint32_t buffer_size,
uint32_t * size )
static

Definition at line 207 of file wasm-module-debug.cc.

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

◆ GetWasmInstance()

Handle< WasmInstanceObject > v8::internal::wasm::gdb_server::WasmModuleDebug::GetWasmInstance ( Isolate * isolate,
uint32_t frame_index )
staticprivate

Definition at line 192 of file wasm-module-debug.cc.

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

◆ GetWasmLocal()

bool v8::internal::wasm::gdb_server::WasmModuleDebug::GetWasmLocal ( Isolate * isolate,
uint32_t frame_index,
uint32_t index,
uint8_t * buffer,
uint32_t buffer_size,
uint32_t * size )
static

Definition at line 226 of file wasm-module-debug.cc.

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

◆ GetWasmMemory()

uint32_t v8::internal::wasm::gdb_server::WasmModuleDebug::GetWasmMemory ( Isolate * isolate,
uint32_t offset,
uint8_t * buffer,
uint32_t size )

Definition at line 291 of file wasm-module-debug.cc.

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

◆ GetWasmModuleBytes()

uint32_t v8::internal::wasm::gdb_server::WasmModuleDebug::GetWasmModuleBytes ( wasm_addr_t wasm_addr,
uint8_t * buffer,
uint32_t size )

Definition at line 339 of file wasm-module-debug.cc.

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

◆ GetWasmStackValue()

bool v8::internal::wasm::gdb_server::WasmModuleDebug::GetWasmStackValue ( Isolate * isolate,
uint32_t frame_index,
uint32_t index,
uint8_t * buffer,
uint32_t buffer_size,
uint32_t * size )
static

Definition at line 259 of file wasm-module-debug.cc.

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

◆ GetWasmValue()

bool v8::internal::wasm::gdb_server::WasmModuleDebug::GetWasmValue ( const wasm::WasmValue & wasm_value,
uint8_t * buffer,
uint32_t buffer_size,
uint32_t * size )
staticprivate

Definition at line 391 of file wasm-module-debug.cc.

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

◆ PrepareStep()

void v8::internal::wasm::gdb_server::WasmModuleDebug::PrepareStep ( )

Definition at line 374 of file wasm-module-debug.cc.

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

◆ RemoveBreakpoint()

void v8::internal::wasm::gdb_server::WasmModuleDebug::RemoveBreakpoint ( uint32_t offset,
int breakpoint_id )

Definition at line 368 of file wasm-module-debug.cc.

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

Member Data Documentation

◆ isolate_

v8::Isolate* v8::internal::wasm::gdb_server::WasmModuleDebug::isolate_
private

Definition at line 102 of file wasm-module-debug.h.

◆ wasm_script_

Global<debug::WasmScript> v8::internal::wasm::gdb_server::WasmModuleDebug::wasm_script_
private

Definition at line 103 of file wasm-module-debug.h.


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