-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Support reference types in Func::wrap
#1991
Support reference types in Func::wrap
#1991
Conversation
Func::wrap
Func::wrap
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! This all looks pretty good to me, but I think that we still need to do checks for cross-store-ness and bad results there.
I think that we're guaranteed that the arguments will come from the same store (since they come from compiled code), but when the closure returns a value we need to guarantee that the return value comes from the same store as the function iteslf.
Subscribe to Label Actioncc @peterhuene
This issue or pull request has been labeled: "wasmtime:api"
Thus the following users have been cc'd because of the following labels:
To subscribe or unsubscribe from this label, edit the |
18b1fdc
to
2185c7f
Compare
Cross-store checks added, as well as tests for that, and documentation for the newly supported types. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I forgot about one other case (using get*
functions) where we need to check for cross-store-ness, but otherwise lgtm
2185c7f
to
62655cd
Compare
No description provided.