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

Change task.return to take component-level type + canonopt immediates #431

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

lukewagner
Copy link
Member

In the original async PR (#363), there seemed to be a reason to reuse the same core wasm type-equality test used by call_indirect in task.return to avoid a new kind of (component-level) type equality test. However, the streams PR (#405) ended up adding a well-motivated runtime component-type-equality test. Without that reason, passing the component-level return type + canonopts seems to be the more natural choice, so this PR switches to that.

@lukewagner lukewagner requested a review from dicej December 16, 2024 21:01
Comment on lines +354 to +358
(core module $Libc
(memory (export "mem") 1)
(func (export "realloc") (param i32 i32 i32 i32) (result i32) ...)
...
)
Copy link
Member Author

@lukewagner lukewagner Dec 16, 2024

Choose a reason for hiding this comment

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

FYI: This and most of the changes below in Async.md are pre-existing fixes that were made more evident when thinking about the <canonopt>* immediate of (canon task.return ...) below.

Copy link
Collaborator

@dicej dicej left a comment

Choose a reason for hiding this comment

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

Looks great; thanks!

@lukewagner lukewagner merged commit 3085360 into main Dec 20, 2024
2 checks passed
@lukewagner lukewagner deleted the tweak-task-return branch December 20, 2024 17:21
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