-
Notifications
You must be signed in to change notification settings - Fork 254
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
wasmparser: Implement missing WasmFeatures configs #482
Merged
alexcrichton
merged 9 commits into
bytecodealliance:main
from
Robbepop:rf-impl-missing-feature-configs
Feb 15, 2022
Merged
wasmparser: Implement missing WasmFeatures configs #482
alexcrichton
merged 9 commits into
bytecodealliance:main
from
Robbepop:rf-impl-missing-feature-configs
Feb 15, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The following Wasm proposals are now covered by the WasmFeatures type: - saturating_float_to_int - sign_extension - mutable_global All enabled by default.
Robbepop
changed the title
Implement missing WasmFeatures configs
wasmparser: Implement missing WasmFeatures configs
Feb 15, 2022
alexcrichton
approved these changes
Feb 15, 2022
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! Could you add a smoke test or two to the tests/local/missing-features
directory?
Now makes use of the already existing entity type check.
@alexcrichton Thanks for your review. I applied all your review suggestions. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes: #481
The following Wasm proposals are now covered by the WasmFeatures type:
saturating_float_to_int
sign_extension
mutable_global
All those features are enabled by default to not break existing code that uses
WasmFeatures::deafult
.The Wasm spec has verbose names for
sign_extension
and especiallysaturating_float_to_int
withsign-extension-ops
andnontrapping-float-to-int-conversions
so I thought it is nicer to have shorter names in theWasmFeatures
struct. If the maintainers of thewasmparser
crate don't like this I'd love to accept name proposals.Since there were no negative feature tests for all the other features (from what I saw) I didn't know if those tests are actually wanted. If those tests are wanted I can implement them as well for the new features.