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

Method peek

winch/codegen/src/stack.rs:384–386  ·  view source on GitHub ↗

Peek into the top in the stack.

(&self)

Source from the content-addressed store, hash-verified

382
383 /// Peek into the top in the stack.
384 pub fn peek(&self) -> Option<&Val> {
385 self.inner.last()
386 }
387
388 /// Returns an iterator referencing the last n items of the stack,
389 /// in bottom-most to top-most order.

Callers 15

pop_i32_constMethod · 0.45
pop_i64_constMethod · 0.45
pop_f32_constMethod · 0.45
pop_f64_constMethod · 0.45
pop_regMethod · 0.45
pop_named_regMethod · 0.45
visit_call_indirectMethod · 0.45
emit_table_getMethod · 0.45
emit_check_alignMethod · 0.45
pop_abi_results_implMethod · 0.45
adjust_stack_resultsMethod · 0.45
i32_shiftMethod · 0.45

Calls 1

lastMethod · 0.45

Tested by

no test coverage detected