You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[dart2wasm] Complete async fun futures directly, instead of via completer
In `async` functions, instead of completing the function's `Future` via
`Completer`, do it directly.
This should be slightly more efficient as we eliminate a layer of
indirection when completing.
Move reading the `_future` field of `_AsyncSuspendState` to the
completion functions, to avoid adding a `struct.get`s at each call site.
In ACX demo, makes the final binary 0.1% smaller (13,689 bytes).
Fixes#60719.
Issue: #60719
CoreLibraryReviewExempt: Wasm-specific change.
Change-Id: I27b376eb2fb9c3705ee930fb33b06d9accfd14b8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/429000
Reviewed-by: Martin Kustermann <[email protected]>
Commit-Queue: Ömer Ağacan <[email protected]>
0 commit comments