Nate Biggs
182742a61c
[dart2js] Migrate masks.dart (and associated part files) to null safety
...
The changes between inferrer/ and inferrer_experimental/ are identical. The changes were made in one and then the files were re-copied into the other.
Change-Id: I2bb9d54ee39e8b9acba55e5e4c83392e5ab59586
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/260320
Reviewed-by: Mayank Patke <fishythefish@google.com >
Commit-Queue: Nate Biggs <natebiggs@google.com >
2022-09-22 00:29:47 +00:00
Nate Biggs
48b2cb6ea2
[dart2js] Prep for masks.dart null safety migration.
...
The changes between inferrer/ and inferrer_experimental/ are identical. The changes were made in one and then the files were re-copied into the other.
Change-Id: I5efd388913a2bdab9d6da028c0b753ba7264f3c1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/260246
Reviewed-by: Mayank Patke <fishythefish@google.com >
Commit-Queue: Nate Biggs <natebiggs@google.com >
2022-09-21 23:37:46 +00:00
Nate Biggs
76169b54a8
[dart2js] Migrate interceptor_data.dart to null safety.
...
Change-Id: I0c3f767cad1ae372d116a13b408affb967a56f2a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/260245
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Auto-Submit: Nate Biggs <natebiggs@google.com >
2022-09-21 19:56:01 +00:00
Nate Biggs
3a7e7430dc
[dart2js] Prep interceptor_data.dart for migration.
...
Change-Id: If3db12dd0fb02c09906503150525d2381c65f2ac
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/260244
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Auto-Submit: Nate Biggs <natebiggs@google.com >
2022-09-21 19:56:01 +00:00
Sigmund Cherem
3add88c955
[dart2js] cleanup element_map_impl
...
Small follow up cleanup in element_map_impl addressing comments from the
previous code review.
Change-Id: I1eea8bba35575b953de4686351e60f0cbf353d84
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/260066
Commit-Queue: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Mayank Patke <fishythefish@google.com >
2022-09-20 20:09:05 +00:00
Sigmund Cherem
755f124fcd
[dart2js] prepare to migrate kernel/env.dart
...
This makes kernel/env.dart fully ready for migration.
Change-Id: I1baa5bc7280236e5e2dfdfb060525752eb68c2d7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/260067
Reviewed-by: Mayank Patke <fishythefish@google.com >
Commit-Queue: Sigmund Cherem <sigmund@google.com >
2022-09-20 20:08:37 +00:00
Nate Biggs
a263aeee33
[dart2js] Add methods to closed world for call graph generation.
...
Change-Id: I22240a93e785eea0505d3594fbc41306890e24ba
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/260241
Reviewed-by: Mayank Patke <fishythefish@google.com >
Commit-Queue: Nate Biggs <natebiggs@google.com >
2022-09-20 19:54:35 +00:00
Nate Biggs
e96a0f6c98
[dart2js] Use experimental type strategy from compiler based on flag.
...
Change-Id: I3b79750691792f8f4cc7a8c09d2d4cc9b142f074
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/260240
Reviewed-by: Mayank Patke <fishythefish@google.com >
2022-09-20 19:54:35 +00:00
Sigmund Cherem
7d46dac715
[dart2js] improve nullsafe API for a few _find* methods
...
A few private methods in common/elements.dart are used to lookup classes
and members. This is a step in normalizing these methods, so that we use
different APIs when the values are required and when they are not.
Ideally this is a change we'd do more generally in our APIs (e.g. the env APIs
should be split).
Change-Id: Iacc2f012f6f60ae960c61d8897630f6a7f1d60e6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/260080
Commit-Queue: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Mayank Patke <fishythefish@google.com >
2022-09-20 16:34:45 +00:00
Kallen Tu
7578614639
Remove dynamic invocations from custom elements in html_dart2js.
...
Registering custom elements are already broken -- see: https://github.com/dart-lang/sdk/issues/49536 . There are plans on deleting this code at some point. This current change cleans up dynamic invocations in the deprecated code.
Removes cruft on already-deprecated code and doing it now because I assume dynamic clean up will finish before the issue resolves.
Change-Id: Ic6250c139c5d9b08d88650110f55442a7bf5dd42
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/259247
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Lasse Nielsen <lrn@google.com >
Commit-Queue: Kallen Tu <kallentu@google.com >
Reviewed-by: Leaf Petersen <leafp@google.com >
2022-09-20 16:16:06 +00:00
Sigmund Cherem
026f253075
[dart2js] migreate js_model/element_map_impl
...
Change-Id: Ie490c4b592a9caa155d22eefe24af1a2816414df
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/259640
Reviewed-by: Mayank Patke <fishythefish@google.com >
Commit-Queue: Sigmund Cherem <sigmund@google.com >
2022-09-20 04:14:52 +00:00
Nate Biggs
27f4d280b7
[dart2js] Rename inferrerExperimental to inferrer_experimental
...
Change-Id: Ia951e055c4ecd30843a76aa7a84dde091c2fc73d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/259940
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Commit-Queue: Nate Biggs <natebiggs@google.com >
2022-09-19 18:19:11 +00:00
Kallen Tu
c903b8a3f5
Expose the members of _ProcessImpl to avoid dynamic invocations.
...
Change-Id: I676f3d5742bffb79bc0815ff55d09d09a5afe305
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/258640
Commit-Queue: Kallen Tu <kallentu@google.com >
Reviewed-by: Leaf Petersen <leafp@google.com >
2022-09-16 21:28:30 +00:00
Srujan Gaddam
8a081b95c6
[pkg:js] Add type/conformance checking for createStaticInteropMock
...
Bug: https://github.com/dart-lang/sdk/issues/49351
Adds checks for the following cases:
- Type arguments to createStaticInteropMock are correct
- No missing members in implementing class
- Inherited and non-overridden @staticInterop members are implemented
- Dart class can implement through inheritance and mixins
- Implemented members are correct subtypes of @staticInterop members
- Potential extension member conflicts that are attempted to be
resolved through subtyping rules
Change-Id: Iacbe5846040ba7fab41459aa19be77351cf1efca
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/255761
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Riley Porter <rileyporter@google.com >
2022-09-16 20:13:30 +00:00
Ahmed Ashour
5fe480b788
Fix typos
...
Fix #49864
TEST=ci
Change-Id: I9a7e06d604cd0b4f56f2ac229ab3fc9f01cb9d76
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256824
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Reviewed-by: Lasse Nielsen <lrn@google.com >
Reviewed-by: Liam Appelbe <liama@google.com >
Reviewed-by: Mayank Patke <fishythefish@google.com >
2022-09-16 19:35:00 +00:00
Nate Biggs
433c9eb4ee
[dart2js] Add member applies to sets and builder.
...
Will be used during call hierarchy analysis in combination with explicit call graph construction.
Currently typemasks do not support the `difference` operation and so we cannot fully narrow the type cones based on the call hierarchy. An implementation is included here of the applies-to set with subtraction of overrides.
Change-Id: I3f6c113787a4d26e9751added482791365c12832
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/259560
Reviewed-by: Mayank Patke <fishythefish@google.com >
Commit-Queue: Nate Biggs <natebiggs@google.com >
2022-09-16 02:54:10 +00:00
Kallen Tu
af20d93e56
Type RandomAccessFile in io_resource_info to avoid dynamic invocation of path
...
There's one only one path for creating a _FileResourceInfo which comes from RandomAccessFile. Type the `file` field to avoid a dynamic call to `.path`.
Change-Id: Ia1041d5b221d0496af3dd177562263b31cdf4157
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/259106
Reviewed-by: Leaf Petersen <leafp@google.com >
Commit-Queue: Kallen Tu <kallentu@google.com >
2022-09-15 20:55:39 +00:00
Nate Biggs
9a91ff88fe
[dart2js] Add experimental inferrer to Dart2JS.
...
Changes to experimental inferrer include:
- Subtyping the experimental results classes so that they can be passed around in place of the base results classes.
- Leave out 'abstract_value_domain.dart' and 'abstract_value_strategy.dart'. All references to these in the experimental inferrer refer to the version in the base inferrer. These AbstractValue* types leak out of the inferrer and require more significant changes to duplicate. If necessary we can revisit these down the road.
Change-Id: I91ff44336c0471cb64ad4e0d36d727a38caea2fd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/259261
Reviewed-by: Mayank Patke <fishythefish@google.com >
Commit-Queue: Nate Biggs <natebiggs@google.com >
2022-09-15 20:02:19 +00:00
Johnni Winther
13b5ca415f
[cfe] Don't add super-initializer and body to external constructors
...
Closes #28565
Change-Id: Ic1eb554cab2723bb16291216d127bae30f965292
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/259160
Reviewed-by: Mayank Patke <fishythefish@google.com >
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com >
Commit-Queue: Johnni Winther <johnniwinther@google.com >
2022-09-14 18:48:43 +00:00
Kallen Tu
aad35b490f
Remove dynamic invocations in error handling in directory_impl.
...
Change-Id: Idb1ac4490efd74a2ff98a3d9f0c57a74299ce413
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/258512
Reviewed-by: Lasse Nielsen <lrn@google.com >
Reviewed-by: Leaf Petersen <leafp@google.com >
Commit-Queue: Kallen Tu <kallentu@google.com >
2022-09-14 07:24:53 +00:00
Kallen Tu
7055da30a7
Remove dynamic invocations from io file classes.
...
Change-Id: Iaf556ca462b9d962557b627c59220101f384ae51
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/258380
Commit-Queue: Kallen Tu <kallentu@google.com >
Reviewed-by: Leaf Petersen <leafp@google.com >
2022-09-09 17:45:45 +00:00
Mayank Patke
581db69c7a
[dart2js] Avoid adding empty type rules.
...
The fragment emitter already tries to skip the call to `addRules` if the
ruleset is empty, but this occurs too early. The ruleset encoder strips
tautologies like `T <: T` and `InterfaceType <: Object`, but this occurs
after the empty check.
This CL removes the preprocessing from the encoder and instead performs
checks when entries are added to the ruleset, fixing the issue.
Change-Id: I62f937e0ff6abac12973f82b2c89d8ea6f3162b4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/258040
Reviewed-by: Joshua Litt <joshualitt@google.com >
Commit-Queue: Mayank Patke <fishythefish@google.com >
2022-09-08 19:25:43 +00:00
Kallen Tu
10a1ac18ab
Eliminate dynamic [] calls from common, directory_impl and link.
...
Change-Id: I91be3303d957d5c746e33099b6238b51243ba60f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/257140
Reviewed-by: Leaf Petersen <leafp@google.com >
Commit-Queue: Kallen Tu <kallentu@google.com >
2022-09-08 17:17:03 +00:00
Michael Thomsen
17972ddce5
Move swarm to a test folder to avoid confusion that this might
...
be a customer facing app sample.
Bug: None
Change-Id: I94944d4d5677b08eaf6c27ecf26e8503d8eae38f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/255255
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Jonas Termansen <sortie@google.com >
Commit-Queue: Michael Thomsen <mit@google.com >
2022-09-07 14:08:18 +00:00
Sigmund Cherem
ed5587dc2d
[dart2js] add env_interfaces to prepare for migrating element_impl
...
Change-Id: Ic6c69a97e1e11a72e96ba1aeef7f6861568b9d52
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/257481
Reviewed-by: Nate Biggs <natebiggs@google.com >
Commit-Queue: Sigmund Cherem <sigmund@google.com >
2022-09-06 20:24:36 +00:00
Sigmund Cherem
34ce99b003
[dart2js] prepare to migrate js_model/element_map_impl.dart
...
Change-Id: I9912ef4abbf9800f34231cc4d4c8b35af63252ee
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/257462
Reviewed-by: Nate Biggs <natebiggs@google.com >
2022-09-06 20:24:36 +00:00
Sigmund Cherem
42d3625e70
[dart2js] Migrate jsmodel/element_map.dart
...
Change-Id: I577ccf256704412d1da26a9233b29e2771e4709d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/257461
Reviewed-by: Mayank Patke <fishythefish@google.com >
Reviewed-by: Nate Biggs <natebiggs@google.com >
2022-09-06 20:24:36 +00:00
Kallen Tu
8264bd94d1
Revert "Eliminate dynamic call() in html_dart2js in _EventStreamSubscription."
...
This reverts commit f630a7c07d .
Reason for revert: Remove the `is` check since it's more costly than removing a dynamic call for web.
Original change's description:
> Eliminate dynamic call() in html_dart2js in _EventStreamSubscription.
>
> Change-Id: Ia4a300c210bc505f71cc3bfb1a1b911c96c1aa53
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256703
> Commit-Queue: Kallen Tu <kallentu@google.com >
> Reviewed-by: Leaf Petersen <leafp@google.com >
> Reviewed-by: Lasse Nielsen <lrn@google.com >
# Not skipping CQ checks because original CL landed > 1 day ago.
Change-Id: I36b2f8cedc5f8b5235832ea29ea5eb40e2e8dc92
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/257421
Reviewed-by: Srujan Gaddam <srujzs@google.com >
Commit-Queue: Kallen Tu <kallentu@google.com >
2022-09-02 18:44:53 +00:00
Sigmund Cherem
eee6efc1f8
[dart2js] migrate closure.dart
...
Likely we can merge back closure_migrated into closure, but I'll keep them
separate to make the review process simpler.
Change-Id: I505a5b758f866fb9280a3453e57818be09ce8150
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/257163
Reviewed-by: Stephen Adams <sra@google.com >
Commit-Queue: Sigmund Cherem <sigmund@google.com >
2022-09-01 19:21:52 +00:00
Kallen Tu
f630a7c07d
Eliminate dynamic call() in html_dart2js in _EventStreamSubscription.
...
Change-Id: Ia4a300c210bc505f71cc3bfb1a1b911c96c1aa53
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256703
Commit-Queue: Kallen Tu <kallentu@google.com >
Reviewed-by: Leaf Petersen <leafp@google.com >
Reviewed-by: Lasse Nielsen <lrn@google.com >
2022-09-01 00:27:29 +00:00
Johnni Winther
02c47b6de0
[cfe] Support const records
...
Change-Id: I3c0724e18a405ec0fe2d3a60e2722d78f9e3bed6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256666
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com >
Reviewed-by: Stephen Adams <sra@google.com >
Commit-Queue: Johnni Winther <johnniwinther@google.com >
2022-08-31 21:47:01 +00:00
Sigmund Cherem
7393f9f9d6
[dart2js] migrate env.dart to null safety
...
There is a cycle between env and closure, so this also pulls out a subset
of closure to closure_migrated.dart
Change-Id: I7350c6a6efcb58c8343d93da93712e387925ca15
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256967
Commit-Queue: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Nate Biggs <natebiggs@google.com >
2022-08-31 21:35:59 +00:00
Kallen Tu
e0884c91f1
Eliminate dynamic call of .createElement in html_dart2js.
...
Change-Id: I76ab0063eee4213f20483172c16f86e651536945
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256740
Reviewed-by: Lasse Nielsen <lrn@google.com >
Commit-Queue: Kallen Tu <kallentu@google.com >
Reviewed-by: Leaf Petersen <leafp@google.com >
2022-08-30 15:48:40 +00:00
Kevin Moore
460075336b
pkg:compiler - enable and fix use_super_parameters lint
...
Change-Id: I2d8ae1db222fc70729fda9eeb62296285de9da33
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256760
Auto-Submit: Kevin Moore <kevmoo@google.com >
Commit-Queue: Mayank Patke <fishythefish@google.com >
Commit-Queue: Kevin Moore <kevmoo@google.com >
Reviewed-by: Mayank Patke <fishythefish@google.com >
2022-08-29 22:56:27 +00:00
Kevin Moore
677cb7fb3e
Eliminate more dynamic invocations in pkg/compiler
...
Change-Id: Ic1d3b118ccb80ea41197c464348f98f962b1ae67
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256741
Auto-Submit: Kevin Moore <kevmoo@google.com >
Reviewed-by: Mayank Patke <fishythefish@google.com >
Commit-Queue: Mayank Patke <fishythefish@google.com >
2022-08-29 22:51:46 +00:00
Kallen Tu
2bb03e4344
Eliminate .style and ._initKeyboardEvent from html_dart2js.
...
Change-Id: I16ea832e8eff2b2aea02fb73e1cf7ee9702923af
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256581
Reviewed-by: Leaf Petersen <leafp@google.com >
Commit-Queue: Kallen Tu <kallentu@google.com >
Reviewed-by: Lasse Nielsen <lrn@google.com >
2022-08-29 20:06:45 +00:00
Kallen Tu
bcb9fd28fb
Eliminate [] dynamic call in io_resource_info.
...
Change-Id: I80a30d8c31ecc41f2ebf6f7fc8ac6dd41225ea4e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256600
Reviewed-by: Lasse Nielsen <lrn@google.com >
Reviewed-by: Leaf Petersen <leafp@google.com >
Commit-Queue: Kallen Tu <kallentu@google.com >
2022-08-29 18:53:15 +00:00
Kallen Tu
78a9f52544
Eliminate dynamic calls with file and subscription in stdio.
...
Change-Id: I3dbdb2c14729fd1c74e733a59234df5035386cfd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256249
Reviewed-by: Leaf Petersen <leafp@google.com >
Commit-Queue: Kallen Tu <kallentu@google.com >
2022-08-26 20:21:21 +00:00
Chloe Stefantsova
ddff459c7f
[cfe] Add RecordType, RecordLiteral, and associated nodes
...
TEST=Covered by upcoming language and co19 tests.
Change-Id: Ibe8ecfb7f854adce5646125f6909066e27424665
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256066
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Reviewed-by: Stephen Adams <sra@google.com >
Reviewed-by: Nicholas Shahan <nshahan@google.com >
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com >
Reviewed-by: Alexander Markov <alexmarkov@google.com >
2022-08-25 10:33:35 +00:00
Lasse R.H. Nielsen
8a883fa54d
Change : to = for default values in pkg.
...
Leaves some in parser test:
pkg/front_end/parser_testcases/error_recovery/keyword_named_formal_parameter_prime.dart
TEST=Refactoring, covered by existing tests.
Change-Id: I7a83ef95df3cbd283878b3685b5c747bd89a1b16
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256125
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Commit-Queue: Lasse Nielsen <lrn@google.com >
2022-08-24 15:57:16 +00:00
Kallen Tu
fa7ffc9ac1
Eliminate dynamic calls in SVGElement.
...
Change-Id: I60c48145fb8ffe5cc5d1c20f86cfa9f067c2705c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256026
Reviewed-by: Lasse Nielsen <lrn@google.com >
Commit-Queue: Kallen Tu <kallentu@google.com >
Reviewed-by: Srujan Gaddam <srujzs@google.com >
2022-08-23 18:21:40 +00:00
Kallen Tu
64c3ea27da
Eliminate dynamic calls to remove and tagName.
...
Additionally, fixed the template for html_dart2js so the generator would generate the correct code.
Change-Id: I2172bb10db413169b86690faa027365ff72e3d68
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/255763
Reviewed-by: Srujan Gaddam <srujzs@google.com >
Reviewed-by: Lasse Nielsen <lrn@google.com >
Commit-Queue: Kallen Tu <kallentu@google.com >
2022-08-22 17:27:39 +00:00
Michael Thomsen
111dfc1844
Add readme for swarm
...
Bug: None
Change-Id: Ib5447eb038545a6b34f54201ad2e8d5a7e7ae5c5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/255991
Reviewed-by: Jonas Termansen <sortie@google.com >
2022-08-22 11:43:51 +00:00
Srujan Gaddam
9f10a3bc16
[pkg:js] Add JsInteropChecks to Wasm backend
...
Also cleans up and unifies some behavior across the backends:
- avoiding reinstantiating JsInteropChecks for every library
- having the native classes as a member instead of recomputing on dart2js
Now that these checks exist, we can add lib/js/static_interop_test to
the test directories the wasm trybot runs.
Change-Id: I912aae988afe7915e80cc13d00b8c47818dfa520
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/255760
Commit-Queue: Srujan Gaddam <srujzs@google.com >
Reviewed-by: Joshua Litt <joshualitt@google.com >
Reviewed-by: William Hesse <whesse@google.com >
2022-08-19 17:48:38 +00:00
Nate Biggs
876fb36c82
[dart2js] Apply correct readers and lookups for deserializing cached entities.
...
Since we are reading data in the context of a different reader, we should make sure that we use that reader's helpers.
Change-Id: Id7fbf3662104d131c1b31bff080a171bd3d38a88
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/255800
Reviewed-by: Joshua Litt <joshualitt@google.com >
Commit-Queue: Nate Biggs <natebiggs@google.com >
2022-08-19 16:55:06 +00:00
Kallen Tu
add88f24c2
Eliminate dynamic calls to firstChild, remove and _innerHtml.
...
Change-Id: If984af54620727929ea8deb182226ce8d6514bb6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/255581
Reviewed-by: Lasse Nielsen <lrn@google.com >
Commit-Queue: Kallen Tu <kallentu@google.com >
2022-08-18 21:50:14 +00:00
Nate Biggs
4b78f1b6c7
Reland "[dart2js] Enable flag (canary -> shipping) to intern dart type values."
...
This reverts commit 0e1d24ae80 .
Reason for revert: Interning bug fixed by https://dart-review.googlesource.com/c/sdk/+/255257
Original change's description:
> Revert "[dart2js] Enable flag (canary -> shipping) to intern dart type values."
>
> This reverts commit e833510bc5 .
>
> Reason for revert: breaks many tests in G3, see b/242822389
>
> Original change's description:
> > [dart2js] Enable flag (canary -> shipping) to intern dart type values.
> >
> > Change-Id: Iebac3a7c57665eccd100146f892b891a4591f554
> > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/255201
> > Reviewed-by: Stephen Adams <sra@google.com >
> > Commit-Queue: Stephen Adams <sra@google.com >
>
> TBR=sra@google.com ,natebiggs@google.com
>
> Change-Id: I9b2be8fc119f84f33181245cdfce416d13660daf
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/255401
> Reviewed-by: Ilya Yanok <yanok@google.com >
> Reviewed-by: Alexander Thomas <athom@google.com >
> Commit-Queue: Ilya Yanok <yanok@google.com >
# Not skipping CQ checks because original CL landed > 1 day ago.
Change-Id: I51336c2e53dd58fed6216e9a5c818f05e8795a8f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/255663
Reviewed-by: Nate Biggs <natebiggs@google.com >
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com >
Commit-Queue: Nate Biggs <natebiggs@google.com >
2022-08-18 21:30:54 +00:00
Nate Biggs
61d7200840
[dart2js] Add == override to Dart2JS ir.InterfaceType subclasses.
...
These subtypes were previously colliding with instances of the base ir.InterfaceType class in the interner map.
Change-Id: Iec6b53fa82e0994142c408a0a2be1ddd045898e8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/255257
Commit-Queue: Nate Biggs <natebiggs@google.com >
Reviewed-by: Stephen Adams <sra@google.com >
2022-08-18 20:12:44 +00:00
Nate Biggs
7ddee84e78
[dart2js] Update SSA/Codegen inlining metrics.
...
Add several more inlining metrics to SSA:
- getters (ellisions vs. inlines)
- setters (ellisions vs. inlines)
- intercepted length calls
- if conditions
- is checks
- late sentinel checks
After digging these are all the opportunities for optimization that I saw that I thought might be affected by changes in global inference. Open to feedback on whether any of these are unnecessary or if there's any other things worth tracking.
Change-Id: I70ff279a797f71b39b2bc02c00fbb3f6e149cb2a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/255202
Reviewed-by: Stephen Adams <sra@google.com >
Commit-Queue: Nate Biggs <natebiggs@google.com >
2022-08-18 19:23:54 +00:00
Chloe Stefantsova
1611fe6f45
[cfe] Separate out IntersectionType from TypeParameterType
...
TEST=Covered by existing tests
Change-Id: Ie7b99b1c109edff5198cfbf5d22e1cfb1dc130d2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253665
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Reviewed-by: Mayank Patke <fishythefish@google.com >
Reviewed-by: Alexander Markov <alexmarkov@google.com >
Reviewed-by: Nicholas Shahan <nshahan@google.com >
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com >
2022-08-18 08:47:29 +00:00