Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: lib/runtime/dart/html.js

Side-by-side diff isn't available for this file because of its large size.
Issue 1783603009: simplify function coercions -- DDC can generate function types in place (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « lib/runtime/dart/convert.js ('k') | lib/runtime/dart/html_common.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/html.js
diff --git a/lib/runtime/dart/html.js b/lib/runtime/dart/html.js
index abb065e39b4c910bb6221293c629a0c355cc0d37..d3efb06f8f70e036edf2bcadd14943083d8b9d02 100644
--- a/lib/runtime/dart/html.js
+++ b/lib/runtime/dart/html.js
@@ -13103,7 +13103,7 @@ dart_library.library('dart/html', null, /* Imports */[
if (dart.notNull(retainMatching)) {
removed = this[_element][dartx.children][dartx.where](dart.fn(e => !dart.notNull(dart.dcall(test, e)), core.bool, [Element]));
} else {
- removed = this[_element][dartx.children][dartx.where](dart.as(test, __CastType0));
+ removed = this[_element][dartx.children][dartx.where](dart.as(test, dart.functionType(core.bool, [Element])));
}
for (let e of dart.as(removed, core.Iterable))
dart.dsend(e, 'remove');
@@ -32083,7 +32083,7 @@ dart_library.library('dart/html', null, /* Imports */[
this[_target] = target;
this[_eventType] = eventType;
this[_useCapture] = useCapture;
- this[_onData] = _wrapZone(dart.as(onData, __CastType2));
+ this[_onData] = _wrapZone(dart.as(onData, dart.functionType(dart.dynamic, [dart.dynamic])));
this[_pauseCount] = 0;
this[_tryResume]();
}
@@ -34426,8 +34426,6 @@ dart_library.library('dart/html', null, /* Imports */[
sanitizeNode: [dart.void, [Node, Node]]
})
});
- const __CastType0 = dart.typedef('__CastType0', () => dart.functionType(core.bool, [Element]));
- const __CastType2 = dart.typedef('__CastType2', () => dart.functionType(dart.dynamic, [dart.dynamic]));
// Exports:
exports.EventTarget = EventTarget;
exports.Node = Node;
« no previous file with comments | « lib/runtime/dart/convert.js ('k') | lib/runtime/dart/html_common.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698