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

Method unwrap_sp

winch/codegen/src/abi/mod.rs:269–274  ·  view source on GitHub ↗

Returns the [SPOffset] used as the base of the return area. # Panics This function panics if the return area doesn't hold a [SPOffset].

(&self)

Source from the content-addressed store, hash-verified

267 /// # Panics
268 /// This function panics if the return area doesn't hold a [SPOffset].
269 pub fn unwrap_sp(&self) -> SPOffset {
270 match self {
271 Self::SP(offs) => *offs,
272 _ => unreachable!(),
273 }
274 }
275
276 /// Returns true if the return area is addressed via the stack pointer.
277 pub fn is_sp(&self) -> bool {

Callers 4

assignMethod · 0.80
cleanupMethod · 0.80
adjust_stack_resultsMethod · 0.80
ensure_ret_areaMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected