Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 2ea89ef

Browse files
author
Dart CI
committed
Version 2.14.0-96.0.dev
Merge commit '90127334ea4aab5267135b959e361229dfac6bc9' into 'dev'
2 parents 094c902 + 9012733 commit 2ea89ef

File tree

20 files changed

+81
-132
lines changed

20 files changed

+81
-132
lines changed

DEPS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ vars = {
146146
"resource_rev": "6b79867d0becf5395e5819a75720963b8298e9a7",
147147
"root_certificates_rev": "7e5ec82c99677a2e5b95ce296c4d68b0d3378ed8",
148148
"rust_revision": "b7856f695d65a8ebc846754f97d15814bcb1c244",
149-
"shelf_static_rev": "fa30419055279a00c9e428439b1abe362d18f25d",
149+
"shelf_static_rev": "b8e51372332a27a4939466d94a22f15be53ac3e4",
150150
"shelf_packages_handler_rev": "78302e67c035047e6348e692b0c1182131f0fe35",
151151
"shelf_proxy_tag": "v1.0.0",
152-
"shelf_rev": "4b9294e29eb308709444a5c0b890fa8ccd69fae4",
152+
"shelf_rev": "c511f06e6d2d28ffe905a45eea1da761b95ea0ca",
153153
"shelf_web_socket_rev": "24fb8a04befa75a94ac63a27047b231d1a22aab4",
154154
"source_map_stack_trace_rev": "1c3026f69d9771acf2f8c176a1ab750463309cce",
155155
"source_maps-0.9.4_rev": "38524",

pkg/compiler/lib/src/ssa/builder_kernel.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6130,7 +6130,6 @@ class KernelSsaGraphBuilder extends ir.Visitor<void> with ir.VisitorVoidMixin {
61306130
}
61316131

61326132
ir.Member memberContextNode = _elementMap.getMemberContextNode(function);
6133-
bool hasBox = false;
61346133
KernelToLocalsMap localsMap = _globalLocalsMap.getLocalsMap(function);
61356134
forEachOrderedParameter(_elementMap, function,
61366135
(ir.VariableDeclaration variable, {bool isElided}) {
@@ -6144,14 +6143,13 @@ class KernelSsaGraphBuilder extends ir.Visitor<void> with ir.VisitorVoidMixin {
61446143
scopeData.isBoxedVariable(_localsMap, local)) {
61456144
// The parameter will be a field in the box passed as the last
61466145
// parameter. So no need to have it.
6147-
hasBox = true;
61486146
return;
61496147
}
61506148
HInstruction argument = compiledArguments[argumentIndex++];
61516149
localsHandler.updateLocal(local, argument);
61526150
});
61536151

6154-
if (hasBox) {
6152+
if (forGenerativeConstructorBody && scopeData.requiresContextBox) {
61556153
HInstruction box = compiledArguments[argumentIndex++];
61566154
assert(box is HCreateBox);
61576155
// TODO(sra): Make inlining of closures work. We should always call

pkg/compiler/test/analyses/api_allowed.json

Lines changed: 1 addition & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,14 @@
11
{
22
"org-dartlang-sdk:///lib/_internal/js_runtime/lib/js_number.dart": {
3-
"Dynamic invocation of '[]'.": 5,
4-
"Dynamic invocation of '<'.": 4,
5-
"Dynamic invocation of '>='.": 1,
6-
"Dynamic invocation of '<='.": 1,
7-
"Dynamic invocation of '>'.": 2
3+
"Dynamic invocation of '[]'.": 5
84
},
95
"org-dartlang-sdk:///lib/_internal/js_runtime/lib/js_helper.dart": {
10-
"Dynamic invocation of '[]'.": 3,
11-
"Dynamic access of 'isNaN'.": 3,
12-
"Dynamic invocation of '<='.": 2,
13-
"Dynamic invocation of '-'.": 3,
14-
"Dynamic invocation of '&'.": 1,
15-
"Dynamic invocation of '>>'.": 1,
16-
"Dynamic invocation of '<'.": 2,
17-
"Dynamic invocation of '+'.": 1,
18-
"Dynamic invocation of '>'.": 1,
196
"Dynamic access of 'length'.": 1
207
},
21-
"org-dartlang-sdk:///lib/_internal/js_runtime/lib/string_helper.dart": {
22-
"Dynamic invocation of '<'.": 1,
23-
"Dynamic invocation of '+'.": 1,
24-
"Dynamic invocation of '>='.": 1,
25-
"Dynamic invocation of 'substring'.": 7,
26-
"Dynamic invocation of 'allMatches'.": 3,
27-
"Dynamic access of 'isNotEmpty'.": 1,
28-
"Dynamic invocation of '_js_helper::_execGlobal'.": 1,
29-
"Dynamic access of 'start'.": 1,
30-
"Dynamic access of 'end'.": 1,
31-
"Dynamic invocation of 'call'.": 13,
32-
"Dynamic access of 'length'.": 3,
33-
"Dynamic invocation of 'codeUnitAt'.": 2,
34-
"Dynamic invocation of '[]'.": 1,
35-
"Dynamic access of 'iterator'.": 2,
36-
"Dynamic invocation of 'replaceRange'.": 2
37-
},
38-
"org-dartlang-sdk:///lib/_internal/js_runtime/lib/linked_hash_map.dart": {
39-
"Dynamic access of '_js_helper::_length'.": 2,
40-
"Dynamic access of '_js_helper::_modifications'.": 4,
41-
"Dynamic invocation of 'containsKey'.": 1,
42-
"Dynamic access of '_js_helper::_first'.": 2
43-
},
44-
"org-dartlang-sdk:///lib/_internal/js_runtime/lib/native_helper.dart": {
45-
"Dynamic access of 'length'.": 2,
46-
"Dynamic invocation of '[]'.": 1
47-
},
48-
"org-dartlang-sdk:///lib/_internal/js_runtime/lib/regexp_helper.dart": {
49-
"Dynamic access of 'length'.": 1,
50-
"Dynamic invocation of '-'.": 1
51-
},
52-
"org-dartlang-sdk:///lib/_internal/js_runtime/lib/native_typed_data.dart": {
53-
"Dynamic invocation of '>'.": 1,
54-
"Dynamic invocation of '>='.": 1
55-
},
568
"org-dartlang-sdk:///lib/_internal/js_runtime/lib/async_patch.dart": {
57-
"Dynamic invocation of '-'.": 1,
589
"Dynamic access of 'iterator'.": 1,
59-
"Dynamic invocation of 'call'.": 1,
6010
"Dynamic invocation of 'then'.": 1
6111
},
62-
"org-dartlang-sdk:///lib/_internal/js_runtime/lib/collection_patch.dart": {
63-
"Dynamic access of 'dart.collection::_length'.": 2,
64-
"Dynamic invocation of 'dart.collection::_computeKeys'.": 2,
65-
"Dynamic invocation of 'containsKey'.": 2,
66-
"Dynamic access of 'dart.collection::_keys'.": 2,
67-
"Dynamic access of 'length'.": 1,
68-
"Dynamic access of 'isEmpty'.": 1,
69-
"Dynamic access of 'dart.collection::_modifications'.": 5,
70-
"Dynamic access of 'dart.collection::_map'.": 4,
71-
"Dynamic access of 'dart.collection::_elements'.": 1,
72-
"Dynamic access of 'dart.collection::_first'.": 1
73-
},
7412
"org-dartlang-sdk:///lib/html/dart2js/html_dart2js.dart": {
7513
"Dynamic access of 'style'.": 1,
7614
"Dynamic invocation of 'remove'.": 2,

pkg/compiler/test/rti/data/map_literal.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/*spec.class: global#LinkedHashMap:deps=[Map],direct,explicit=[LinkedHashMap<LinkedHashMap.K,LinkedHashMap.V>],implicit=[LinkedHashMap.K,LinkedHashMap.V],needsArgs*/
1212

1313
/*prod.class: global#JsLinkedHashMap:deps=[LinkedHashMap]*/
14-
/*spec.class: global#JsLinkedHashMap:deps=[LinkedHashMap],direct,explicit=[JsLinkedHashMap.K,JsLinkedHashMap.V,void Function(JsLinkedHashMap.K,JsLinkedHashMap.V)],implicit=[JsLinkedHashMap.K,JsLinkedHashMap.V],needsArgs*/
14+
/*spec.class: global#JsLinkedHashMap:deps=[LinkedHashMap],direct,explicit=[JsLinkedHashMap,JsLinkedHashMap.K,JsLinkedHashMap.V,void Function(JsLinkedHashMap.K,JsLinkedHashMap.V)],implicit=[JsLinkedHashMap.K,JsLinkedHashMap.V],needsArgs*/
1515

1616
/*prod.class: global#double:*/
1717
/*spec.class: global#double:implicit=[double]*/

pkg/compiler/test/rti/data/map_to_set.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/*spec.class: global#LinkedHashMap:deps=[Map],direct,explicit=[LinkedHashMap<LinkedHashMap.K,LinkedHashMap.V>],implicit=[LinkedHashMap.K,LinkedHashMap.V],needsArgs*/
1212

1313
/*prod.class: global#JsLinkedHashMap:deps=[LinkedHashMap],implicit=[JsLinkedHashMap.K],needsArgs*/
14-
/*spec.class: global#JsLinkedHashMap:deps=[LinkedHashMap],direct,explicit=[JsLinkedHashMap.K,JsLinkedHashMap.V,void Function(JsLinkedHashMap.K,JsLinkedHashMap.V)],implicit=[JsLinkedHashMap.K,JsLinkedHashMap.V],needsArgs*/
14+
/*spec.class: global#JsLinkedHashMap:deps=[LinkedHashMap],direct,explicit=[JsLinkedHashMap,JsLinkedHashMap.K,JsLinkedHashMap.V,void Function(JsLinkedHashMap.K,JsLinkedHashMap.V)],implicit=[JsLinkedHashMap.K,JsLinkedHashMap.V],needsArgs*/
1515

1616
/*prod.class: global#double:*/
1717
/*spec.class: global#double:implicit=[double]*/

pkg/compiler/test/rti/emission/local_function_map_literal.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66

77
import 'package:expect/expect.dart';
88

9-
/*class: global#JsLinkedHashMap:checks=[],instance*/
9+
/*spec.class: global#JsLinkedHashMap:checkedInstance,checks=[],instance*/
10+
11+
/*prod.class: global#JsLinkedHashMap:checks=[],instance*/
1012

1113
@pragma('dart2js:noInline')
1214
method<T>() {

pkg/compiler/test/rti/emission/map_literal.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
/*spec.class: global#Map:instance*/
88

99
/*class: global#LinkedHashMap:*/
10-
/*class: global#JsLinkedHashMap:checks=[],instance*/
10+
/*spec.class: global#JsLinkedHashMap:checkedInstance,checks=[],instance*/
11+
/*prod.class: global#JsLinkedHashMap:checks=[],instance*/
1112

1213
/*spec.class: global#double:checkedInstance,instance,typeArgument*/
1314

sdk/lib/_internal/js_runtime/lib/async_patch.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ class _AsyncRun {
4141
// Use mutationObservers.
4242
var div = JS('', 'self.document.createElement("div")');
4343
var span = JS('', 'self.document.createElement("span")');
44-
var storedCallback;
44+
void Function()? storedCallback;
4545

4646
internalCallback(_) {
4747
var f = storedCallback;
4848
storedCallback = null;
49-
f();
49+
f!();
5050
}
5151

5252
var observer = JS('', 'new self.MutationObserver(#)',
@@ -148,7 +148,8 @@ class _TimerImpl implements Timer {
148148
convertDartClosureToJS(() {
149149
int tick = this._tick + 1;
150150
if (milliseconds > 0) {
151-
int duration = JS('int', 'Date.now()') - start;
151+
int end = JS('int', 'Date.now()');
152+
int duration = end - start;
152153
if (duration > (tick + 1) * milliseconds) {
153154
tick = duration ~/ milliseconds;
154155
}

sdk/lib/_internal/js_runtime/lib/collection_patch.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ class _CustomHashMap<K, V> extends _HashMap<K, V> {
448448
}
449449

450450
class _HashMapKeyIterable<E> extends EfficientLengthIterable<E> {
451-
final _map;
451+
final _HashMap _map;
452452
_HashMapKeyIterable(this._map);
453453

454454
int get length => _map._length;
@@ -474,7 +474,7 @@ class _HashMapKeyIterable<E> extends EfficientLengthIterable<E> {
474474
}
475475

476476
class _HashMapKeyIterator<E> implements Iterator<E> {
477-
final _map;
477+
final _HashMap _map;
478478
final List _keys;
479479
int _offset = 0;
480480
E? _current;
@@ -682,7 +682,7 @@ class _Es6LinkedIdentityHashMap<K, V> extends _LinkedIdentityHashMap<K, V>
682682
}
683683

684684
class _Es6MapIterable<E> extends EfficientLengthIterable<E> {
685-
final _map;
685+
final _Es6LinkedIdentityHashMap _map;
686686
final bool _isKeys;
687687

688688
_Es6MapIterable(this._map, this._isKeys);
@@ -717,7 +717,7 @@ class _Es6MapIterable<E> extends EfficientLengthIterable<E> {
717717
}
718718

719719
class _Es6MapIterator<E> implements Iterator<E> {
720-
final _map;
720+
final _Es6LinkedIdentityHashMap _map;
721721
final int _modifications;
722722
final bool _isKeys;
723723
var _jsIterator;
@@ -1187,7 +1187,7 @@ class _CustomHashSet<E> extends _HashSet<E> {
11871187

11881188
// TODO(kasperl): Share this code with _HashMapKeyIterator<E>?
11891189
class _HashSetIterator<E> implements Iterator<E> {
1190-
final _set;
1190+
final _HashSet<E> _set;
11911191
final List _elements;
11921192
int _offset = 0;
11931193
E? _current;
@@ -1689,7 +1689,7 @@ class _LinkedHashSetCell {
16891689

16901690
// TODO(kasperl): Share this code with LinkedHashMapKeyIterator<E>?
16911691
class _LinkedHashSetIterator<E> implements Iterator<E> {
1692-
final _set;
1692+
final _LinkedHashSet<E> _set;
16931693
final int _modifications;
16941694
_LinkedHashSetCell? _cell;
16951695
E? _current;

sdk/lib/_internal/js_runtime/lib/core_patch.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import 'dart:_js_helper'
2222
patch,
2323
Primitives,
2424
quoteStringForRegExp,
25-
stringJoinUnchecked,
2625
getTraceFromException,
2726
RuntimeError;
2827

0 commit comments

Comments
 (0)