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
@@ -44,6 +44,8 @@ pub enum InstrKind {
/// Pushes a constant from the pool onto the stack.
PushConst(ConstId),
/// Pushes a bounded value (0..0xFFFF) onto the stack.
PushBounded(u32),
/// Pushes a boolean onto the stack.
PushBool(bool),
/// Pushes a `null` value onto the stack.
@@ -203,6 +205,7 @@ mod tests {
InstrKind::Nop,
InstrKind::Halt,
InstrKind::PushConst(ConstId(0)),
InstrKind::PushBounded(0),
InstrKind::PushBool(true),
InstrKind::PushNull,
InstrKind::Pop,
@@ -261,6 +264,9 @@ mod tests {
{
"PushConst": 0
},
{
"PushBounded": 0
},
{
"PushBool": true
},