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

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

Issue 1096583002: Reifier hookup (Closed) Base URL: git@github.com:dart-lang/dart-dev-compiler.git@master
Patch Set: Tweaks Created 5 years, 8 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 | « no previous file | lib/runtime/dart/_isolate_helper.js » ('j') | lib/src/codegen/js_codegen.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_internal.js
diff --git a/lib/runtime/dart/_internal.js b/lib/runtime/dart/_internal.js
index e36185334575891a2ca963503fd104d47d6bbf64..02cf66736de7670525f2c34b8f6cabc59d881fcb 100644
--- a/lib/runtime/dart/_internal.js
+++ b/lib/runtime/dart/_internal.js
@@ -499,7 +499,7 @@ var _internal;
super.IterableBase();
}
get [core.$iterator]() {
- return new (ExpandIterator$(S, T))(this[_iterable][core.$iterator], dart.as(this[_f], dart.functionType(core.Iterable$(T), [S])));
+ return new (ExpandIterator$(S, T))(this[_iterable][core.$iterator], dart.as(this[_f], __t0));
}
}
return ExpandIterable;
@@ -512,7 +512,7 @@ var _internal;
ExpandIterator(iterator, f) {
this[_iterator] = iterator;
this[_f] = f;
- this[_currentExpansion] = dart.as(new EmptyIterator(), core.Iterator$(T));
+ this[_currentExpansion] = new (EmptyIterator$(T))();
this[_current] = null;
}
[_nextExpansion]() {}
@@ -614,7 +614,7 @@ var _internal;
super.IterableBase();
}
get [core.$iterator]() {
- return new (TakeWhileIterator$(E))(this[_iterable][core.$iterator], dart.as(this[_f], dart.functionType(core.bool, [E])));
+ return new (TakeWhileIterator$(E))(this[_iterable][core.$iterator], dart.as(this[_f], __t2));
}
}
return TakeWhileIterable;
@@ -725,7 +725,7 @@ var _internal;
super.IterableBase();
}
get [core.$iterator]() {
- return new (SkipWhileIterator$(E))(this[_iterable][core.$iterator], dart.as(this[_f], dart.functionType(core.bool, [E])));
+ return new (SkipWhileIterator$(E))(this[_iterable][core.$iterator], dart.as(this[_f], __t4));
}
}
return SkipWhileIterable;
@@ -763,7 +763,7 @@ var _internal;
super.IterableBase();
}
get [core.$iterator]() {
- return dart.as(new EmptyIterator(), core.Iterator$(E));
+ return new (EmptyIterator$(E))();
}
[core.$forEach](action) {}
get [core.$isEmpty]() {
@@ -1060,7 +1060,7 @@ var _internal;
return buffer.toString();
}
where(iterable, f) {
- return new (WhereIterable$(T))(dart.as(iterable, core.Iterable$(T)), dart.as(f, dart.functionType(core.bool, [T])));
+ return new (WhereIterable$(T))(dart.as(iterable, core.Iterable$(T)), dart.as(f, __t6));
}
static map(iterable, f) {
return new MappedIterable(iterable, f);
@@ -1251,6 +1251,26 @@ var _internal;
return new core.StateError("Too few elements");
}
}
+ let __t0$ = dart.generic(function(S, T) {
+ let __t0 = dart.typedef('__t0', () => dart.functionType(core.Iterable$(T), [S]));
+ return __t0;
+ });
+ let __t0 = __t0$();
+ let __t2$ = dart.generic(function(E) {
+ let __t2 = dart.typedef('__t2', () => dart.functionType(core.bool, [E]));
+ return __t2;
+ });
+ let __t2 = __t2$();
+ let __t4$ = dart.generic(function(E) {
+ let __t4 = dart.typedef('__t4', () => dart.functionType(core.bool, [E]));
+ return __t4;
+ });
+ let __t4 = __t4$();
+ let __t6$ = dart.generic(function(T) {
+ let __t6 = dart.typedef('__t6', () => dart.functionType(core.bool, [T]));
+ return __t6;
+ });
+ let __t6 = __t6$();
let FixedLengthListMixin$ = dart.generic(function(E) {
class FixedLengthListMixin extends core.Object {
set length(newLength) {
« no previous file with comments | « no previous file | lib/runtime/dart/_isolate_helper.js » ('j') | lib/src/codegen/js_codegen.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698