Skip to main content

Crate mailang_bytecode

Crate mailang_bytecode 

Source

Re-exports§

pub use disasm::disassemble_register;
pub use disasm::disassemble_stack;
pub use format::decode;
pub use format::encode;
pub use format::BytecodeFormatError;
pub use format::FORMAT_MAGIC;
pub use format::FORMAT_VERSION;
pub use register::parameter_slots;
pub use register::RegChunk;
pub use register::RegOp;
pub use register::StackToRegister;

Modules§

disasm
Human-readable dumps of compiled bytecode (mailang disasm).
format
Binary bytecode container format (.mailangbc).
register
Register-based bytecode and a stack→register translator.

Structs§

Bytecode
Chunk
ClassObj
ClosureObj
FunctionObj
Fat payloads are boxed so Value stays small on the operand stack.
Instruction
Compact, Copy instruction — fetched by value on the hot path.

Enums§

Opcode
Opcode is Copy and serialized as a single byte in the binary format. Keep variants in a stable order; append-only.
Value