Skip to main content

Module vm

Module vm 

Source

Re-exports§

pub use opcode::opcode_name;

Modules§

opcode

Structs§

CallFrame
Minimal call frame: 16 bytes of metadata, no closure/upvalue fields.
CodeStore
All compiled bytecode for a program.
FnChunk
A compiled function chunk — bytecode + metadata.
VM
The Aver bytecode virtual machine.
VmBuiltinProfile
VmFunctionProfile
VmOpcodeProfile
VmProfileReport
VmReturnStats

Enums§

VmError
VM runtime error.

Functions§

compile_program
Compile a parsed + TCO-transformed + resolved program into bytecode. Also loads dependent modules if a module declaration with depends is present.
compile_program_with_modules
Compile with explicit module root for depends resolution.
register_service_types
Register builtin service record types (HttpResponse, HttpRequest, etc.) in the arena before compilation. These types are used by services but not declared in user code.