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

Method gen_try_call_rets

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

Likewise, but for a `try_call`.

(&mut self, sig: Sig)

Source from the content-addressed store, hash-verified

669
670 /// Likewise, but for a `try_call`.
671 pub fn gen_try_call_rets(&mut self, sig: Sig) -> CallRetList {
672 let ir_inst = self.cur_inst.unwrap();
673 let mut outputs: SmallVec<[ValueRegs<Reg>; 2]> = smallvec![];
674 for return_def in self.try_call_rets.get(&ir_inst).unwrap() {
675 outputs.push(return_def.map(|r| r.to_reg()));
676 }
677 let payloads = Some(&self.try_call_payloads.get(&ir_inst).unwrap()[..]);
678
679 self.vcode
680 .abi()
681 .gen_call_rets(self.vcode.sigs(), sig, &outputs, payloads, &mut self.vregs)
682 }
683
684 /// Populate a `CallInfo` for a call with signature `sig`.
685 pub fn gen_call_info<T>(

Callers

nothing calls this directly

Calls 8

to_regMethod · 0.80
unwrapMethod · 0.45
getMethod · 0.45
pushMethod · 0.45
mapMethod · 0.45
gen_call_retsMethod · 0.45
abiMethod · 0.45
sigsMethod · 0.45

Tested by

no test coverage detected