summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Bernstein <max.bernstein@shopify.com>2025-02-11 11:47:18 -0500
committerTakashi Kokubun <takashikkbn@gmail.com>2025-04-18 21:52:57 +0900
commit037e35ef590b93cfea8eedfc540f5b8a4b1c4ec9 (patch)
tree50201678729bab3bb4ade2e49fd0534d7cad02c4
parent3372c137a73208a45ce99f805f4bf64551a89ddb (diff)
Display IfTrue and Jump
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 2fccf785be..07fa991fff 100644
--- a/zjit/src/ir.rs
+++ b/zjit/src/ir.rs
@@ -188,7 +188,9 @@ impl<'a> std::fmt::Display for FunctionPrinter<'a> {
write!(f, " {insn_id} = ")?;
match &fun.insns[insn_id.0] {
Insn::Param { idx } => { write!(f, "Param {idx}")?; }
+ Insn::IfTrue { val, target } => { write!(f, "IfTrue {val}, {target}")?; }
Insn::IfFalse { val, target } => { write!(f, "IfFalse {val}, {target}")?; }
+ Insn::Jump(target) => { write!(f, "Jump {target}")?; }
Insn::Return { val } => { write!(f, "Return {val}")?; }
Insn::NewArray { count } => { write!(f, "NewArray {count}")?; }
Insn::ArraySet { idx, val } => { write!(f, "ArraySet {idx}, {val}")?; }