-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This CL adds stub for each concrete mixed in member into mixin applications. The body of the stub calls the original member via a super call. This addition means that resolution of super access now use the stub and not the original declaration as the target, which means that it will be correct even when mixed in members are cloned. For this reason, dart2js no longer needs to perform its own super member resolution. When a super call targets a mixin super stub (after cloning) it can be optimized away by redirecting the call to the `stubTarget` of the call. This optimization is performed in dart2js. Since dart2js now uses the correct super target, its runtime mixin application needs to avoid overriding members already declared in the mixin application. These members are the forwarding super stubs which ensure that correct runtime types when members with covariant parameters are implemented. Change-Id: Iab71ffcc400aa6a683987bc20b9553a263ebc8e1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/176526 Commit-Queue: Johnni Winther <[email protected]> Reviewed-by: Sigmund Cherem <[email protected]> Reviewed-by: Dmitry Stefantsov <[email protected]>
- Loading branch information
1 parent
c7b6e6a
commit 52db62d
Showing
213 changed files
with
3,930 additions
and
892 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.