This commit is contained in:
Nilton Constantino
2026-01-31 01:33:19 +00:00
parent 180c7e19e0
commit adcb34826c
12 changed files with 191 additions and 202 deletions
@@ -6,10 +6,12 @@ use super::ids::{ConstId, FieldId, FunctionId, TypeId, ValueId};
pub enum Instr {
/// Placeholder for constant loading.
PushConst(ConstId),
/// Push a bounded value (0..0xFFFF).
PushBounded(u32),
/// Placeholder for function calls.
Call(FunctionId, u32),
/// Host calls (syscalls).
HostCall(u32),
/// Host calls (syscalls). (id, return_slots)
HostCall(u32, u32),
/// Variable access.
GetLocal(u32),
SetLocal(u32),