QuickBEAM.VM.Compiler (QuickBEAM v0.10.9)

Copy Markdown View Source

JIT compiler entry point: lowers bytecode to BEAM modules, caches them, and invokes compiled functions.

Summary

Functions

Compiles a VM function for optimized execution.

Returns a disassembly of bytecode for diagnostics.

Invokes the runtime object represented by this module.

Types

beam_file()

@type beam_file() :: {:beam_file, module(), list(), list(), list(), list()}

compiled_fun()

@type compiled_fun() :: {module(), atom()}

Functions

compile(fun)

Compiles a VM function for optimized execution.

disasm(fun)

Returns a disassembly of bytecode for diagnostics.

invoke(fun, args)

Invokes the runtime object represented by this module.

invoke(fun, args, base_ctx)