Fix up some minor things to make classes work (assembly-based)

This commit is contained in:
Andrew Morris
2022-05-27 14:39:15 +10:00
parent 8ed8bbff0a
commit d492040d21
2 changed files with 2 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ impl BytecodeType {
0x0d => Pointer,
0x0e => Register,
0x10 => Builtin,
0x11 => Class,
_ => std::panic!("Unrecognized BytecodeType"),
};

View File

@@ -97,6 +97,7 @@ impl Instruction {
0x28 => JmpIf,
0x29 => UnaryPlus,
0x2a => UnaryMinus,
0x2b => New,
_ => std::panic!("Unrecognized instruction: {}", byte),
};