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

Method num_args

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

Get the number of arguments expected.

(&self, sig: Sig)

Source from the content-addressed store, hash-verified

1006
1007 /// Get the number of arguments expected.
1008 pub fn num_args(&self, sig: Sig) -> usize {
1009 let len = self.args(sig).len();
1010 if self.sigs[sig].stack_ret_arg.is_some() {
1011 len - 1
1012 } else {
1013 len
1014 }
1015 }
1016
1017 /// Get the number of return values expected.
1018 pub fn num_rets(&self, sig: Sig) -> usize {

Callers

nothing calls this directly

Calls 3

lenMethod · 0.45
argsMethod · 0.45
is_someMethod · 0.45

Tested by

no test coverage detected