Skip to main content

Module generic_builtin

Module generic_builtin 

Source
Expand description

Generic Builtin FFI Trampoline

A single FFI function that can execute ANY builtin function, eliminating the need for individual FFI wrappers for each of the ~170 builtins.

Uses the same static trampoline pattern as async_ops: the VM registers a dispatch function before JIT execution, and the JIT calls it via jit_generic_builtin.

Statics§

GENERIC_BUILTIN_FN
Static trampoline function pointer for generic builtin dispatch.

Functions§

jit_generic_builtin
Execute any builtin function via the registered trampoline.
register_generic_builtin_fn
Register the generic builtin dispatch trampoline.
unregister_generic_builtin_fn
Clear the generic builtin dispatch registration.