This commit is contained in:
2026-06-30 18:49:45 +08:00
parent f0e3f1eeca
commit dde3052e2d
13 changed files with 79 additions and 106 deletions
+2 -1
View File
@@ -447,7 +447,8 @@ impl<'a> BytecodeReader<'a> {
pub fn read_op(&mut self) -> Op {
self.inst_start_pc = self.pc;
let byte = self.bytecode[self.pc];
if !likely_stable::likely((0..Op::Illegal as u8).contains(&byte)) {
if !(0..Op::Illegal as u8).contains(&byte) {
std::hint::cold_path();
panic!("unknown opcode: {byte:#04x}")
}
self.pc += 1;