Module wasmer_runtime_core_x::trampoline_x64

source ·
Expand description

Trampoline generator for carrying context with function pointer.

This makes use of the mm0 register to pass the context as an implicit “parameter” because mm0 is not used to pass parameters and is almost never used by modern compilers. It’s still better to call get_context() as early as possible in the callee function though, as a good practice.

Variadic functions are not supported because rax is used by the trampoline code.

Structs§

Enums§

  • An opaque type for context pointers.
  • An opaque type for pointers to a callable memory location.
  • An opaque type for generated trampolines’ call entries.

Functions§

  • Calls GET_CONTEXT and returns the current context.