Method
invoke_raw
(&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 | |
| 175 | struct JitSig { |
Tested by
no test coverage detected