Closed Bug 1884920 Opened 1 year ago Closed 11 months ago

Add wasmBinaryToText

Categories

(Core :: JavaScript: WebAssembly, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: yury, Assigned: bvisness)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Currently we have only wasmTextToBinary. In the fuzzer configuration, it will be nice to add wasmBinaryToText, so we have human readable test cases.

It might make sense to include this in the general debug configuration since it is likely a feature useful to devs even outside of the fuzzing area.

I think this would be really nice to have. I think we probably could just have this in any debug configuration too.

Severity: -- → N/A
Priority: -- → P3

it me

Assignee: nobody → bvisness
Status: NEW → ASSIGNED
Attachment #9445724 - Attachment description: WIP: Bug 1884920: Add wasmToText shell helper. → WIP: Bug 1884920: Replace IndentedPrinter with StructuredPrinter.

All wasm::Dump* functions now emit the actual WebAssembly text format.

Depends on D233193

Attachment #9445724 - Attachment description: WIP: Bug 1884920: Replace IndentedPrinter with StructuredPrinter. → Bug 1884920: Replace IndentedPrinter with StructuredPrinter. r=rhunt
Attachment #9445725 - Attachment description: WIP: Bug 1884920: Overhaul wasm::Dump functions to emit wat. → Bug 1884920: Overhaul wasm::Dump functions to emit wat. r=rhunt

"imported i32 with incompatible address type"

wut

Pushed by bvisness@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f0384ee747b4 Replace IndentedPrinter with StructuredPrinter. r=rhunt https://hg.mozilla.org/integration/autoland/rev/5bbfc76f48c0 Overhaul wasm::Dump functions to emit wat. r=rhunt https://hg.mozilla.org/integration/autoland/rev/76f8d1f0a560 Fix janky error message. r=rhunt
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
Regressions: 1950130
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: