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

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

Issue 1135883004: Make typedefs lazy again (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 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/async.js ('k') | lib/runtime/dart/convert.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 collection = dart.defineLibrary(collection, {}); 1 var collection = dart.defineLibrary(collection, {});
2 var _internal = dart.lazyImport(_internal); 2 var _internal = dart.lazyImport(_internal);
3 var core = dart.import(core); 3 var core = dart.import(core);
4 var _js_helper = dart.lazyImport(_js_helper); 4 var _js_helper = dart.lazyImport(_js_helper);
5 var math = dart.lazyImport(math); 5 var math = dart.lazyImport(math);
6 (function(exports, _internal, core, _js_helper, math) { 6 (function(exports, _internal, core, _js_helper, math) {
7 'use strict'; 7 'use strict';
8 let _source = Symbol('_source'); 8 let _source = Symbol('_source');
9 let UnmodifiableListView$ = dart.generic(function(E) { 9 let UnmodifiableListView$ = dart.generic(function(E) {
10 class UnmodifiableListView extends _internal.UnmodifiableListBase$(E) { 10 class UnmodifiableListView extends _internal.UnmodifiableListBase$(E) {
(...skipping 12 matching lines...) Expand all
23 dart.defineLazyClassGeneric(exports, 'UnmodifiableListView', {get: Unmodifiabl eListView$}); 23 dart.defineLazyClassGeneric(exports, 'UnmodifiableListView', {get: Unmodifiabl eListView$});
24 // Function _defaultEquals: (Object, Object) → bool 24 // Function _defaultEquals: (Object, Object) → bool
25 function _defaultEquals(a, b) { 25 function _defaultEquals(a, b) {
26 return dart.equals(a, b); 26 return dart.equals(a, b);
27 } 27 }
28 // Function _defaultHashCode: (Object) → int 28 // Function _defaultHashCode: (Object) → int
29 function _defaultHashCode(a) { 29 function _defaultHashCode(a) {
30 return dart.hashCode(a); 30 return dart.hashCode(a);
31 } 31 }
32 let _Equality$ = dart.generic(function(K) { 32 let _Equality$ = dart.generic(function(K) {
33 let _Equality = dart.typedef('_Equality', dart.functionType(core.bool, [K, K ])); 33 let _Equality = dart.typedef('_Equality', () => dart.functionType(core.bool, [K, K]));
34 return _Equality; 34 return _Equality;
35 }); 35 });
36 let _Equality = _Equality$(); 36 let _Equality = _Equality$();
37 let _Hasher$ = dart.generic(function(K) { 37 let _Hasher$ = dart.generic(function(K) {
38 let _Hasher = dart.typedef('_Hasher', dart.functionType(core.int, [K])); 38 let _Hasher = dart.typedef('_Hasher', () => dart.functionType(core.int, [K]) );
39 return _Hasher; 39 return _Hasher;
40 }); 40 });
41 let _Hasher = _Hasher$(); 41 let _Hasher = _Hasher$();
42 let HashMap$ = dart.generic(function(K, V) { 42 let HashMap$ = dart.generic(function(K, V) {
43 class HashMap extends core.Object { 43 class HashMap extends core.Object {
44 HashMap(opts) { 44 HashMap(opts) {
45 let equals = opts && 'equals' in opts ? opts.equals : null; 45 let equals = opts && 'equals' in opts ? opts.equals : null;
46 let hashCode = opts && 'hashCode' in opts ? opts.hashCode : null; 46 let hashCode = opts && 'hashCode' in opts ? opts.hashCode : null;
47 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; 47 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null;
48 if (isValidKey == null) { 48 if (isValidKey == null) {
(...skipping 2703 matching lines...) Expand 10 before | Expand all | Expand 10 after
2752 this[_current] = dart.as(this[_queue][_table][core.$get](this[_position] ), E); 2752 this[_current] = dart.as(this[_queue][_table][core.$get](this[_position] ), E);
2753 this[_position] = dart.notNull(this[_position]) + 1 & dart.notNull(this[ _queue][_table][core.$length]) - 1; 2753 this[_position] = dart.notNull(this[_position]) + 1 & dart.notNull(this[ _queue][_table][core.$length]) - 1;
2754 return true; 2754 return true;
2755 } 2755 }
2756 } 2756 }
2757 _ListQueueIterator[dart.implements] = () => [core.Iterator$(E)]; 2757 _ListQueueIterator[dart.implements] = () => [core.Iterator$(E)];
2758 return _ListQueueIterator; 2758 return _ListQueueIterator;
2759 }); 2759 });
2760 let _ListQueueIterator = _ListQueueIterator$(); 2760 let _ListQueueIterator = _ListQueueIterator$();
2761 let _Predicate$ = dart.generic(function(T) { 2761 let _Predicate$ = dart.generic(function(T) {
2762 let _Predicate = dart.typedef('_Predicate', dart.functionType(core.bool, [T] )); 2762 let _Predicate = dart.typedef('_Predicate', () => dart.functionType(core.boo l, [T]));
2763 return _Predicate; 2763 return _Predicate;
2764 }); 2764 });
2765 let _Predicate = _Predicate$(); 2765 let _Predicate = _Predicate$();
2766 let _SplayTreeNode$ = dart.generic(function(K) { 2766 let _SplayTreeNode$ = dart.generic(function(K) {
2767 class _SplayTreeNode extends core.Object { 2767 class _SplayTreeNode extends core.Object {
2768 _SplayTreeNode(key) { 2768 _SplayTreeNode(key) {
2769 this.key = key; 2769 this.key = key;
2770 this.left = null; 2770 this.left = null;
2771 this.right = null; 2771 this.right = null;
2772 } 2772 }
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
3482 } 3482 }
3483 toString() { 3483 toString() {
3484 return IterableBase.iterableToFullString(this, '{', '}'); 3484 return IterableBase.iterableToFullString(this, '{', '}');
3485 } 3485 }
3486 } 3486 }
3487 dart.defineNamedConstructor(SplayTreeSet, 'from'); 3487 dart.defineNamedConstructor(SplayTreeSet, 'from');
3488 return SplayTreeSet; 3488 return SplayTreeSet;
3489 }); 3489 });
3490 let SplayTreeSet = SplayTreeSet$(); 3490 let SplayTreeSet = SplayTreeSet$();
3491 let __CastType0$ = dart.generic(function(K) { 3491 let __CastType0$ = dart.generic(function(K) {
3492 let __CastType0 = dart.typedef('__CastType0', dart.functionType(core.int, [K , K])); 3492 let __CastType0 = dart.typedef('__CastType0', () => dart.functionType(core.i nt, [K, K]));
3493 return __CastType0; 3493 return __CastType0;
3494 }); 3494 });
3495 let __CastType0 = __CastType0$(); 3495 let __CastType0 = __CastType0$();
3496 let __CastType3 = dart.typedef('__CastType3', dart.functionType(core.bool, [co re.Object])); 3496 let __CastType3 = dart.typedef('__CastType3', () => dart.functionType(core.boo l, [core.Object]));
3497 let _strings = Symbol('_strings'); 3497 let _strings = Symbol('_strings');
3498 let _nums = Symbol('_nums'); 3498 let _nums = Symbol('_nums');
3499 let _rest = Symbol('_rest'); 3499 let _rest = Symbol('_rest');
3500 let _containsKey = Symbol('_containsKey'); 3500 let _containsKey = Symbol('_containsKey');
3501 let _getBucket = Symbol('_getBucket'); 3501 let _getBucket = Symbol('_getBucket');
3502 let _findBucketIndex = Symbol('_findBucketIndex'); 3502 let _findBucketIndex = Symbol('_findBucketIndex');
3503 let _computeKeys = Symbol('_computeKeys'); 3503 let _computeKeys = Symbol('_computeKeys');
3504 let _get = Symbol('_get'); 3504 let _get = Symbol('_get');
3505 let _addHashTableEntry = Symbol('_addHashTableEntry'); 3505 let _addHashTableEntry = Symbol('_addHashTableEntry');
3506 let _set = Symbol('_set'); 3506 let _set = Symbol('_set');
(...skipping 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after
5151 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; 5151 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$;
5152 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; 5152 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable;
5153 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; 5153 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$;
5154 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; 5154 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator;
5155 exports.HashSetIterator$ = HashSetIterator$; 5155 exports.HashSetIterator$ = HashSetIterator$;
5156 exports.HashSetIterator = HashSetIterator; 5156 exports.HashSetIterator = HashSetIterator;
5157 exports.LinkedHashSetCell = LinkedHashSetCell; 5157 exports.LinkedHashSetCell = LinkedHashSetCell;
5158 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; 5158 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$;
5159 exports.LinkedHashSetIterator = LinkedHashSetIterator; 5159 exports.LinkedHashSetIterator = LinkedHashSetIterator;
5160 })(collection, _internal, core, _js_helper, math); 5160 })(collection, _internal, core, _js_helper, math);
OLDNEW
« no previous file with comments | « lib/runtime/dart/async.js ('k') | lib/runtime/dart/convert.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698