mirror of
https://github.com/dart-lang/sdk
synced 2024-09-06 00:59:09 +00:00
![]() 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> |
||
---|---|---|
.. | ||
_http | ||
_internal | ||
_wasm | ||
async | ||
cli | ||
collection | ||
convert | ||
core | ||
developer | ||
ffi | ||
html | ||
indexed_db/dart2js | ||
internal | ||
io | ||
isolate | ||
js | ||
js_interop | ||
js_interop_unsafe | ||
js_util | ||
math | ||
mirrors | ||
svg/dart2js | ||
typed_data | ||
vmservice | ||
web_audio/dart2js | ||
web_gl/dart2js | ||
web_sql/dart2js | ||
analysis_options.yaml | ||
libraries.json | ||
libraries.yaml | ||
PRESUBMIT.py | ||
vmservice_libraries.json | ||
vmservice_libraries.yaml |