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

Method stack_free32

pulley/src/interp.rs:2102–2107  ·  view source on GitHub ↗
(&mut self, amt: u32)

Source from the content-addressed store, hash-verified

2100 }
2101
2102 fn stack_free32(&mut self, amt: u32) -> ControlFlow<Done> {
2103 let amt = usize::try_from(amt).unwrap();
2104 let new_sp = self.state[XReg::sp].get_ptr::<u8>().wrapping_add(amt);
2105 self.set_sp_unchecked(new_sp);
2106 ControlFlow::Continue(())
2107 }
2108
2109 fn zext8(&mut self, dst: XReg, src: XReg) -> ControlFlow<Done> {
2110 let src = self.state[src].get_u64() as u8;

Callers

nothing calls this directly

Calls 2

set_sp_uncheckedMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected