Closed
Bug 1869365
Opened 2 years ago
Closed 2 years ago
Add shell function to print MIR/LIR of wasm function
Categories
(Core :: JavaScript: WebAssembly, task, P3)
Core
JavaScript: WebAssembly
Tracking
()
RESOLVED
FIXED
125 Branch
| Tracking | Status | |
|---|---|---|
| firefox125 | --- | fixed |
People
(Reporter: rhunt, Assigned: rhunt)
References
Details
Attachments
(1 file)
It's already possible to print the MIR/LIR by using the IonFlags envvar and grepping through logs for your specific function. I personally end up avoiding that because it's a bit tedious.
I prototyped a quick patch which will take wasm bytecode and a func index, and return a JS String with the MIR/LIR dump. It's similar to our wasmDis function, which I use more often.
| Assignee | ||
Updated•2 years ago
|
Assignee: nobody → rhunt
| Assignee | ||
Comment 1•2 years ago
|
||
Usage:
wasmDumpIon(bytecode, funcIndex, "mir" | "lir" | "opt-mir");
Pushed by rhunt@eqrion.net:
https://hg.mozilla.org/integration/autoland/rev/013c01e9b424
wasm: Add shell function to dump MIR/LIR of wasm function. r=jseward
Comment 3•2 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 2 years ago
status-firefox125:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
Regressions: 1894586
You need to log in
before you can comment on or make changes to this bug.
Description
•