Skip to content

Conversation

@keithw
Copy link
Contributor

@keithw keithw commented Jan 28, 2026

This PR consolidates some of the validator's manipulation of the control stack into the push_ctrl/push_bare_ctrl functions, so that individual operator validator functions no longer need to directly manipulate the control stack. (It also fixes a confusing comment.)

This is preparation for an "atomic" validator feature to come in a subsequent PR (https://github.com/keithw/wasm-tools/tree/atomic). This would provide the ability to validate an operator atomically, i.e. the validator state is unchanged if the operator is invalid.

@keithw keithw requested a review from a team as a code owner January 28, 2026 02:39
@keithw keithw requested review from fitzgen and removed request for a team January 28, 2026 02:39
Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

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

Thanks!

@alexcrichton alexcrichton added this pull request to the merge queue Jan 28, 2026
Merged via the queue into bytecodealliance:main with commit 037cce4 Jan 28, 2026
@keithw keithw deleted the tweak-control-stack branch January 28, 2026 18:45
@alexcrichton
Copy link
Member

Oh I think the second commit here, 4ead261, didn't make it into the merge queue so after merging that change wasn't included. Feel free to include that though in a subsequent (or parallel PR)

@keithw
Copy link
Contributor Author

keithw commented Jan 28, 2026

Sure, sorry we raced and thank you for the quick review! I'll tag it on to #2429.

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