Skip to main content

revmc_entry

Function revmc_entry 

Source
pub(crate) unsafe extern "C" fn revmc_entry(
    ecx: NonNull<EvmContext<'_>>,
    stack: NonNull<EvmStack>,
    stack_len: NonNull<usize>,
    f: RawEvmCompilerFn,
) -> InstructionResult
Available on x86-64 only.
Expand description

Entry trampoline: saves callee-saved registers, stores RSP into ecx.exit_sp, and calls the JIT function.

On normal return the JIT function’s InstructionResult is forwarded. On abnormal exit (builtin error), revmc_exit restores RSP and returns the exit_result stored in EvmContext.