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

Method gen_call_args

cranelift/codegen/src/machinst/lower.rs:632–645  ·  view source on GitHub ↗

Set up arguments values `args` for a call with signature `sig`.

(&mut self, sig: Sig, args: &[ValueRegs<Reg>])

Source from the content-addressed store, hash-verified

630
631 /// Set up arguments values `args` for a call with signature `sig`.
632 pub fn gen_call_args(&mut self, sig: Sig, args: &[ValueRegs<Reg>]) -> CallArgList {
633 let (uses, insts) = self.vcode.abi().gen_call_args(
634 self.vcode.sigs(),
635 sig,
636 args,
637 /* is_tail_call */ false,
638 &self.flags,
639 &mut self.vregs,
640 );
641 for insn in insts {
642 self.emit(insn);
643 }
644 uses
645 }
646
647 /// Likewise, but for a `return_call`.
648 pub fn gen_return_call_args(&mut self, sig: Sig, args: &[ValueRegs<Reg>]) -> CallArgList {

Callers 1

gen_return_call_argsMethod · 0.45

Calls 3

abiMethod · 0.45
sigsMethod · 0.45
emitMethod · 0.45

Tested by

no test coverage detected