Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Allow extra args on branches #192

Merged
merged 1 commit into from
Feb 9, 2021
Merged

Allow extra args on branches #192

merged 1 commit into from
Feb 9, 2021

Conversation

rossberg
Copy link
Member

@rossberg rossberg commented Feb 4, 2021

Fixes inconsistency with br_on_null, as pointed out by @kripken.

Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

Seems reasonable, thanks.

I sort of prefer the other way, actually - it would keep things even simpler to not allow extra values. Do you have a sense of whether they would be useful? (FWIW, in code I've seen I doubt they would, but that's mostly LLVM.)

@rossberg
Copy link
Member Author

rossberg commented Feb 9, 2021

I'd be fine the other way as well, though one could argue that's a rather artificial restriction in a stack machine.

FWIW, @manoskouk suggested this generalisation earlier (#183), and I was skeptical myself. But being consistent seems desirable.

Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

Fair points. I agree this makes things more consistent which is good. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants