baldr: experimental text format: prettier printing of "first" nodes

NEW
Unassigned

Status

()

Core
JavaScript Engine: JIT
P3
enhancement
a year ago
a year ago

People

(Reporter: sunfish, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

a year ago
Baldr uses implicit "first" nodes in its AST representation of wasm to represent stack-machine code which doesn't otherwise fit the AST structure.

The experimental text format currently renders these as "first(x, y, z)" (which is a node that evaluates x, y, and z, and then returns the value of x). However, it may be easier to read if we printed them as a kind of "let" expression, something like "(let tmp = x; y; z; tmp)" or so.
Marking P3 for now. I don't know how fast we want this. If this should definitely get in in this release, please mark as P1. If the deadline is the next train, please mark P2.
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.