dart-sdk/sdk_nnbd
Nicholas Shahan a6664e093b [ddc] Update types in JSArray operations
- Avoid unnecessary type checks.
- Convert comment syntax to actual generic method syntax.
- Cleanup some type Strings from the JS foreign interface.
- Use var on LHS more consistently.

Performance optimizations can be seen in the ArrayLoop
benchmarks with the highest being ArrayLoop.pseudopoly.forEach
with a 34.15% improvement.

These changes also avoid a large performance regression when
we unfork and the array contains legacy or nullable types.

Change-Id: I88e21a7b0d36d9bb9ba1b0e8ba24326f2b2c8229
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/140760
Reviewed-by: Mark Zhou <markzipan@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2020-03-26 20:12:53 +00:00
..
bin dart2js nnbd setup 2020-01-21 06:22:51 +00:00
lib [ddc] Update types in JSArray operations 2020-03-26 20:12:53 +00:00
api_readme.md Update the API docs readme 2020-01-16 21:23:09 +00:00
BUILD.gn Add dartdev as a pkg/ utility that should have a snapshot generated and added in the Dart SDK 2020-02-25 07:16:10 +00:00