Skip to content

Change the ABI for multi-value returns#207

Merged
alexcrichton merged 2 commits intobytecodealliance:mainfrom
alexcrichton:new-return-pointer-abi
Apr 28, 2022
Merged

Change the ABI for multi-value returns#207
alexcrichton merged 2 commits intobytecodealliance:mainfrom
alexcrichton:new-return-pointer-abi

Conversation

@alexcrichton
Copy link
Member

This commit aligns the implementation of wit-bindgen to the current
draft of the canonical ABI to have multi-value returns expressed via
pointers to the in-memory canonical ABI rather than the prior
pointers-to-the-lowered-values-in-memory ABI.

Due to the structure of wit-bindgen this ended up being a relatively
simple change where the lowered instructions generators are using were
already almost all appropriate. Mostly the parser ABI implementation
changed here along with some fiddly bits in wasmlink.

This commit aligns the implementation of wit-bindgen to the current
draft of the canonical ABI to have multi-value returns expressed via
pointers to the in-memory canonical ABI rather than the prior
pointers-to-the-lowered-values-in-memory ABI.

Due to the structure of wit-bindgen this ended up being a relatively
simple change where the lowered instructions generators are using were
already almost all appropriate. Mostly the parser ABI implementation
changed here along with some fiddly bits in `wasmlink`.
Copy link
Member

@peterhuene peterhuene left a comment

Choose a reason for hiding this comment

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

Looks good, just minor comments.

@alexcrichton alexcrichton merged commit 3096e59 into bytecodealliance:main Apr 28, 2022
@alexcrichton alexcrichton deleted the new-return-pointer-abi branch April 28, 2022 18:54
willemneal pushed a commit to theahaco/wit-bindgen that referenced this pull request May 31, 2022
* Change the ABI for multi-value returns

This commit aligns the implementation of wit-bindgen to the current
draft of the canonical ABI to have multi-value returns expressed via
pointers to the in-memory canonical ABI rather than the prior
pointers-to-the-lowered-values-in-memory ABI.

Due to the structure of wit-bindgen this ended up being a relatively
simple change where the lowered instructions generators are using were
already almost all appropriate. Mostly the parser ABI implementation
changed here along with some fiddly bits in `wasmlink`.

* Review comments
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