Skip to content

Conversation

@kripken
Copy link
Member

@kripken kripken commented Jun 12, 2024

With this we now print e.g.

(local.set $temp (; local type: i32 ;)
  ...

This can be nice in large functions to avoid needing to scroll up to
see the local type, e.g. when debugging why unsubtyping doesn't
work somewhere.

Also avoid [ ] in this mode, in favor of the standard (; ;).

@kripken kripken requested a review from tlively June 12, 2024 23:44
}
if (full) {
o << "[";
o << "(; ";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we're at it, can we move the type comment to the end of the line rather than the beginning? That way the instructions will still line up nicely on the left side.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@kripken kripken enabled auto-merge (squash) June 13, 2024 17:11
@kripken kripken merged commit 66610d8 into WebAssembly:main Jun 13, 2024
@kripken kripken deleted the full.locals branch June 13, 2024 17:48
@gkdn gkdn mentioned this pull request Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants