Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propertly implement blocktypes #311

Merged
merged 1 commit into from
Jan 27, 2024
Merged

Propertly implement blocktypes #311

merged 1 commit into from
Jan 27, 2024

Conversation

jblebrun
Copy link
Owner

There are a few "special" blocktypes, the void type and the single value
result types. These don't correspond to an indexed type, instead the emitter
and runtime just handles them directly.

This also changes to emitting the function arity rather than the index, since
that's what's needed at runtime, and it makes it easier to handle these
special non-index types.

Also remove the "void" value, which doesn't really exist in WASM, and was just
a bad workaround for trying to populate an error parameter.

There are a few "special" blocktypes, the void type and the single value
result types. These don't correspond to an indexed type, instead the emitter
and runtime just handles them directly.

This also changes to emitting the function arity rather than the index, since
that's what's needed at runtime, and it makes it easier to handle these
special non-index types.

Also remove the "void" value, which doesn't really exist in WASM, and was just
a bad workaround for trying to populate an error parameter.
@jblebrun jblebrun merged commit 66a548a into main Jan 27, 2024
4 checks passed
@jblebrun jblebrun deleted the block-type branch January 27, 2024 06:23
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.

1 participant