mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Fix up some minor things to make classes work (assembly-based)
This commit is contained in:
@@ -58,6 +58,7 @@ impl BytecodeType {
|
||||
0x0d => Pointer,
|
||||
0x0e => Register,
|
||||
0x10 => Builtin,
|
||||
0x11 => Class,
|
||||
|
||||
_ => std::panic!("Unrecognized BytecodeType"),
|
||||
};
|
||||
|
||||
@@ -97,6 +97,7 @@ impl Instruction {
|
||||
0x28 => JmpIf,
|
||||
0x29 => UnaryPlus,
|
||||
0x2a => UnaryMinus,
|
||||
0x2b => New,
|
||||
|
||||
_ => std::panic!("Unrecognized instruction: {}", byte),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user