MCPcopy Index your code
hub / github.com/RustPython/RustPython / invoke_raw

Method invoke_raw

crates/jit/src/lib.rs:163–172  ·  view source on GitHub ↗
(&self, cif_args: &[libffi::middle::Arg<'_>])

Source from the content-addressed store, hash-verified

161 }
162
163 unsafe fn invoke_raw(&self, cif_args: &[libffi::middle::Arg<'_>]) -> Option<AbiValue> {
164 unsafe {
165 let cif = self.sig.to_cif();
166 let value = cif.call::<UnTypedAbiValue>(
167 libffi::middle::CodePtr::from_ptr(self.code as *const _),
168 cif_args,
169 );
170 self.sig.ret.as_ref().map(|ty| value.to_typed(ty))
171 }
172 }
173}
174
175struct JitSig {

Callers 1

invokeMethod · 0.80

Calls 4

to_cifMethod · 0.80
to_typedMethod · 0.80
mapMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected