-
Notifications
You must be signed in to change notification settings - Fork 6k
Prepare flutter engine for enabling private final field promotion. #43959
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
jonahwilliams
left a comment
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.
LGTM
goderbauer
left a comment
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.
LGTM
| // later used to fix the parent-child and sibling relationships between | ||
| // objects. | ||
| for (final SemanticsNodeUpdate nodeUpdate in update._nodeUpdates!) { | ||
| final List<SemanticsNodeUpdate> nodeUpdates = update._nodeUpdates!; |
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.
please add an assert where the nodeUpdates variable goes out of scope that verifies that update._nodeUpdates has not changed
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.
Done
|
test-exempt: code refactor with no semantic change |
|
@jonahwilliams (engine sherif) do you know what's up with the "Linux Fuchsia FEMU" check? It keeps timing out. |
|
I do not. I'm going to click rebase just in case, but I don't see this happening elsewhere so hopefully its just a flake... |
Thanks, Jonah! It looks like everything is working now. |
…131309) flutter/engine@db711f1...7f3b0d6 2023-07-26 [email protected] Roll fallback fonts. (flutter/engine#44000) 2023-07-26 [email protected] Roll Skia from 12d41b6f66ed to 28773cec6e8d (2 revisions) (flutter/engine#44011) 2023-07-26 [email protected] Prepare flutter engine for enabling private final field promotion. (flutter/engine#43959) 2023-07-26 [email protected] Manual roll Dart SDK from 61ab5422fb7b to b1e82e2e55b2 (3 revisions) (flutter/engine#44018) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…lutter#131309) flutter/engine@db711f1...7f3b0d6 2023-07-26 [email protected] Roll fallback fonts. (flutter/engine#44000) 2023-07-26 [email protected] Roll Skia from 12d41b6f66ed to 28773cec6e8d (2 revisions) (flutter/engine#44011) 2023-07-26 [email protected] Prepare flutter engine for enabling private final field promotion. (flutter/engine#43959) 2023-07-26 [email protected] Manual roll Dart SDK from 61ab5422fb7b to b1e82e2e55b2 (3 revisions) (flutter/engine#44018) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…lutter#131309) flutter/engine@db711f1...7f3b0d6 2023-07-26 [email protected] Roll fallback fonts. (flutter/engine#44000) 2023-07-26 [email protected] Roll Skia from 12d41b6f66ed to 28773cec6e8d (2 revisions) (flutter/engine#44011) 2023-07-26 [email protected] Prepare flutter engine for enabling private final field promotion. (flutter/engine#43959) 2023-07-26 [email protected] Manual roll Dart SDK from 61ab5422fb7b to b1e82e2e55b2 (3 revisions) (flutter/engine#44018) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…lutter#43959) Some parts of the flutter engine are built using the latest version of the Dart SDK, ignoring SDK constraints in `pubspec.yaml` files. Therefore, before the Dart SDK can switch on the "private field promotion" feature (dart-lang/language#2020), these parts of the flutter engine need to be modified so that they won't have any "unnecessary `!`" warnings after field private field promotion is enabled. This PR makes the necessary changes. This PR doesn't introduce any functional change. In principle it might improve performance slightly (by avoiding redundant memory accesses), but in practice the difference is unlikely to rise out of the measurement noise. Issue fixed by this PR: flutter/flutter#131198 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
Some parts of the flutter engine are built using the latest version of the Dart SDK, ignoring SDK constraints in
pubspec.yamlfiles. Therefore, before the Dart SDK can switch on the "private field promotion" feature (dart-lang/language#2020), these parts of the flutter engine need to be modified so that they won't have any "unnecessary!" warnings after field private field promotion is enabled. This PR makes the necessary changes.This PR doesn't introduce any functional change. In principle it might improve performance slightly (by avoiding redundant memory accesses), but in practice the difference is unlikely to rise out of the measurement noise.
Issue fixed by this PR: flutter/flutter#131198
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.