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

#include <wasm-interpreter.h>

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

Public Member Functions

 WasmEHDataGenerator ()
 
void AddTryBlock (BlockIndex try_block_index, BlockIndex parent_or_matching_try_block_index, BlockIndex ancestor_try_block_index)
 
void AddCatchBlock (BlockIndex catch_block_index, int tag_index, uint32_t first_param_slot_offset, uint32_t first_param_ref_stack_index, CodeOffset code_offset)
 
void AddDelegatedBlock (BlockIndex delegated_try_block_index)
 
BlockIndex EndTryCatchBlocks (BlockIndex block_index, CodeOffset code_offset)
 
void RecordPotentialExceptionThrowingInstruction (WasmOpcode opcode, CodeOffset code_offset)
 
BlockIndex GetCurrentTryBlockIndex () const
 
- Public Member Functions inherited from v8::internal::wasm::WasmEHData
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
 

Private Attributes

BlockIndex current_try_block_index_
 

Additional Inherited Members

- Public Types inherited from v8::internal::wasm::WasmEHData
typedef int BlockIndex
 
- Static Public Attributes inherited from v8::internal::wasm::WasmEHData
static const int kCatchAllTagIndex = -1
 
static const int kDelegateToCallerIndex = 0
 
- Protected Member Functions inherited from v8::internal::wasm::WasmEHData
BlockIndex GetTryBranchOf (BlockIndex catch_block_index) const
 
- Protected Attributes inherited from v8::internal::wasm::WasmEHData
std::unordered_map< CodeOffset, BlockIndexcode_trycatch_map_
 
std::unordered_map< BlockIndex, TryBlocktry_blocks_
 
std::unordered_map< BlockIndex, CatchBlockcatch_blocks_
 

Detailed Description

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

Constructor & Destructor Documentation

◆ WasmEHDataGenerator()

v8::internal::wasm::WasmEHDataGenerator::WasmEHDataGenerator ( )
inline

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

Member Function Documentation

◆ AddCatchBlock()

void v8::internal::wasm::WasmEHDataGenerator::AddCatchBlock ( BlockIndex catch_block_index,
int tag_index,
uint32_t first_param_slot_offset,
uint32_t first_param_ref_stack_index,
CodeOffset code_offset )

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

Here is the caller graph for this function:

◆ AddDelegatedBlock()

void v8::internal::wasm::WasmEHDataGenerator::AddDelegatedBlock ( BlockIndex delegated_try_block_index)

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

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

◆ AddTryBlock()

void v8::internal::wasm::WasmEHDataGenerator::AddTryBlock ( BlockIndex try_block_index,
BlockIndex parent_or_matching_try_block_index,
BlockIndex ancestor_try_block_index )

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

Here is the caller graph for this function:

◆ EndTryCatchBlocks()

WasmEHData::BlockIndex v8::internal::wasm::WasmEHDataGenerator::EndTryCatchBlocks ( WasmEHData::BlockIndex block_index,
CodeOffset code_offset )

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

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

◆ GetCurrentTryBlockIndex()

BlockIndex v8::internal::wasm::WasmEHDataGenerator::GetCurrentTryBlockIndex ( ) const
inline

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

Here is the caller graph for this function:

◆ RecordPotentialExceptionThrowingInstruction()

void v8::internal::wasm::WasmEHDataGenerator::RecordPotentialExceptionThrowingInstruction ( WasmOpcode opcode,
CodeOffset code_offset )

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

Here is the caller graph for this function:

Member Data Documentation

◆ current_try_block_index_

BlockIndex v8::internal::wasm::WasmEHDataGenerator::current_try_block_index_
private

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


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