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

Side by Side Diff: lib/runtime/dart/_internal.js

Issue 1045323002: emit interfaces before use (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « lib/runtime/dart/_interceptors.js ('k') | lib/runtime/dart/_js_helper.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var _internal; 1 var _internal;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 class EfficientLength extends core.Object { 4 class EfficientLength extends core.Object {}
5 }
6 let ListIterable$ = dart.generic(function(E) { 5 let ListIterable$ = dart.generic(function(E) {
7 class ListIterable extends collection.IterableBase$(E) { 6 class ListIterable extends collection.IterableBase$(E) {
8 ListIterable() { 7 ListIterable() {
9 super.IterableBase(); 8 super.IterableBase();
10 } 9 }
11 get iterator() { 10 get iterator() {
12 return new ListIterator(this); 11 return new ListIterator(this);
13 } 12 }
14 forEach(action) { 13 forEach(action) {
15 let length = this.length; 14 let length = this.length;
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 } 849 }
851 get current() { 850 get current() {
852 return null; 851 return null;
853 } 852 }
854 } 853 }
855 EmptyIterator[dart.implements] = [core.Iterator$(E)]; 854 EmptyIterator[dart.implements] = [core.Iterator$(E)];
856 return EmptyIterator; 855 return EmptyIterator;
857 }); 856 });
858 let EmptyIterator = EmptyIterator$(dart.dynamic); 857 let EmptyIterator = EmptyIterator$(dart.dynamic);
859 let BidirectionalIterator$ = dart.generic(function(T) { 858 let BidirectionalIterator$ = dart.generic(function(T) {
860 class BidirectionalIterator extends core.Object { 859 class BidirectionalIterator extends core.Object {}
861 }
862 BidirectionalIterator[dart.implements] = [core.Iterator$(T)]; 860 BidirectionalIterator[dart.implements] = [core.Iterator$(T)];
863 return BidirectionalIterator; 861 return BidirectionalIterator;
864 }); 862 });
865 let BidirectionalIterator = BidirectionalIterator$(dart.dynamic); 863 let BidirectionalIterator = BidirectionalIterator$(dart.dynamic);
866 let _rangeCheck = Symbol('_rangeCheck'); 864 let _rangeCheck = Symbol('_rangeCheck');
867 let IterableMixinWorkaround$ = dart.generic(function(T) { 865 let IterableMixinWorkaround$ = dart.generic(function(T) {
868 class IterableMixinWorkaround extends core.Object { 866 class IterableMixinWorkaround extends core.Object {
869 static contains(iterable, element) { 867 static contains(iterable, element) {
870 for (let e of iterable) { 868 for (let e of iterable) {
871 if (dart.equals(e, element)) 869 if (dart.equals(e, element))
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
1342 if (fillValue === void 0) 1340 if (fillValue === void 0)
1343 fillValue = null; 1341 fillValue = null;
1344 throw new core.UnsupportedError("Cannot modify an unmodifiable list"); 1342 throw new core.UnsupportedError("Cannot modify an unmodifiable list");
1345 } 1343 }
1346 } 1344 }
1347 UnmodifiableListMixin[dart.implements] = [core.List$(E)]; 1345 UnmodifiableListMixin[dart.implements] = [core.List$(E)];
1348 return UnmodifiableListMixin; 1346 return UnmodifiableListMixin;
1349 }); 1347 });
1350 let UnmodifiableListMixin = UnmodifiableListMixin$(dart.dynamic); 1348 let UnmodifiableListMixin = UnmodifiableListMixin$(dart.dynamic);
1351 let FixedLengthListBase$ = dart.generic(function(E) { 1349 let FixedLengthListBase$ = dart.generic(function(E) {
1352 class FixedLengthListBase extends dart.mixin(FixedLengthListMixin$(E)) { 1350 class FixedLengthListBase extends dart.mixin(FixedLengthListMixin$(E)) {}
1353 }
1354 return FixedLengthListBase; 1351 return FixedLengthListBase;
1355 }); 1352 });
1356 let FixedLengthListBase = FixedLengthListBase$(dart.dynamic); 1353 let FixedLengthListBase = FixedLengthListBase$(dart.dynamic);
1357 let UnmodifiableListBase$ = dart.generic(function(E) { 1354 let UnmodifiableListBase$ = dart.generic(function(E) {
1358 class UnmodifiableListBase extends dart.mixin(UnmodifiableListMixin$(E)) { 1355 class UnmodifiableListBase extends dart.mixin(UnmodifiableListMixin$(E)) {}
1359 }
1360 return UnmodifiableListBase; 1356 return UnmodifiableListBase;
1361 }); 1357 });
1362 let UnmodifiableListBase = UnmodifiableListBase$(dart.dynamic); 1358 let UnmodifiableListBase = UnmodifiableListBase$(dart.dynamic);
1363 let _backedList = Symbol('_backedList'); 1359 let _backedList = Symbol('_backedList');
1364 class _ListIndicesIterable extends ListIterable$(core.int) { 1360 class _ListIndicesIterable extends ListIterable$(core.int) {
1365 _ListIndicesIterable(backedList) { 1361 _ListIndicesIterable(backedList) {
1366 this[_backedList] = backedList; 1362 this[_backedList] = backedList;
1367 super.ListIterable(); 1363 super.ListIterable();
1368 } 1364 }
1369 get length() { 1365 get length() {
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1899 exports.ReversedListIterable$ = ReversedListIterable$; 1895 exports.ReversedListIterable$ = ReversedListIterable$;
1900 exports.UnmodifiableListError = UnmodifiableListError; 1896 exports.UnmodifiableListError = UnmodifiableListError;
1901 exports.NonGrowableListError = NonGrowableListError; 1897 exports.NonGrowableListError = NonGrowableListError;
1902 exports.makeListFixedLength = makeListFixedLength; 1898 exports.makeListFixedLength = makeListFixedLength;
1903 exports.Lists = Lists; 1899 exports.Lists = Lists;
1904 exports.printToConsole = printToConsole; 1900 exports.printToConsole = printToConsole;
1905 exports.Sort = Sort; 1901 exports.Sort = Sort;
1906 exports.Symbol = Symbol; 1902 exports.Symbol = Symbol;
1907 exports.POWERS_OF_TEN = POWERS_OF_TEN; 1903 exports.POWERS_OF_TEN = POWERS_OF_TEN;
1908 })(_internal || (_internal = {})); 1904 })(_internal || (_internal = {}));
OLDNEW
« no previous file with comments | « lib/runtime/dart/_interceptors.js ('k') | lib/runtime/dart/_js_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698