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

Merge with WebAssembly/spec branch wasm-3.0 #90

Merged
merged 293 commits into from
Sep 28, 2024
Merged

Conversation

dhil
Copy link
Member

@dhil dhil commented Sep 25, 2024

This patch brings in the specification and reference interpreter changes from the wasm-3.0 branch (https://github.com/WebAssembly/spec/tree/wasm-3.0).

yuri91 and others added 30 commits February 21, 2022 15:43
An extra 0 byte is added after the function index, to make room for
possibible future function-level hints.

Also the offset and hint values in the branchint structure are swapped.
Again, for flexible forward compatibility.

See WebAssembly/branch-hinting#6 for the
rationale
…Assembly#12)

* Fix binary grammar definition of the branch hints custom section

The overall section structure definition wasm missing.
This does not change much but it is more compatible with the code
metadata format, where the field is not fixed but it represents the
size of the payload as a u32.
* [interpreter] Handle custom sections and annotations

Co-authored-by: Yuri Iozzelli <[email protected]>

* Fix merge conflict

* Fix lexer priorities

* Fix wast.ml

* Oops

* Update wast.ml

---------

Co-authored-by: Andreas Rossberg <[email protected]>
* [interpreter] Handle custom sections and annotations

Co-authored-by: Yuri Iozzelli <[email protected]>

* Fix merge conflict

* Fix lexer priorities

* Fix wast.ml

* Oops

* Update wast.ml

---------

Co-authored-by: Andreas Rossberg <[email protected]>
@dhil dhil changed the title Merge with WebAssembly/spec branch wasm-3.0-exn Merge with WebAssembly/spec branch wasm-3.0 Sep 25, 2024
Copy link
Member

@rossberg rossberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rubberstamp.

Exn has been merged into wasm-3.0 a while ago, so you shouldn't need to merge that separately. (Though as long as you didn't get any merge conflicts from the latter, it shouldn't harm either. Did the 2nd merge say anything but "is already included"?)

@dhil
Copy link
Member Author

dhil commented Sep 25, 2024

Rubberstamp.

Exn has been merged into wasm-3.0 a while ago, so you shouldn't need to merge that separately. (Though as long as you didn't get any merge conflicts from the latter, it shouldn't harm either. Did the 2nd merge say anything but "is already included"?)

I made the merge using the 'ort' strategy. It didn't say anything about already included. The diff from wasm-3.0+exn and wasm-3.0 seems to be:

180 files changed, 9851 insertions(+), 1143 deletions(-)

If you like, I can redo the merge straight from wasm-3.0.

@rossberg
Copy link
Member

Hm, to be sure nothing weird has happened, can you diff this branch against upstream/wasm-3.0? AFAICS, the diff should be empty if everything is correct.

@dhil
Copy link
Member Author

dhil commented Sep 25, 2024

This is the diff https://gist.github.com/dhil/01e35c5ffaaf1e9513350010a73520d2

TL;DR: explainer documents and code examples.

@dhil
Copy link
Member Author

dhil commented Sep 25, 2024

I can just roll back to HEAD and apply the changes from wasm-3.0. It is no problem.

@dhil
Copy link
Member Author

dhil commented Sep 25, 2024

OK, I have remerged it now. The additions/deletions seem to be the same. The merge with wasm-3.0+exn is now gone from the commit history.

@rossberg
Copy link
Member

Perfect, thanks!

@slindley
Copy link
Collaborator

It looks to me like this PR is entirely uncontroversial and ready to go (it's just a case of bringing the stack-switching repo up-to-date). @fgmccabe please can you confirm that you're happy for it to be merged.

@dhil dhil mentioned this pull request Sep 25, 2024
@dhil dhil requested a review from tlively September 26, 2024 12:03
@slindley slindley merged commit a929dc4 into WebAssembly:main Sep 28, 2024
9 checks passed
@dhil dhil deleted the wasm-3.0 branch September 29, 2024 07:01
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.