[dart-lang/sdk] 892e6a: [dart2wasm] Pass on @pragma('wasm:prefer-inline') ...

0 views
Skip to first unread message

Martin Kustermann

unread,
Jun 10, 2026, 7:01:07 PM (20 hours ago) Jun 10
to com...@dartlang.org
Branch: refs/heads/main
Home: https://github.com/dart-lang/sdk
Commit: 892e6a8b53f7312bd007e2614ac7534521e472d9
https://github.com/dart-lang/sdk/commit/892e6a8b53f7312bd007e2614ac7534521e472d9
Author: Martin Kustermann <kuste...@google.com>
Date: 2026-06-10 (Wed, 10 Jun 2026)

Changed paths:
M pkg/dart2wasm/lib/functions.dart

Log Message:
-----------
[dart2wasm] Pass on @pragma('wasm:prefer-inline') to wasm-opt

Now that we have a way to tell binaryen to inline functions (see [0],
which added support for `(@binaryen.inline <0...127>)` annotations) we
can tell it to inline functions that were annotated with
`@pragma('wasm:prefer-inline')`

Since binaryen sometimes can devirtualize call sites that TFA cannot, it
can then inline those devirtualized calls.

[0] https://github.com/WebAssembly/binaryen/issues/7972

Change-Id: I139bd43976a1ddb83afe756d4fbac09419f7199e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510822
Reviewed-by: Srujan Gaddam <sru...@google.com>
Commit-Queue: Martin Kustermann <kuste...@google.com>



To unsubscribe from these emails, change your notification settings at https://github.com/dart-lang/sdk/settings/notifications

Ryan Macnak

unread,
Jun 10, 2026, 8:27:17 PM (19 hours ago) Jun 10
to com...@dartlang.org
Branch: refs/heads/lkgr
Home: https://github.com/dart-lang/sdk
Commit: 892e6a8b53f7312bd007e2614ac7534521e472d9
https://github.com/dart-lang/sdk/commit/892e6a8b53f7312bd007e2614ac7534521e472d9
Author: Martin Kustermann <kuste...@google.com>
Date: 2026-06-10 (Wed, 10 Jun 2026)

Changed paths:
M pkg/dart2wasm/lib/functions.dart

Log Message:
-----------
[dart2wasm] Pass on @pragma('wasm:prefer-inline') to wasm-opt

Now that we have a way to tell binaryen to inline functions (see [0],
which added support for `(@binaryen.inline <0...127>)` annotations) we
can tell it to inline functions that were annotated with
`@pragma('wasm:prefer-inline')`

Since binaryen sometimes can devirtualize call sites that TFA cannot, it
can then inline those devirtualized calls.

[0] https://github.com/WebAssembly/binaryen/issues/7972

Change-Id: I139bd43976a1ddb83afe756d4fbac09419f7199e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510822
Reviewed-by: Srujan Gaddam <sru...@google.com>
Commit-Queue: Martin Kustermann <kuste...@google.com>


Commit: 9bf5bfb83da53c81b9487d76a29d696f20bdeb31
https://github.com/dart-lang/sdk/commit/9bf5bfb83da53c81b9487d76a29d696f20bdeb31
Author: Ryan Macnak <rma...@google.com>
Date: 2026-06-10 (Wed, 10 Jun 2026)

Changed paths:
M tools/bots/test_matrix.json

Log Message:
-----------
[infra] Increase Linux ARM64 sanitizer test coverage.

Change-Id: Id9086913d0c3b7a0d88eaeb2ce8f2be17f80e285
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510541
Reviewed-by: Alexander Aprelev <a...@google.com>
Commit-Queue: Ryan Macnak <rma...@google.com>


Compare: https://github.com/dart-lang/sdk/compare/8e751fbc029f...9bf5bfb83da5

copybara-service[bot]

unread,
12:04 AM (15 hours ago) 12:04 AM
to com...@dartlang.org
Branch: refs/heads/dev
Commit: 816f15a184f2c77f0d93a9377b316c81457c2a4c
https://github.com/dart-lang/sdk/commit/816f15a184f2c77f0d93a9377b316c81457c2a4c
Author: Dart CI <dart-inte...@dart-ci-internal.iam.gserviceaccount.com>
Date: 2026-06-10 (Wed, 10 Jun 2026)

Changed paths:
M pkg/dart2wasm/lib/functions.dart
M tools/VERSION
M tools/bots/test_matrix.json

Log Message:
-----------
Version 3.13.0-196.0.dev

Merge 9bf5bfb83da53c81b9487d76a29d696f20bdeb31 into dev


Compare: https://github.com/dart-lang/sdk/compare/f86875d724fb...816f15a184f2

copybara-service[bot]

unread,
1:07 AM (14 hours ago) 1:07 AM
to com...@dartlang.org
Branch: refs/heads/lkgr-dev
Reply all
Reply to author
Forward
0 new messages