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

Parse non-nullable tuple elements without special handling #5910

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

tlively
Copy link
Member

@tlively tlively commented Aug 30, 2023

In the binary parser, when creating a scratch local to hold multivalue results
as tuples, we previously ensured that the scratch local did not contain any
non-nullable by modifying its type and inserting ref.as_non_null as necessary.
Now that we properly support non-nullable elements in tuple locals, however,
this parser behavior is no longer necessary. Remove it.

@tlively tlively requested a review from kripken August 30, 2023 01:15
@tlively
Copy link
Member Author

tlively commented Aug 30, 2023

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@2cdc61f). Click here to learn what that means.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #5910   +/-   ##
=======================================
  Coverage        ?   42.61%           
=======================================
  Files           ?      484           
  Lines           ?    74856           
  Branches        ?    11934           
=======================================
  Hits            ?    31900           
  Misses          ?    39749           
  Partials        ?     3207           
Files Changed Coverage Δ
src/wasm/wasm-binary.cpp 52.98% <100.00%> (ø)

Base automatically changed from nn-tuple to main August 30, 2023 21:17
In the binary parser, when creating a scratch local to hold multivalue results
as tuples, we previously ensured that the scratch local did not contain any
non-nullable by modifying its type and inserting ref.as_non_null as necessary.
Now that we properly support non-nullable elements in tuple locals, however,
this parser behavior is no longer necessary. Remove it.
@tlively tlively merged commit 5bfb192 into main Aug 30, 2023
14 checks passed
@tlively tlively deleted the binary-parse-nn-tuple branch August 30, 2023 23:24
radekdoulik pushed a commit to dotnet/binaryen that referenced this pull request Jul 12, 2024
…ly#5910)

In the binary parser, when creating a scratch local to hold multivalue results
as tuples, we previously ensured that the scratch local did not contain any
non-nullable by modifying its type and inserting ref.as_non_null as necessary.
Now that we properly support non-nullable elements in tuple locals, however,
this parser behavior is no longer necessary. Remove it.
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.

2 participants