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

Remove the NullI31Ref trap code #9299

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Sep 24, 2024

To precisely match the Wasm spec tests, we would also need NullStructRef and NullArrayRef, etc... This is not practical, given the encoding space we have available. We are already matching expected "null FOO reference" trap messages when running the spec tests to our own "null reference" messages, so we can do that for i31s as well.

To precisely match the Wasm spec tests, we would also need `NullStructRef` and
`NullArrayRef`, etc... This is not practical, given the encoding space we have
available. We are already matching expected "null FOO reference" trap messages
when running the spec tests to our own "null reference" messages, so we can do
that for `i31`s as well.
@fitzgen fitzgen requested review from a team as code owners September 24, 2024 15:32
@fitzgen fitzgen requested review from elliottt and removed request for a team September 24, 2024 15:32
@github-actions github-actions bot added the cranelift Issues related to the Cranelift code generator label Sep 24, 2024
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.

We've got a fair number of bits fre in MemFlags so it's in theory not too hard to support more trap codes there, but I also think this is fine to have less specific traps for now and we can always refactor later if necessary

@fitzgen fitzgen added this pull request to the merge queue Sep 24, 2024
Merged via the queue into bytecodealliance:main with commit 1dc9b62 Sep 24, 2024
39 checks passed
@fitzgen fitzgen deleted the no-null-i31-trap-code branch September 24, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift Issues related to the Cranelift code generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants