Skip to content

Conversation

@abrown
Copy link
Member

@abrown abrown commented Sep 18, 2025

As noted in a comment to #235, passing an Option<PReg> is a bit more clear API. To do this, this change adds PReg::is_valid() to do the conversion. This change (rather unnecessarily) also renames this variable to hint everywhere (previously: hint, hint_reg, reg_hint) and uses variables directly in several close-by format! strings.

This is a non-functional change.

As noted in a [comment] to bytecodealliance#235, passing an `Option<PReg>` _is_ a bit
more clear API. To do this, this change adds `PReg::is_valid()` to do
the conversion. This change (rather unnecessarily) also renames this
variable to `hint` everywhere (previously: `hint`, `hint_reg`,
`reg_hint`) and uses variables directly in several close-by `format!`
strings.

This is a non-functional change.

[comment]: bytecodealliance#235 (review)
@abrown abrown requested a review from cfallin September 18, 2025 17:34
Copy link
Member

@cfallin cfallin left a comment

Choose a reason for hiding this comment

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

Thanks!

@cfallin cfallin merged commit 2ead347 into bytecodealliance:main Sep 18, 2025
6 checks passed
@abrown abrown deleted the register-hints branch September 18, 2025 17:44
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