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

Method top

crates/cranelift/src/debug/transform/unit.rs:42–44  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

40 }
41
42 pub fn top(&self) -> Option<&T> {
43 self.stack.last().map(|entry| &entry.1)
44 }
45
46 pub fn top_with_depth_mut(&mut self, depth: isize) -> Option<&mut T> {
47 self.stack

Callers 13

reference_typeFunction · 0.45
translate_table_getMethod · 0.45
emit_table_setMethod · 0.45
translate_ref_nullMethod · 0.45
translate_ref_is_nullMethod · 0.45
clone_unitFunction · 0.45
read_field_at_addrFunction · 0.45
write_field_at_addrFunction · 0.45
translate_ref_testFunction · 0.45

Calls 2

mapMethod · 0.45
lastMethod · 0.45

Tested by

no test coverage detected