-
Notifications
You must be signed in to change notification settings - Fork 315
GC: wasmparser: recursive type groups support #1134
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
Conversation
fitzgen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! A couple things below before we can merge this.
Additionally, can we have some tests for
- Empty rec groups
- Invalid modules that try to be type recursive across different groups
- Any other edge cases you can think of
Remove unnecessary type annotations.
fitzgen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, very close! Just one thing left to address before we can merge this. Thanks for your patience!
This commit is a follow-up to bytecodealliance#1134 to require the `gc` feature flag be activated to use the `(rec ...)` construct from the GC wasm proposal. This additionally updates the text parsing and text printing to consider the structure of what's parsed for encoding/printing rather than the size of the types inside. Even a `rec` group of a single type prints a `rec` group or encodes it now instead of silently switching it back to a single-type encoding.
This commit is a follow-up to bytecodealliance#1134 to require the `gc` feature flag be activated to use the `(rec ...)` construct from the GC wasm proposal. This additionally updates the text parsing and text printing to consider the structure of what's parsed for encoding/printing rather than the size of the types inside. Even a `rec` group of a single type prints a `rec` group or encodes it now instead of silently switching it back to a single-type encoding.
This commit is a follow-up to #1134 to require the `gc` feature flag be activated to use the `(rec ...)` construct from the GC wasm proposal. This additionally updates the text parsing and text printing to consider the structure of what's parsed for encoding/printing rather than the size of the types inside. Even a `rec` group of a single type prints a `rec` group or encodes it now instead of silently switching it back to a single-type encoding.
Introduce support for recursive types as part of the ongoing WebAssembly GC proposal implementation.
Matching rules for subtypes had to be updated to accommodate recursive types.