ZJIT: Implement find for Defined

This commit is contained in:
Max Bernstein 2025-05-23 14:08:08 -04:00 committed by Takashi Kokubun
parent 15618b7707
commit 75b92c5cd6
Notes: git 2025-05-23 20:33:03 +00:00

View File

@ -903,7 +903,7 @@ impl Function {
ArrayDup { val , state } => ArrayDup { val: find!(*val), state: *state },
&HashDup { val , state } => HashDup { val: find!(val), state },
&CCall { cfun, ref args, name, return_type, elidable } => CCall { cfun: cfun, args: args.iter().map(|arg| find!(*arg)).collect(), name: name, return_type: return_type, elidable },
Defined { .. } => todo!("find(Defined)"),
&Defined { op_type, obj, pushval, v } => Defined { op_type, obj, pushval, v: find!(v) },
NewArray { elements, state } => NewArray { elements: find_vec!(*elements), state: find!(*state) },
&NewHash { ref elements, state } => {
let mut found_elements = vec![];