Skip to content

Commit 3169876

Browse files
author
Dart CI
committed
Version 2.19.0-397.0.dev
Merge 5ea3ef2 into dev
2 parents 7cbcf48 + 5ea3ef2 commit 3169876

File tree

10 files changed

+18
-25
lines changed

10 files changed

+18
-25
lines changed

pkg/dart2wasm/lib/dispatch_table.dart

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class SelectorInfo {
2222

2323
final int id;
2424
final int callCount;
25-
final bool tornOff;
2625
final ParameterInfo paramInfo;
2726
int returnCount;
2827

@@ -45,8 +44,8 @@ class SelectorInfo {
4544

4645
int get sortWeight => classIds.length * 10 + callCount;
4746

48-
SelectorInfo(this.translator, this.id, this.callCount, this.tornOff,
49-
this.paramInfo, this.returnCount);
47+
SelectorInfo(this.translator, this.id, this.callCount, this.paramInfo,
48+
this.returnCount);
5049

5150
/// Compute the signature for the functions implementing members targeted by
5251
/// this selector.
@@ -222,6 +221,16 @@ class DispatchTable {
222221
.mapping;
223222

224223
SelectorInfo selectorForTarget(Reference target) {
224+
Member member = target.asMember;
225+
bool isGetter = target.isGetter || target.isTearOffReference;
226+
ProcedureAttributesMetadata metadata = procedureAttributeMetadata[member]!;
227+
int selectorId = isGetter
228+
? metadata.getterSelectorId
229+
: metadata.methodOrSetterSelectorId;
230+
return selectorInfo[selectorId]!;
231+
}
232+
233+
SelectorInfo _createSelectorForTarget(Reference target) {
225234
Member member = target.asMember;
226235
bool isGetter = target.isGetter || target.isTearOffReference;
227236
bool isSetter = target.isSetter;
@@ -244,13 +253,8 @@ class DispatchTable {
244253

245254
final selector = selectorInfo.putIfAbsent(
246255
selectorId,
247-
() => SelectorInfo(
248-
translator,
249-
selectorId,
250-
selectorMetadata[selectorId].callCount,
251-
selectorMetadata[selectorId].tornOff,
252-
paramInfo,
253-
returnCount));
256+
() => SelectorInfo(translator, selectorId,
257+
selectorMetadata[selectorId].callCount, paramInfo, returnCount));
254258
selector.paramInfo.merge(paramInfo);
255259
selector.returnCount = max(selector.returnCount, returnCount);
256260
selector.calledDynamically |= calledDynamically;
@@ -301,7 +305,7 @@ class DispatchTable {
301305
}
302306

303307
SelectorInfo addMember(Reference reference) {
304-
SelectorInfo selector = selectorForTarget(reference);
308+
SelectorInfo selector = _createSelectorForTarget(reference);
305309
if (reference.asMember.isAbstract) {
306310
selector.targets[info.classId] ??= reference;
307311
} else {
@@ -319,7 +323,7 @@ class DispatchTable {
319323
if (member.hasSetter) addMember(member.setterReference!);
320324
} else if (member is Procedure) {
321325
SelectorInfo method = addMember(member.reference);
322-
if (method.tornOff &&
326+
if (selectorMetadata[method.id].tornOff &&
323327
procedureAttributeMetadata[member]!.hasTearOffUses) {
324328
addMember(member.tearOffReference);
325329
}

runtime/include/dart_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ Dart_CreateIsolateGroup(const char* script_uri,
11051105
* shutdown (may be NULL).
11061106
* \param cleanup_callback A callback to be called when the isolate is being
11071107
* cleaned up (may be NULL).
1108-
* \param isolate_data The embedder-specific data associated with this isolate.
1108+
* \param child_isolate_data The embedder-specific data associated with this isolate.
11091109
* \param error Set to NULL if creation is successful, set to an error
11101110
* message otherwise. The caller is responsible for calling free() on the
11111111
* error message.

runtime/observatory/lib/src/elements/heap_snapshot.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,6 @@ class HeapSnapshotElement extends CustomElement implements Renderable {
603603
var blob = new Blob(_snapshotA!.chunks, 'application/octet-stream');
604604
var blobUrl = Url.createObjectUrl(blob);
605605
var link = new AnchorElement();
606-
// ignore: unsafe_html
607606
link.href = blobUrl;
608607
var now = new DateTime.now();
609608
link.download = 'dart-heap-${now.year}-${now.month}-${now.day}.bin';

runtime/observatory/lib/src/elements/process_snapshot.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ class ProcessSnapshotElement extends CustomElement implements Renderable {
298298
var blob = new Blob([jsonEncode(_snapshotA)], 'application/json');
299299
var blobUrl = Url.createObjectUrl(blob);
300300
var link = new AnchorElement();
301-
// ignore: unsafe_html
302301
link.href = blobUrl;
303302
var now = new DateTime.now();
304303
link.download = 'dart-process-${now.year}-${now.month}-${now.day}.json';

runtime/observatory/lib/src/elements/timeline_page.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ class TimelinePageElement extends CustomElement implements Renderable {
185185
"This VM is forwarding timeline events to Fuchsia's system tracing. See the ",
186186
new AnchorElement()
187187
..text = "Fuchsia Tracing Usage Guide"
188-
// ignore: unsafe_html
189188
..href = "https://fuchsia.dev/fuchsia-src/development/tracing",
190189
new SpanElement()..text = ".",
191190
];
@@ -201,7 +200,6 @@ class TimelinePageElement extends CustomElement implements Renderable {
201200
"This VM is forwarding timeline events to Android's systrace. See the ",
202201
new AnchorElement()
203202
..text = "systrace usage guide"
204-
// ignore: unsafe_html
205203
..href =
206204
"https://developer.android.com/studio/command-line/systrace",
207205
new SpanElement()..text = ".",
@@ -219,7 +217,6 @@ class TimelinePageElement extends CustomElement implements Renderable {
219217
"To track these events, open 'Instruments' and add the 'os_signpost' Filter. See the ",
220218
new AnchorElement()
221219
..text = "Instruments Usage Guide"
222-
// ignore: unsafe_html
223220
..href = "https://help.apple.com/instruments",
224221
new SpanElement()..text = ".",
225222
];

runtime/observatory_2/lib/src/elements/heap_snapshot.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,6 @@ class HeapSnapshotElement extends CustomElement implements Renderable {
642642
var blob = new Blob(_snapshotA.chunks, 'application/octet-stream');
643643
var blobUrl = Url.createObjectUrl(blob);
644644
var link = new AnchorElement();
645-
// ignore: unsafe_html
646645
link.href = blobUrl;
647646
var now = new DateTime.now();
648647
link.download = 'dart-heap-${now.year}-${now.month}-${now.day}.bin';

runtime/observatory_2/lib/src/elements/process_snapshot.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ class ProcessSnapshotElement extends CustomElement implements Renderable {
134134
var blob = new Blob([jsonEncode(_snapshotA)], 'application/json');
135135
var blobUrl = Url.createObjectUrl(blob);
136136
var link = new AnchorElement();
137-
// ignore: unsafe_html
138137
link.href = blobUrl;
139138
var now = new DateTime.now();
140139
link.download = 'dart-process-${now.year}-${now.month}-${now.day}.json';

runtime/observatory_2/lib/src/elements/timeline/dashboard.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ class TimelineDashboardElement extends CustomElement implements Renderable {
9191
if (_content == null) {
9292
_content = new DivElement()..classes = ['content-centered-big'];
9393
}
94-
// ignore: unsafe_html
9594
_frame.src = _makeFrameUrl();
9695
_content.children = <Element>[
9796
new HeadingElement.h2()

runtime/observatory_2/lib/src/elements/timeline_page.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ class TimelinePageElement extends CustomElement implements Renderable {
184184
"This VM is forwarding timeline events to Fuchsia's system tracing. See the ",
185185
new AnchorElement()
186186
..text = "Fuchsia Tracing Usage Guide"
187-
// ignore: unsafe_html
188187
..href = "https://fuchsia.dev/fuchsia-src/development/tracing",
189188
new SpanElement()..text = ".",
190189
];
@@ -200,7 +199,6 @@ class TimelinePageElement extends CustomElement implements Renderable {
200199
"This VM is forwarding timeline events to Android's systrace. See the ",
201200
new AnchorElement()
202201
..text = "systrace usage guide"
203-
// ignore: unsafe_html
204202
..href =
205203
"https://developer.android.com/studio/command-line/systrace",
206204
new SpanElement()..text = ".",
@@ -218,7 +216,6 @@ class TimelinePageElement extends CustomElement implements Renderable {
218216
"To track these events, open 'Instruments' and add the 'os_signpost' Filter. See the ",
219217
new AnchorElement()
220218
..text = "Instruments Usage Guide"
221-
// ignore: unsafe_html
222219
..href = "https://help.apple.com/instruments",
223220
new SpanElement()..text = ".",
224221
];

tools/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ CHANNEL dev
2727
MAJOR 2
2828
MINOR 19
2929
PATCH 0
30-
PRERELEASE 396
30+
PRERELEASE 397
3131
PRERELEASE_PATCH 0

0 commit comments

Comments
 (0)