mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 05:07:52 +00:00
8c5f895cac
In dart2wasm, implementation class methods for `filled` and `generate` are much faster: - In `filled` we use a single `array.fill`. - In `generate` we update the array directly without bounds checks. In VM, this shouldn't make things worse, but it may make things better as the `result[i] = ...` lines will have a more precise receiver types in the implementation class methods. This replaces the explicit loops in `List.filled` and `generate` factories with implementation class `filled` and `generate` methods. Tested: Existing tests. Change-Id: Ib24e5be687df325a43d335657a7142f7d9f980ce Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321040 Commit-Queue: Ömer Ağacan <omersa@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com> |
||
---|---|---|
.. | ||
bin | ||
lib | ||
.gitignore | ||
api_readme.md | ||
BUILD.gn | ||
OWNERS |