-
Notifications
You must be signed in to change notification settings - Fork 824
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
Improved WasmPtr, added WasmCell #2442
Conversation
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 think this is workable if we're good with the breakage in API and the performance decrease for the array method. I think this is a reasonable path forward: we can always add more APIs later for better performance.
bors r+ |
2442: Improved WasmPtr, added WasmCell r=syrusakbary a=syrusakbary # Description This PR improves a bit our WasmPtr API by making it a bit more safer and reliable. ## Breaking changes * `WasmPtr`.`deref` will now return `WasmCell<'a, T>` instead of `&'a Cell<T>` * `WasmPtr`.`deref_mut` is no needed any longer Co-authored-by: Syrus Akbary <[email protected]>
bors r- |
Canceled. |
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.
need to fix the major bugs first
bors try |
tryBuild failed: |
bors try |
tryBuild failed: |
bors try |
I assume everything is good to go now, given that all feedback is addressed and it was previously approved. Merging manually :) |
Description
This PR improves a bit our WasmPtr API by making it a bit more safer and reliable.
Breaking changes
WasmPtr
.deref
will now returnWasmCell<'a, T>
instead of&'a Cell<T>
WasmPtr
.deref_mut
is no needed any longer