Skip to content

Commit 7cdfa7b

Browse files
committed
Version 2.11.0-213.1.beta
Merge commit 'e256855d07ba9cad5048f012f38a05446ca2fe09' into beta
2 parents 4215dca + e256855 commit 7cdfa7b

File tree

3,466 files changed

+196807
-40361
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,466 files changed

+196807
-40361
lines changed

.dart_tool/package_config.json

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"constraint, update this by running tools/generate_package_config.dart."
1212
],
1313
"configVersion": 2,
14-
"generated": "2020-08-18T15:38:52.410101",
14+
"generated": "2020-10-09T10:15:45.502457",
1515
"generator": "tools/generate_package_config.dart",
1616
"packages": [
1717
{
@@ -136,7 +136,7 @@
136136
"name": "build_integration",
137137
"rootUri": "../pkg/build_integration",
138138
"packageUri": "lib/",
139-
"languageVersion": "2.0"
139+
"languageVersion": "2.1"
140140
},
141141
{
142142
"name": "charcode",
@@ -178,13 +178,13 @@
178178
"name": "csslib",
179179
"rootUri": "../third_party/pkg/csslib",
180180
"packageUri": "lib/",
181-
"languageVersion": "2.10"
181+
"languageVersion": "2.11"
182182
},
183183
{
184184
"name": "dart2js_info",
185185
"rootUri": "../third_party/pkg/dart2js_info",
186186
"packageUri": "lib/",
187-
"languageVersion": "2.0"
187+
"languageVersion": "2.3"
188188
},
189189
{
190190
"name": "dart2js_tools",
@@ -208,7 +208,7 @@
208208
"name": "dart_style",
209209
"rootUri": "../third_party/pkg_tested/dart_style",
210210
"packageUri": "lib/",
211-
"languageVersion": "2.7"
211+
"languageVersion": "2.9"
212212
},
213213
{
214214
"name": "dartdev",
@@ -220,7 +220,7 @@
220220
"name": "dartdoc",
221221
"rootUri": "../third_party/pkg/dartdoc",
222222
"packageUri": "lib/",
223-
"languageVersion": "2.7"
223+
"languageVersion": "2.10"
224224
},
225225
{
226226
"name": "dartfix",
@@ -348,8 +348,7 @@
348348
{
349349
"name": "js_runtime",
350350
"rootUri": "../sdk/lib/_internal/js_runtime",
351-
"packageUri": "lib/",
352-
"languageVersion": "2.10"
351+
"packageUri": "lib/"
353352
},
354353
{
355354
"name": "json_rpc_2",
@@ -426,7 +425,7 @@
426425
"name": "native_stack_traces",
427426
"rootUri": "../pkg/native_stack_traces",
428427
"packageUri": "lib/",
429-
"languageVersion": "2.8"
428+
"languageVersion": "2.10"
430429
},
431430
{
432431
"name": "nnbd_migration",
@@ -446,11 +445,22 @@
446445
"packageUri": "lib/",
447446
"languageVersion": "2.2"
448447
},
448+
{
449+
"name": "observatory_2",
450+
"rootUri": "../runtime/observatory_2",
451+
"packageUri": "lib/",
452+
"languageVersion": "2.2"
453+
},
449454
{
450455
"name": "observatory_test_package",
451456
"rootUri": "../runtime/observatory/tests/service/observatory_test_package",
452457
"languageVersion": "2.7"
453458
},
459+
{
460+
"name": "observatory_test_package_2",
461+
"rootUri": "../runtime/observatory_2/tests/service_2/observatory_test_package_2",
462+
"languageVersion": "2.7"
463+
},
454464
{
455465
"name": "package_config",
456466
"rootUri": "../third_party/pkg_tested/package_config",
@@ -485,7 +495,7 @@
485495
"name": "pub",
486496
"rootUri": "../third_party/pkg/pub",
487497
"packageUri": "lib/",
488-
"languageVersion": "2.3"
498+
"languageVersion": "2.9"
489499
},
490500
{
491501
"name": "pub_semver",
@@ -508,8 +518,7 @@
508518
{
509519
"name": "sdk_library_metadata",
510520
"rootUri": "../sdk/lib/_internal/sdk_library_metadata",
511-
"packageUri": "lib/",
512-
"languageVersion": "2.10"
521+
"packageUri": "lib/"
513522
},
514523
{
515524
"name": "shelf",

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ compile_commands.json
6161
.gdb_history
6262

6363
# Clangd files
64+
.cache/clangd
6465
.clangd
6566

6667
# Built by chromebot and downloaded from Google Storage

CHANGELOG.md

Lines changed: 63 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,59 @@
1-
## 2.10.0
1+
## 2.11.0
2+
3+
### Core libraries
4+
5+
#### `dart:io`
6+
7+
* `HttpRequest` will now correctly follow HTTP 308 redirects
8+
(`HttpStatus.permanentRedirect`).
9+
10+
### Dart VM
11+
12+
### Dart2JS
13+
14+
* Removed `--no-defer-class-types` and `--no-new-deferred-split`.
15+
16+
### Tools
17+
18+
#### Dartanalyzer
19+
20+
* Removed the `--use-fasta-parser`, `--preview-dart-2`, and
21+
`--enable-assert-initializers` command line options. These options haven't
22+
been supported in a while and were no-ops.
23+
24+
#### Linter
25+
26+
Updated the Linter to `0.1.121`, which includes:
27+
28+
# 0.1.121
29+
30+
* Performance improvements to `always_use_package_imports`,
31+
`avoid_renaming_method_parameters`, `prefer_relative_imports` and
32+
`public_member_api_docs`.
33+
* (internal): updates to analyzer `0.40.4` APIs
34+
* New lint: `cast_nullable_to_non_nullable`.
35+
* New lint: `null_check_on_nullable_type_parameter`.
36+
* New lint: `tighten_type_of_initializing_formals`.
37+
* Updates to `public_member_apis` to check generic type aliases.
38+
* (Internal): updates to adopt new analyzer APIs.
39+
* Fixed `close_sinks` to handle `this`-prefixed property accesses.
40+
* New lint: `unnecessary_null_checks`.
41+
* Fixed `unawaited_futures` to handle `Future` subtypes.
42+
* New lint: `avoid_type_to_string`.
43+
44+
## 2.10.1 - 2020-10-06
45+
46+
This is a patch release that fixes the following issues:
47+
* crashes when developing Flutter applications (issue [#43464][]).
48+
* non-deterministic incorrect program behaviour and/or crashes (issue
49+
[flutter/flutter#66672][]).
50+
* uncaught TypeErrors in DDC (issue [#43661][]).
51+
52+
[#43464]: https://github.com/dart-lang/sdk/issues/43464
53+
[flutter/flutter#66672]: https://github.com/flutter/flutter/issues/66672
54+
[#43661]: https://github.com/dart-lang/sdk/issues/43661
55+
56+
## 2.10.0 - 2020-09-28
257

358
### Core libraries
459

@@ -8,7 +63,7 @@
863
to cancel outgoing HTTP requests and stop following IO operations.
964
* A validation check is added to `path` of class `Cookie`. Having characters
1065
ranging from 0x00 to 0x1f and 0x3b (";") will lead to a `FormatException`.
11-
* The `HttpClient` and `HttpServer` clasess now have a 1 MiB limit for the
66+
* The `HttpClient` and `HttpServer` classes now have a 1 MiB limit for the
1267
total size of the HTTP headers when parsing a request or response, instead
1368
of the former 8 KiB limit for each header name and value. This limit cannot
1469
be configured at this time.
@@ -36,7 +91,7 @@
3691
deferred loading of types, pass `--no-defer-class-types`. See the original
3792
post on the [unsoundness in the deferred loading algorithm][].
3893
* Enables a new sound deferred splitting algorithm. To explicitly disable
39-
the new deferred splitting algorithm, pass `--no-new-deferred-split'.
94+
the new deferred splitting algorithm, pass `--no-new-deferred-split`.
4095
See the original post on the
4196
[unsoundness in the deferred loading algorithm][].
4297

@@ -130,9 +185,14 @@ applications (issue [flutter/flutter#63038][]).
130185
* [Abstract Unix Domain Socket][] is supported on Linux/Android now. Using an
131186
`InternetAddress` with `address` starting with '@' and type being
132187
`InternetAddressType.Unix` will create an abstract Unix Domain Socket.
188+
* On Windows, file APIs can now handle files and directories identified by
189+
long paths (greater than 260 characters). It complies with all restrictions
190+
from [Long Path on Windows][]. Note that `Directory.current` does not work
191+
with long path.
133192

134193
[#42006]: https://github.com/dart-lang/sdk/issues/42006
135194
[Abstract Unix Domain Socket]: http://man7.org/linux/man-pages/man7/unix.7.html
195+
[Long Path on Windows]: https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#maximum-path-length-limitation
136196

137197
#### `dart:html`
138198

DEPS

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ vars = {
3939

4040
# Checked-in SDK version. The checked-in SDK is a Dart SDK distribution in a
4141
# cipd package used to run Dart scripts in the build and test infrastructure.
42-
"sdk_tag": "version:2.10.0-79.0.dev",
42+
"sdk_tag": "version:2.11.0-190.0.dev",
4343

4444
# co19 is a cipd package. Use update.sh in tests/co19[_2] to update these
4545
# hashes. It requires access to the dart-build-access group, which EngProd
4646
# has.
47-
"co19_rev": "d21ed3a1dd64107916db68afdce21709df65e85f",
47+
"co19_rev": "0d84277b464e91f09326292b2943381dfa6056ed",
4848
"co19_2_rev": "e48b3090826cf40b8037648f19d211e8eab1b4b6",
4949

5050
# The internal benchmarks to use. See go/dart-benchmarks-internal
@@ -66,7 +66,7 @@ vars = {
6666

6767
# Revisions of /third_party/* dependencies.
6868
"args_tag": "1.6.0",
69-
"async_rev": "128c461a97dbdbd9336ba000ba5a5c02e79b8651",
69+
"async_rev": "38ace5fa83697928d5f29911e346e6311dd00857",
7070
"bazel_worker_rev": "26680d5e249b249c7216ab2fed0ac8ed4ee285c5",
7171
"benchmark_harness_rev": "ec6b646f5443faa871e126ac1ba248c94ca06257",
7272
"boolean_selector_rev": "665e6921ab246569420376f827bff4585dff0b14",
@@ -76,10 +76,10 @@ vars = {
7676
"charcode_rev": "4a685faba42d86ebd9d661eadd1e79d0a1c34c43",
7777
"chrome_rev" : "19997",
7878
"cli_util_tag" : "0.2.0",
79-
"collection_rev": "583693680fc067e34ca5b72503df25e8b80579f9",
79+
"collection_rev": "52e219581f72a3eac013d6f5550c580962677425",
8080
"convert_rev": "c1b01f832835d3d8a06b0b246a361c0eaab35d3c",
8181
"crypto_rev": "f7c48b334b1386bc5ab0f706fbcd6df8496a87fc",
82-
"csslib_rev": "681a6603f86bbbe64e8af42d722aef63b028d241",
82+
"csslib_rev": "6f77b3dcee957d3e2d5083f666221a220e9ed1f1",
8383
"dart2js_info_rev" : "0632a623b08e1f601c7eba99e0186a581ae799e9",
8484

8585
# Note: Updates to dart_style have to be coordinated with the infrastructure
@@ -97,24 +97,24 @@ vars = {
9797
"dart_style_tag": "1.3.7", # Please see the note above before updating.
9898

9999
"chromedriver_tag": "83.0.4103.39",
100-
"dartdoc_rev" : "b039e21a7226b61ca2de7bd6c7a07fc77d4f64a9",
100+
"dartdoc_rev" : "8f5f30e58bbc0f11f104888ee87f11cbd6b82cc7",
101101
"ffi_rev": "454ab0f9ea6bd06942a983238d8a6818b1357edb",
102102
"fixnum_rev": "16d3890c6dc82ca629659da1934e412292508bba",
103103
"glob_rev": "e9f4e6b7ae8abe5071461cf8f47191bb19cf7ef6",
104-
"html_rev": "083a36cd801a4b787ba156b7c6e4c8b2e2daed4a",
104+
"html_rev": "22f17e97fedeacaa1e945cf84d8016284eed33a6",
105105
"http_io_rev": "2fa188caf7937e313026557713f7feffedd4978b",
106106
"http_multi_server_rev" : "ea269f79321d659208402088f3297e8920a88ee6",
107107
"http_parser_rev": "6e63a97b5aaa2b4d1215fe01683e51fb73258e54",
108108
"http_retry_tag": "0.1.1",
109-
"http_rev": "7b55a2c62a5f6fb680ad7a4607bab7281a235563",
109+
"http_rev": "ca418355b5fc60cf981de3bd7364ec0dd943fa8f",
110110
"http_throttle_tag" : "1.0.2",
111111
"icu_rev" : "79326efe26e5440f530963704c3c0ff965b3a4ac",
112112
"idl_parser_rev": "5fb1ebf49d235b5a70c9f49047e83b0654031eb7",
113113
"intl_tag": "0.16.1",
114114
"jinja2_rev": "2222b31554f03e62600cd7e383376a7c187967a1",
115115
"json_rpc_2_rev": "8f189db8f0c299187a0e8fa959dba7e9b0254be5",
116-
"linter_tag": "0.1.118",
117-
"logging_rev": "9561ba016ae607747ae69b846c0e10958ca58ed4",
116+
"linter_tag": "0.1.121",
117+
"logging_rev": "1590ba0b648a51e7eb3895c612e4b72f72623b6f",
118118
"markupsafe_rev": "8f45f5cfa0009d2a70589bcda0349b8cb2b72783",
119119
"markdown_rev": "dbeafd47759e7dd0a167602153bb9c49fb5e5fe7",
120120
"matcher_rev": "9cae8faa7868bf3a88a7ba45eb0bd128e66ac515",
@@ -142,9 +142,9 @@ vars = {
142142
"source_map_stack_trace_rev": "1c3026f69d9771acf2f8c176a1ab750463309cce",
143143
"source_maps-0.9.4_rev": "38524",
144144
"source_maps_rev": "53eb92ccfe6e64924054f83038a534b959b12b3e",
145-
"source_span_rev": "94833d6cbf4552ebe5d2aa6714acecd93834e53a",
145+
"source_span_rev": "cc7c4288a83f71ecef3414199947b52a8c112c65",
146146
"sse_tag": "e5cf68975e8e87171a3dc297577aa073454a91dc",
147-
"stack_trace_tag": "d3813ca0a77348e0faf0d6af0cc17913e36afa39",
147+
"stack_trace_tag": "45319bfd2a6da228d8c32b06e1da02ad199373c7",
148148
"stagehand_tag": "v3.3.9",
149149
"stream_channel_tag": "c446774fd077c9bdbd6235a7aadc661ef60a9727",
150150
"string_scanner_rev": "1b63e6e5db5933d7be0a45da6e1129fe00262734",
@@ -154,7 +154,7 @@ vars = {
154154
"term_glyph_rev": "6a0f9b6fb645ba75e7a00a4e20072678327a0347",
155155
"test_reflective_loader_tag": "0.1.9",
156156
"test_rev": "e37a93bbeae23b215972d1659ac865d71287ff6a",
157-
"tflite_native_rev": "3c777c40608a2a9f1427bfe0028ab48e7116b4c1",
157+
"tflite_native_rev": "0.4.0+1",
158158
"typed_data_tag": "f94fc57b8e8c0e4fe4ff6cfd8290b94af52d3719",
159159
"usage_tag": "3.4.0",
160160
"vector_math_rev": "0c9f5d68c047813a6dcdeb88ba7a42daddf25025",
@@ -525,16 +525,6 @@ deps = {
525525
"dep_type": "cipd",
526526
},
527527

528-
Var("dart_root") + "/pkg/front_end/testcases/old_dills/dills": {
529-
"packages": [
530-
{
531-
"package": "dart/cfe/dart2js_dills",
532-
"version": "binary_version:45",
533-
}
534-
],
535-
"dep_type": "cipd",
536-
},
537-
538528
# TODO(37531): Remove these cipd packages and build with sdk instead when
539529
# benchmark runner gets support for that.
540530
Var("dart_root") + "/benchmarks/FfiBoringssl/native/out/": {
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
5+
import 'dart:isolate';
6+
7+
import 'json_benchmark.dart';
8+
import 'latency.dart';
9+
10+
main() async {
11+
// Start GC pressure from helper isolate.
12+
final exitPort = ReceivePort();
13+
final exitFuture = exitPort.first;
14+
final isolate = await Isolate.spawn(run, null, onExit: exitPort.sendPort);
15+
16+
// Measure event loop latency.
17+
const tickDuration = const Duration(milliseconds: 1);
18+
const numberOfTicks = 8 * 1000; // min 8 seconds.
19+
final EventLoopLatencyStats stats =
20+
await measureEventLoopLatency(tickDuration, numberOfTicks);
21+
22+
// Kill isolate & wait until it's dead.
23+
isolate.kill(priority: Isolate.immediate);
24+
await exitFuture;
25+
26+
// Report event loop latency statistics.
27+
stats.report('EventLoopLatencyJson');
28+
}
29+
30+
void run(dynamic msg) {
31+
while (true) {
32+
JsonRoundTripBenchmark().run();
33+
}
34+
}

0 commit comments

Comments
 (0)