summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Bernstein <max.bernstein@shopify.com>2025-02-06 16:54:17 -0500
committerTakashi Kokubun <takashikkbn@gmail.com>2025-04-18 21:52:57 +0900
commit4595c5d7143ead6d12d7c26daabf6d2cb1512e56 (patch)
treefd48c58e72642da7675713604e0f945a65ed0031
parent66c2809980e513f9fd69c50792094b43353a5b5f (diff)
Display NewArray, ArraySet
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13131
-rw-r--r--zjit/src/ir.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/zjit/src/ir.rs b/zjit/src/ir.rs
index 2fc7f0bb9b..615326b954 100644
--- a/zjit/src/ir.rs
+++ b/zjit/src/ir.rs
@@ -156,6 +156,8 @@ impl std::fmt::Display for Function {
Insn::Param { idx } => { write!(f, "Param {idx}")?; }
Insn::IfFalse { val, target } => { write!(f, "IfFalse {val}, {target}")?; }
Insn::Return { val } => { write!(f, "Return {val}")?; }
+ Insn::NewArray { count } => { write!(f, "NewArray {count}")?; }
+ Insn::ArraySet { idx, val } => { write!(f, "ArraySet {idx}, {val}")?; }
Insn::Send { self_val, call_info, args } => {
write!(f, "Send {self_val}, :{}", call_info.name)?;
for arg in args {