diff options
| author | Max Bernstein <max@bernsteinbear.com> | 2025-04-16 17:06:49 +0900 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2025-04-18 21:53:01 +0900 |
| commit | 74f4d8b8a64d64be3d866166976d474fb217248e (patch) | |
| tree | a1ff811bba672979501aac82c2743b40c8c1eb3c | |
| parent | 490a6d8ef932f3ce2536cb496c12878d88eb40a0 (diff) | |
Display Snapshot's FrameState using Display (https://github.com/Shopify/zjit/pull/111)
This makes the output a little nicer when doing --zjit-dump-hir=all
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13131
| -rw-r--r-- | zjit/src/hir.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zjit/src/hir.rs b/zjit/src/hir.rs index 7a124b232b..12dcec2a31 100644 --- a/zjit/src/hir.rs +++ b/zjit/src/hir.rs @@ -486,6 +486,7 @@ impl<'a> std::fmt::Display for InsnPrinter<'a> { } Ok(()) }, + Insn::Snapshot { state } => write!(f, "Snapshot {}", state), insn => { write!(f, "{insn:?}") } } } |
