MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / lookup_trap_code

Method lookup_trap_code

crates/wasmtime/src/runtime/code_memory.rs:616–618  ·  view source on GitHub ↗

Looks up the given offset within this module's text section and returns the trap code associated with that instruction, if there is one.

(&self, text_offset: usize)

Source from the content-addressed store, hash-verified

614 /// Looks up the given offset within this module's text section and returns
615 /// the trap code associated with that instruction, if there is one.
616 pub fn lookup_trap_code(&self, text_offset: usize) -> Option<CompiledTrap> {
617 lookup_trap_code(self.trap_data(), text_offset)
618 }
619
620 /// Get the raw address range of this CodeMemory.
621 pub(crate) fn raw_addr_range(&self) -> Range<usize> {

Callers 2

test_if_trapMethod · 0.80
handle_exceptionFunction · 0.80

Calls 2

lookup_trap_codeFunction · 0.85
trap_dataMethod · 0.80

Tested by 1

test_if_trapMethod · 0.64