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

Method get_ret_arg

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

Get information specifying how to pass the implicit pointer to the return-value area on the stack, if required.

(&self, sig: Sig)

Source from the content-addressed store, hash-verified

977 /// Get information specifying how to pass the implicit pointer
978 /// to the return-value area on the stack, if required.
979 pub fn get_ret_arg(&self, sig: Sig) -> Option<ABIArg> {
980 let sig_data = &self.sigs[sig];
981 if let Some(i) = sig_data.stack_ret_arg {
982 Some(self.args(sig)[usize::from(i)].clone())
983 } else {
984 None
985 }
986 }
987
988 /// Get information specifying how to pass one argument.
989 pub fn get_arg(&self, sig: Sig, idx: usize) -> ABIArg {

Callers 1

gen_call_argsMethod · 0.80

Calls 3

fromFunction · 0.85
cloneMethod · 0.45
argsMethod · 0.45

Tested by

no test coverage detected