pr 40
This commit is contained in:
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user