pub unsafe fn wasmer_call_trampoline(
callee_env: VMFunctionEnvironment,
trampoline: VMTrampoline,
callee: *const VMFunctionBody,
values_vec: *mut u8,
) -> Result<(), Trap>
Expand description
Call the VM function pointed to by callee
.
callee_env
- the function environmenttrampoline
- the jit-generated trampoline whose ABI takes 3 values, the callee funcenv, thecallee
argument below, and then thevalues_vec
argument.callee
- the 2nd argument to thetrampoline
functionvalues_vec
- points to a buffer which holds the incoming arguments, and to which the outgoing return values will be written.
Prefer invoking this via Instance::invoke_trampoline
.
ยงSafety
Wildly unsafe because it calls raw function pointers and reads/writes raw function pointers.