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

Method lookup

crates/environ/src/stack_map.rs:29–35  ·  view source on GitHub ↗
(&self, pc: u32)

Source from the content-addressed store, hash-verified

27 }
28
29 fn lookup(&self, pc: u32) -> Option<StackMap<'a>> {
30 let pc_index = self
31 .pcs
32 .binary_search_by_key(&pc, |v| v.get(LittleEndian))
33 .ok()?;
34 self.get(pc_index)
35 }
36
37 fn into_iter(self) -> impl Iterator<Item = (u32, StackMap<'a>)> + 'a {
38 self.pcs

Callers

nothing calls this directly

Calls 4

binary_search_by_keyMethod · 0.80
parseFunction · 0.70
okMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected