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

#include <wasm-interpreter.h>

Inheritance diagram for v8::internal::wasm::WasmEHData:
Collaboration diagram for v8::internal::wasm::WasmEHData:

Classes

struct  CatchBlock
 
struct  CatchHandler
 
struct  ExceptionPayloadSlotOffsets
 
struct  TryBlock
 

Public Types

typedef int BlockIndex
 

Public Member Functions

const TryBlockGetTryBlock (CodeOffset code_offset) const
 
const TryBlockGetParentTryBlock (const TryBlock *try_block) const
 
const TryBlockGetDelegateTryBlock (const TryBlock *try_block) const
 
size_t GetEndInstructionOffsetFor (BlockIndex catch_block_index) const
 
ExceptionPayloadSlotOffsets GetExceptionPayloadStartSlotOffsets (BlockIndex catch_block_index) const
 
void SetCaughtException (Isolate *isolate, BlockIndex catch_block_index, DirectHandle< Object > exception)
 
DirectHandle< ObjectGetCaughtException (Isolate *isolate, BlockIndex catch_block_index) const
 

Static Public Attributes

static const int kCatchAllTagIndex = -1
 
static const int kDelegateToCallerIndex = 0
 

Protected Member Functions

BlockIndex GetTryBranchOf (BlockIndex catch_block_index) const
 

Protected Attributes

std::unordered_map< CodeOffset, BlockIndexcode_trycatch_map_
 
std::unordered_map< BlockIndex, TryBlocktry_blocks_
 
std::unordered_map< BlockIndex, CatchBlockcatch_blocks_
 

Detailed Description

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

Member Typedef Documentation

◆ BlockIndex

Member Function Documentation

◆ GetCaughtException()

DirectHandle< Object > v8::internal::wasm::WasmEHData::GetCaughtException ( Isolate * isolate,
BlockIndex catch_block_index ) const
Here is the caller graph for this function:

◆ GetDelegateTryBlock()

const WasmEHData::TryBlock * v8::internal::wasm::WasmEHData::GetDelegateTryBlock ( const TryBlock * try_block) const

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

Here is the caller graph for this function:

◆ GetEndInstructionOffsetFor()

size_t v8::internal::wasm::WasmEHData::GetEndInstructionOffsetFor ( WasmEHData::BlockIndex catch_block_index) const

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

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

◆ GetExceptionPayloadStartSlotOffsets()

WasmEHData::ExceptionPayloadSlotOffsets v8::internal::wasm::WasmEHData::GetExceptionPayloadStartSlotOffsets ( WasmEHData::BlockIndex catch_block_index) const

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

Here is the caller graph for this function:

◆ GetParentTryBlock()

const WasmEHData::TryBlock * v8::internal::wasm::WasmEHData::GetParentTryBlock ( const TryBlock * try_block) const

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

Here is the caller graph for this function:

◆ GetTryBlock()

const WasmEHData::TryBlock * v8::internal::wasm::WasmEHData::GetTryBlock ( CodeOffset code_offset) const

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

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

◆ GetTryBranchOf()

WasmEHData::BlockIndex v8::internal::wasm::WasmEHData::GetTryBranchOf ( WasmEHData::BlockIndex catch_block_index) const
protected

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

Here is the caller graph for this function:

◆ SetCaughtException()

void v8::internal::wasm::WasmEHData::SetCaughtException ( Isolate * isolate,
BlockIndex catch_block_index,
DirectHandle< Object > exception )

Member Data Documentation

◆ catch_blocks_

std::unordered_map<BlockIndex, CatchBlock> v8::internal::wasm::WasmEHData::catch_blocks_
protected

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

◆ code_trycatch_map_

std::unordered_map<CodeOffset, BlockIndex> v8::internal::wasm::WasmEHData::code_trycatch_map_
protected

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

◆ kCatchAllTagIndex

const int v8::internal::wasm::WasmEHData::kCatchAllTagIndex = -1
static

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

◆ kDelegateToCallerIndex

const int v8::internal::wasm::WasmEHData::kDelegateToCallerIndex = 0
static

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

◆ try_blocks_

std::unordered_map<BlockIndex, TryBlock> v8::internal::wasm::WasmEHData::try_blocks_
protected

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


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