Expand description
Bytecode emission from compiled queries.
Converts the compiled IR into the binary bytecode format. This module handles:
- String table construction and interning
- Type table building with field resolution
- Cache-aligned instruction layout
- Section assembly and header generation
Entry points:
emit: Emit bytecode without language linkingemit_linked: Emit bytecode with node type/field validation
Modules§
- layout
- Cache-aligned instruction layout.
Structs§
- String
Table Builder - Builds the string table, remapping query Symbols to bytecode StringIds.
- Type
Table Builder - Builds the type metadata, remapping query TypeIds to bytecode BytecodeTypeIds.
Enums§
- Emit
Error - Error during bytecode emission.
Functions§
- emit
- Emit bytecode from type context only (no node validation).
- emit_
linked - Emit bytecode from a LinkedQuery (includes node type/field validation info).