diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2025-06-26 02:03:30 +0900 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2025-06-27 20:42:38 +0900 |
| commit | b125fb56c98509bb1c0d2eba901a0238f2e3a5f3 (patch) | |
| tree | 5f05bb1d3d182d3ca9192d30d6557e3f8becc88a | |
| parent | ed4b8d35a227fc6837e091fea9ca3d396ff8ea14 (diff) | |
ZJIT: Function::find(): Use find_vec!() more
| -rw-r--r-- | zjit/src/hir.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/zjit/src/hir.rs b/zjit/src/hir.rs index 1cef9ddcca..e965d42380 100644 --- a/zjit/src/hir.rs +++ b/zjit/src/hir.rs @@ -1008,8 +1008,8 @@ impl Function { iseq: *iseq, insn_idx: *insn_idx, pc: *pc, - stack: stack.iter().map(|v| find!(*v)).collect(), - locals: locals.iter().map(|v| find!(*v)).collect(), + stack: find_vec!(stack), + locals: find_vec!(locals), } }, Return { val } => Return { val: find!(*val) }, @@ -1048,7 +1048,7 @@ impl Function { self_val: find!(*self_val), call_info: call_info.clone(), cd: *cd, - args: args.iter().map(|arg| find!(*arg)).collect(), + args: find_vec!(args), state: *state, }, SendWithoutBlockDirect { self_val, call_info, cd, cme, iseq, args, state } => SendWithoutBlockDirect { @@ -1057,7 +1057,7 @@ impl Function { cd: *cd, cme: *cme, iseq: *iseq, - args: args.iter().map(|arg| find!(*arg)).collect(), + args: find_vec!(args), state: *state, }, Send { self_val, call_info, cd, blockiseq, args, state } => Send { @@ -1065,14 +1065,14 @@ impl Function { call_info: call_info.clone(), cd: *cd, blockiseq: *blockiseq, - args: args.iter().map(|arg| find!(*arg)).collect(), + args: find_vec!(args), state: *state, }, InvokeBuiltin { bf, args, state } => InvokeBuiltin { bf: *bf, args: find_vec!(*args), state: *state }, ArraySet { array, idx, val } => ArraySet { array: find!(*array), idx: *idx, val: find!(*val) }, 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 }, + &CCall { cfun, ref args, name, return_type, elidable } => CCall { cfun: cfun, args: find_vec!(args), name: name, return_type: return_type, elidable }, &Defined { op_type, obj, pushval, v } => Defined { op_type, obj, pushval, v: find!(v) }, &DefinedIvar { self_val, pushval, id, state } => DefinedIvar { self_val: find!(self_val), pushval, id, state }, NewArray { elements, state } => NewArray { elements: find_vec!(*elements), state: find!(*state) }, |
