dart-sdk/sdk/lib
Ömer Sinan Ağacan 8c5f895cac [dart2wasm, vm] Use list implementation class methods in List factories
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>
2023-08-17 12:08:30 +00:00
..
_http Remove trailing whitespace from header values. 2023-08-15 16:58:12 +00:00
_internal [dart2wasm, vm] Use list implementation class methods in List factories 2023-08-17 12:08:30 +00:00
_wasm [dart2wasm] Fix Wasm{Int,Float}Array.fill value types 2023-08-08 15:27:37 +00:00
async Update old linter site links to dart.dev 2023-08-04 19:45:23 +00:00
cli
collection Add a notice about HashMap keys changing hashCode 2023-06-23 00:10:19 +00:00
convert Make utf8.encode() have Uint8List return type 2023-07-11 08:54:33 +00:00
core Remove duplicate doc in Uri.encodeQueryComponent() 2023-08-08 18:11:51 +00:00
developer [dart:developer] Improve documentation of Service.getIsolateId and Service.getObjectId 2023-08-16 15:13:47 +00:00
ffi [vm/ffi] Weak RawReceivePorts and NativeCallables 2023-08-14 02:30:11 +00:00
html Revert "[analyzer] simplify the libraries.dart file" 2023-08-09 10:27:47 +00:00
indexed_db/dart2js Tighten introductory text 2023-05-16 13:55:23 +00:00
internal [cfe] Check @patch annotations 2023-06-13 07:27:08 +00:00
io Use utf8.encode() instead of longer const Utf8Encoder.convert() 2023-07-24 09:28:38 +00:00
isolate [vm/ffi] Weak RawReceivePorts and NativeCallables 2023-08-14 02:30:11 +00:00
js Reland "[pkg:js/dart:js_interop] Move annotations to dart:_js_annotations" 2023-05-02 15:24:18 +00:00
js_interop [dart:js_interop] Relabel globalJSObject as globalContext and point to object used in static interop lowerings 2023-08-15 20:57:17 +00:00
js_interop_unsafe [dart:js_interop] Expose dart:js_interop through dart.dev 2023-05-04 17:41:53 +00:00
js_util
math
mirrors
svg/dart2js
typed_data
vmservice
web_audio/dart2js
web_gl/dart2js
web_sql/dart2js
analysis_options.yaml
libraries.json [dart2wasm] Make implementation libraries part of core to hide internals 2023-08-14 11:09:10 +00:00
libraries.yaml [dart2wasm] Make implementation libraries part of core to hide internals 2023-08-14 11:09:10 +00:00
PRESUBMIT.py
vmservice_libraries.json
vmservice_libraries.yaml