summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Bernstein <max.bernstein@shopify.com>2025-02-06 16:06:41 -0500
committerTakashi Kokubun <takashikkbn@gmail.com>2025-04-18 21:52:57 +0900
commitbfae72b34b5dd0a1c3061b7f1fcf1d970eb71adf (patch)
tree9c897aea8f881f3152a2c810c81f9690a512d525
parent3305e7626ddbdb0e787fd17cb26eb9ae18e16afe (diff)
Display Send
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13131
-rw-r--r--zjit/src/ir.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/zjit/src/ir.rs b/zjit/src/ir.rs
index 3d9d52f8c3..f9d4d048b5 100644
--- a/zjit/src/ir.rs
+++ b/zjit/src/ir.rs
@@ -145,6 +145,12 @@ impl std::fmt::Display for Function {
Insn::IfFalse { val, target } => { write!(f, "IfFalse {val}, {target:?}")?; }
Insn::Return { val } => { write!(f, "Return {val}")?; }
Insn::Add { v0, v1 } => { write!(f, "Add {v0}, {v1}")?; }
+ Insn::Send { self_val, call_info, args } => {
+ write!(f, "Send {self_val}, {}", call_info.name)?;
+ for arg in args {
+ write!(f, ", {arg}")?;
+ }
+ }
insn => { write!(f, "{insn:?}")?; }
}
writeln!(f, "")?;