[M] Change in dart/sdk[main]: [dart2wasm] Fix access of constants under deferred load guard

0 views
Skip to first unread message

Ömer Ağacan (Gerrit)

unread,
Nov 28, 2025, 6:21:02 AM (yesterday) Nov 28
to Martin Kustermann, Commit Queue, dart2js-te...@google.com, dart2wasm-t...@google.com, rev...@dartlang.org
Attention needed from Martin Kustermann

Ömer Ağacan voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Martin Kustermann
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I58489303dc10bb265ef730c05a4fc78a8f598edb
Gerrit-Change-Number: 464980
Gerrit-PatchSet: 4
Gerrit-Owner: Martin Kustermann <kuste...@google.com>
Gerrit-Reviewer: Martin Kustermann <kuste...@google.com>
Gerrit-Reviewer: Ömer Ağacan <ome...@google.com>
Gerrit-Attention: Martin Kustermann <kuste...@google.com>
Gerrit-Comment-Date: Fri, 28 Nov 2025 11:20:57 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Martin Kustermann (Gerrit)

unread,
Nov 28, 2025, 6:22:48 AM (yesterday) Nov 28
to Ömer Ağacan, Commit Queue, dart2js-te...@google.com, dart2wasm-t...@google.com, rev...@dartlang.org

Martin Kustermann voted and added 1 comment

Votes added by Martin Kustermann

Commit-Queue+2

1 comment

Patchset-level comments
File-level comment, Patchset 4 (Latest):
Martin Kustermann . resolved

Thanks, Omer!

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I58489303dc10bb265ef730c05a4fc78a8f598edb
Gerrit-Change-Number: 464980
Gerrit-PatchSet: 4
Gerrit-Owner: Martin Kustermann <kuste...@google.com>
Gerrit-Reviewer: Martin Kustermann <kuste...@google.com>
Gerrit-Reviewer: Ömer Ağacan <ome...@google.com>
Gerrit-Comment-Date: Fri, 28 Nov 2025 11:22:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Commit Queue (Gerrit)

unread,
Nov 28, 2025, 6:23:06 AM (yesterday) Nov 28
to Martin Kustermann, Ömer Ağacan, dart2js-te...@google.com, dart2wasm-t...@google.com, rev...@dartlang.org

Commit Queue submitted the change

Change information

Commit message:
[dart2wasm] Fix access of constants under deferred load guard

When accessing a constant under a load guard we can push the constant to
the deferred module (as we only access it under the guard that the
module has been loaded). The access has to therefore also use the
constant initializer function from the deferred module.

We also remove `--extra-compiler-option` prefix for
`--enable-deferred-loading` as the prefix isn't recognized by
dartdev.
Change-Id: I58489303dc10bb265ef730c05a4fc78a8f598edb
Reviewed-by: Ömer Ağacan <ome...@google.com>
Commit-Queue: Martin Kustermann <kuste...@google.com>
Files:
  • M pkg/dart2wasm/lib/constants.dart
  • M pkg/dart2wasm/tool/compile_benchmark
  • M tests/language/deferred/regression_22995_test.dart
  • A tests/web/wasm/deferred_constant_use_under_load_guard_def.dart
  • A tests/web/wasm/deferred_constant_use_under_load_guard_def1.dart
  • A tests/web/wasm/deferred_constant_use_under_load_guard_def2.dart
  • A tests/web/wasm/deferred_constant_use_under_load_guard_test.dart
  • M tests/web/wasm/source_map_simple_optimized_deferred_test.dart
Change size: M
Delta: 8 files changed, 77 insertions(+), 10 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Ömer Ağacan
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I58489303dc10bb265ef730c05a4fc78a8f598edb
Gerrit-Change-Number: 464980
Gerrit-PatchSet: 5
Gerrit-Owner: Martin Kustermann <kuste...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages