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

Method rets

cranelift/codegen/src/machinst/abi.rs:994–1000  ·  view source on GitHub ↗

Get this signature's ABI returns.

(&self, sig: Sig)

Source from the content-addressed store, hash-verified

992
993 /// Get this signature's ABI returns.
994 pub fn rets(&self, sig: Sig) -> &[ABIArg] {
995 let sig_data = &self.sigs[sig];
996 // Please see comments in `SigSet::from_func_sig` of how we store the offsets.
997 let start = usize::try_from(sig.prev().map_or(0, |prev| self.sigs[prev].args_end)).unwrap();
998 let end = usize::try_from(sig_data.rets_end).unwrap();
999 &self.abi_args[start..end]
1000 }
1001
1002 /// Get information specifying how to pass one return value.
1003 pub fn get_ret(&self, sig: Sig, idx: usize) -> ABIArg {

Callers 4

get_retMethod · 0.80
num_retsMethod · 0.80
gen_call_retsMethod · 0.80

Calls 2

unwrapMethod · 0.45
prevMethod · 0.45

Tested by

no test coverage detected