summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Bernstein <ruby@bernsteinbear.com>2025-07-30 11:54:30 -0400
committerMax Bernstein <tekknolagi@gmail.com>2025-07-30 10:36:15 -0700
commit7b10dbd55f4b00fc4268e031a790306c12485b99 (patch)
tree891ed84b3afe2c2aac08e2a0b193eceecfcf6c9d
parent9a3055479640c8b421621c34946288a3c8c49c87 (diff)
ZJIT: Remove catch-all case to make it clearer what's unimplemented
-rw-r--r--zjit/src/codegen.rs17
1 files changed, 16 insertions, 1 deletions
diff --git a/zjit/src/codegen.rs b/zjit/src/codegen.rs
index 23b2dc2bd4..5fef220a4a 100644
--- a/zjit/src/codegen.rs
+++ b/zjit/src/codegen.rs
@@ -367,7 +367,22 @@ fn gen_insn(cb: &mut CodeBlock, jit: &mut JITState, asm: &mut Assembler, functio
Insn::AnyToString { val, str, state } => gen_anytostring(asm, opnd!(val), opnd!(str), &function.frame_state(*state))?,
Insn::Defined { op_type, obj, pushval, v } => gen_defined(jit, asm, *op_type, *obj, *pushval, opnd!(v))?,
&Insn::IncrCounter(counter) => return Some(gen_incr_counter(asm, counter)),
- _ => {
+ Insn::ArrayExtend { .. }
+ | Insn::ArrayMax { .. }
+ | Insn::ArrayPush { .. }
+ | Insn::DefinedIvar { .. }
+ | Insn::FixnumDiv { .. }
+ | Insn::FixnumMod { .. }
+ | Insn::HashDup { .. }
+ | Insn::NewHash { .. }
+ | Insn::ObjToString { .. }
+ | Insn::Send { .. }
+ | Insn::StringIntern { .. }
+ | Insn::Throw { .. }
+ | Insn::ToArray { .. }
+ | Insn::ToNewArray { .. }
+ | Insn::Const { .. }
+ => {
debug!("ZJIT: gen_function: unexpected insn {insn}");
return None;
}