MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / pop_frame

Method pop_frame

crates/tinywasm/src/interpreter/stack/call_stack.rs:35–37  ·  view source on GitHub ↗
(&mut self, base: u32)

Source from the content-addressed store, hash-verified

33
34 #[inline(always)]
35 pub(crate) fn pop_frame(&mut self, base: u32) -> Option<CallFrame> {
36 if self.len() == base { None } else { self.stack.pop() }
37 }
38
39 #[inline(always)]
40 pub(crate) fn push(&mut self, mut call_frame: CallFrame) -> Result<(), Trap> {

Callers 2

exec_returnMethod · 0.80
finish_returnMethod · 0.80

Calls 2

popMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected