Skip to content

Parse non-nullable tuple elements without special handling#5910

Merged
tlively merged 1 commit intomainfrom
binary-parse-nn-tuple
Aug 30, 2023
Merged

Parse non-nullable tuple elements without special handling#5910
tlively merged 1 commit intomainfrom
binary-parse-nn-tuple

Conversation

@tlively
Copy link
Copy Markdown
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
Copy Markdown
Member Author

tlively commented Aug 30, 2023

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@codecov
Copy link
Copy Markdown

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%> (ø)

@tlively tlively force-pushed the binary-parse-nn-tuple branch from b6f00c2 to e406fe5 Compare August 30, 2023 20:28
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 force-pushed the binary-parse-nn-tuple branch from e406fe5 to 6bd83a1 Compare August 30, 2023 21:19
@tlively tlively merged commit 5bfb192 into main Aug 30, 2023
@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