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
This commit is contained in:
Max Bernstein 2025-04-16 17:06:49 +09:00 committed by Takashi Kokubun
parent 490a6d8ef9
commit 74f4d8b8a6
Notes: git 2025-04-18 13:47:37 +00:00

View File

@ -486,6 +486,7 @@ impl<'a> std::fmt::Display for InsnPrinter<'a> {
} }
Ok(()) Ok(())
}, },
Insn::Snapshot { state } => write!(f, "Snapshot {}", state),
insn => { write!(f, "{insn:?}") } insn => { write!(f, "{insn:?}") }
} }
} }