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

Unified Diff: test/codegen/expect/collection/src/priority_queue.js

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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/utils.dart ('k') | test/codegen/expect/language-all.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/collection/src/priority_queue.js
diff --git a/test/codegen/expect/collection/src/priority_queue.js b/test/codegen/expect/collection/src/priority_queue.js
index 905e53297fbebb9d768859651365933447e3b6de..a62c0a06ffe6b0f1e524e23b604b99f5a6496431 100644
--- a/test/codegen/expect/collection/src/priority_queue.js
+++ b/test/codegen/expect/collection/src/priority_queue.js
@@ -100,7 +100,7 @@ dart_library.library('collection/src/priority_queue', null, /* Imports */[
let list = core.List$(E).new();
list[dartx.length] = this[_length];
list[dartx.setRange](0, this[_length], this[_queue]);
- list[dartx.sort](dart.as(this.comparison, __CastType0));
+ list[dartx.sort](dart.as(this.comparison, dart.functionType(core.int, [E, E])));
return list;
}
toSet() {
@@ -235,11 +235,6 @@ dart_library.library('collection/src/priority_queue', null, /* Imports */[
return HeapPriorityQueue;
});
let HeapPriorityQueue = HeapPriorityQueue$();
- const __CastType0$ = dart.generic(function(E) {
- const __CastType0 = dart.typedef('__CastType0', () => dart.functionType(core.int, [E, E]));
- return __CastType0;
- });
- let __CastType0 = __CastType0$();
// Exports:
exports.PriorityQueue$ = PriorityQueue$;
exports.PriorityQueue = PriorityQueue;
« no previous file with comments | « lib/src/utils.dart ('k') | test/codegen/expect/language-all.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698