Module unit

Module unit 

Source
Expand description

A single execution unit in the rune virtual machine.

A unit consists of a sequence of instructions, and lookaside tables for metadata like function locations.

Structs§

ArrayUnit
Unit stored as array of instructions.
ByteCodeUnitbyte-code
Unit stored as byte code, which is a more compact representation than ArrayUnit, but takes more time to execute since it needs to be decoded as it’s being executed.
Logic
Instructions from a single source file.
Unit
Instructions and debug info from a single compilation.

Traits§

UnitEncoder
Builder trait for unit storage.
UnitStorage
Instruction storage used by a Unit.

Type Aliases§

DefaultStorageNon-rune_byte_code
Default storage implementation to use.