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

Method pop

pulley/src/interp.rs:1060–1065  ·  view source on GitHub ↗

`ret = *sp; sp -= size_of:: ()`

(&mut self)

Source from the content-addressed store, hash-verified

1058
1059 /// `ret = *sp; sp -= size_of::<T>()`
1060 fn pop<T>(&mut self) -> T {
1061 let sp = self.state[XReg::sp].get_ptr::<T>();
1062 let val = unsafe { sp.read_unaligned() };
1063 self.set_sp_unchecked(sp.wrapping_add(1));
1064 val
1065 }
1066
1067 /// Sets the stack pointer to the `sp` provided.
1068 ///

Callers 1

pop_frameMethod · 0.45

Calls 1

set_sp_uncheckedMethod · 0.80

Tested by

no test coverage detected