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

Method iter

crates/environ/src/stack_map.rs:88–90  ·  view source on GitHub ↗

Iterate over the stack maps contained in the given stack map section. This function takes a `section` as its first argument which must have been created with `StackMapSection` builder. This is intended to be the raw `ELF_WASMTIME_STACK_MAP` section from the compilation artifact. The yielded offsets are relative to the start of the text section for this map's code object.

(section: &'a [u8])

Source from the content-addressed store, hash-verified

86 /// The yielded offsets are relative to the start of the text section for
87 /// this map's code object.
88 pub fn iter(section: &'a [u8]) -> Option<impl Iterator<Item = (u32, StackMap<'a>)> + 'a> {
89 Some(StackMapSection::parse(section)?.into_iter())
90 }
91
92 /// Returns the byte size of this stack map's frame.
93 pub fn frame_size(&self) -> u32 {

Callers 15

annotate_asmFunction · 0.45
iterate_address_mapFunction · 0.45
owned_memory_indexMethod · 0.45
importsMethod · 0.45
wasm_typesMethod · 0.45
rec_groupsMethod · 0.45
trampoline_typesMethod · 0.45
traceMethod · 0.45
newMethod · 0.45
is_trampoline_typeMethod · 0.45
trampoline_typeMethod · 0.45
fmtMethod · 0.45

Calls 2

parseFunction · 0.70
into_iterMethod · 0.45

Tested by 1

kind_matchesFunction · 0.36