diff options
| author | Max Bernstein <max.bernstein@shopify.com> | 2025-05-23 14:08:08 -0400 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2025-05-23 13:32:49 -0700 |
| commit | 75b92c5cd6485a6b236101771f571cdf53cbd6a4 (patch) | |
| tree | 2552326e43264072999b0ea0f4c39ea4dd146c00 | |
| parent | 15618b7707aefe9a601771d2aca986392d1fb775 (diff) | |
ZJIT: Implement find for Defined
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13430
| -rw-r--r-- | zjit/src/hir.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zjit/src/hir.rs b/zjit/src/hir.rs index 9365e9ae9e..4fa168331f 100644 --- a/zjit/src/hir.rs +++ b/zjit/src/hir.rs @@ -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![]; |
