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

Method num_stacks

crates/wasmtime/src/runtime/debug.rs:573–577  ·  view source on GitHub ↗

Get the depth of the operand stack in this frame.

(&self, mut store: impl AsContextMut)

Source from the content-addressed store, hash-verified

571
572 /// Get the depth of the operand stack in this frame.
573 pub fn num_stacks(&self, mut store: impl AsContextMut) -> Result<u32> {
574 let store = store.as_context_mut();
575 let frame_data = self.frame_data(store.0.as_store_opaque())?;
576 Ok(u32::try_from(frame_data.stack.len()).unwrap())
577 }
578
579 /// Get the type and value of the given local in this frame.
580 ///

Callers 1

frame_stackMethod · 0.80

Calls 6

OkFunction · 0.85
frame_dataMethod · 0.80
as_store_opaqueMethod · 0.80
as_context_mutMethod · 0.45
unwrapMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected