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

Side by Side Diff: frog/minfrog

Issue 8989015: Updates the corelib to the new default specification for interfaces and new factory syntax (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « corelib/src/time_zone.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env node 1 #!/usr/bin/env node
2 // ********** Library dart:core ************** 2 // ********** Library dart:core **************
3 // ********** Natives dart:core ************** 3 // ********** Natives dart:core **************
4 /** 4 /**
5 * Generates a dynamic call stub for a function. 5 * Generates a dynamic call stub for a function.
6 * Our goal is to create a stub method like this on-the-fly: 6 * Our goal is to create a stub method like this on-the-fly:
7 * function($0, $1, capture) { return this($0, $1, true, capture); } 7 * function($0, $1, capture) { return this($0, $1, true, capture); }
8 * 8 *
9 * This stub then replaces the dynamic one on Function, with one that is 9 * This stub then replaces the dynamic one on Function, with one that is
10 * specialized for that particular function, taking into account its default 10 * specialized for that particular function, taking into account its default
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 // ********** Code for HashMapImplementation ************** 811 // ********** Code for HashMapImplementation **************
812 function HashMapImplementation() { 812 function HashMapImplementation() {
813 // Initializers done 813 // Initializers done
814 this._numberOfEntries = 0; 814 this._numberOfEntries = 0;
815 this._numberOfDeleted = 0; 815 this._numberOfDeleted = 0;
816 this._loadLimit = HashMapImplementation._computeLoadLimit(8/*HashMapImplementa tion._INITIAL_CAPACITY*/); 816 this._loadLimit = HashMapImplementation._computeLoadLimit(8/*HashMapImplementa tion._INITIAL_CAPACITY*/);
817 this._keys = new Array(8/*HashMapImplementation._INITIAL_CAPACITY*/); 817 this._keys = new Array(8/*HashMapImplementation._INITIAL_CAPACITY*/);
818 this._values = new Array(8/*HashMapImplementation._INITIAL_CAPACITY*/); 818 this._values = new Array(8/*HashMapImplementation._INITIAL_CAPACITY*/);
819 } 819 }
820 HashMapImplementation.HashMapImplementation$from$factory = function(other) { 820 HashMapImplementation.HashMapImplementation$from$factory = function(other) {
821 var result = new HashMapImplementation(); 821 var result = new HashMapImplementation_K$V();
822 other.forEach((function (key, value) { 822 other.forEach((function (key, value) {
823 result.$setindex(key, value); 823 result.$setindex(key, value);
824 }) 824 })
825 ); 825 );
826 return result; 826 return result;
827 } 827 }
828 HashMapImplementation._computeLoadLimit = function(capacity) { 828 HashMapImplementation._computeLoadLimit = function(capacity) {
829 return $truncdiv((capacity * 3), 4); 829 return $truncdiv((capacity * 3), 4);
830 } 830 }
831 HashMapImplementation._firstProbe = function(hashCode, length) { 831 HashMapImplementation._firstProbe = function(hashCode, length) {
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 } 1097 }
1098 ); 1098 );
1099 return list; 1099 return list;
1100 } 1100 }
1101 HashMapImplementation_E$E.prototype.containsKey = function(key) { 1101 HashMapImplementation_E$E.prototype.containsKey = function(key) {
1102 return (this._probeForLookup(key) != -1); 1102 return (this._probeForLookup(key) != -1);
1103 } 1103 }
1104 // ********** Code for HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePa ir_K$V ************** 1104 // ********** Code for HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePa ir_K$V **************
1105 $inherits(HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePair_K$V, HashM apImplementation); 1105 $inherits(HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePair_K$V, HashM apImplementation);
1106 function HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePair_K$V() {} 1106 function HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePair_K$V() {}
1107 // ********** Code for HashMapImplementation_K$V **************
1108 $inherits(HashMapImplementation_K$V, HashMapImplementation);
1109 function HashMapImplementation_K$V() {
1110 // Initializers done
1111 this._numberOfEntries = 0;
1112 this._numberOfDeleted = 0;
1113 this._loadLimit = HashMapImplementation._computeLoadLimit(8/*HashMapImplementa tion._INITIAL_CAPACITY*/);
1114 this._keys = new Array(8/*HashMapImplementation._INITIAL_CAPACITY*/);
1115 this._values = new Array(8/*HashMapImplementation._INITIAL_CAPACITY*/);
1116 }
1117 HashMapImplementation_K$V._computeLoadLimit = function(capacity) {
1118 return $truncdiv((capacity * 3), 4);
1119 }
1107 // ********** Code for HashMapImplementation_String$EvaluatedValue ************* * 1120 // ********** Code for HashMapImplementation_String$EvaluatedValue ************* *
1108 $inherits(HashMapImplementation_String$EvaluatedValue, HashMapImplementation); 1121 $inherits(HashMapImplementation_String$EvaluatedValue, HashMapImplementation);
1109 function HashMapImplementation_String$EvaluatedValue() {} 1122 function HashMapImplementation_String$EvaluatedValue() {}
1110 // ********** Code for HashSetImplementation ************** 1123 // ********** Code for HashSetImplementation **************
1111 function HashSetImplementation() { 1124 function HashSetImplementation() {
1112 // Initializers done 1125 // Initializers done
1113 this._backingMap = new HashMapImplementation_E$E(); 1126 this._backingMap = new HashMapImplementation_E$E();
1114 } 1127 }
1115 HashSetImplementation.HashSetImplementation$from$factory = function(other) { 1128 HashSetImplementation.HashSetImplementation$from$factory = function(other) {
1116 var set = new HashSetImplementation(); 1129 var set = new HashSetImplementation_E();
1117 for (var $$i = other.iterator(); $$i.hasNext$0(); ) { 1130 for (var $$i = other.iterator(); $$i.hasNext$0(); ) {
1118 var e = $$i.next$0(); 1131 var e = $$i.next$0();
1119 set.add(e); 1132 set.add(e);
1120 } 1133 }
1121 return set; 1134 return set;
1122 } 1135 }
1123 HashSetImplementation.prototype.add = function(value) { 1136 HashSetImplementation.prototype.add = function(value) {
1124 this._backingMap.$setindex(value, value); 1137 this._backingMap.$setindex(value, value);
1125 } 1138 }
1126 HashSetImplementation.prototype.contains = function(value) { 1139 HashSetImplementation.prototype.contains = function(value) {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1181 HashSetImplementation.prototype.forEach$1 = function($0) { 1194 HashSetImplementation.prototype.forEach$1 = function($0) {
1182 return this.forEach(to$call$1($0)); 1195 return this.forEach(to$call$1($0));
1183 }; 1196 };
1184 HashSetImplementation.prototype.isEmpty$0 = HashSetImplementation.prototype.isEm pty; 1197 HashSetImplementation.prototype.isEmpty$0 = HashSetImplementation.prototype.isEm pty;
1185 HashSetImplementation.prototype.iterator$0 = HashSetImplementation.prototype.ite rator; 1198 HashSetImplementation.prototype.iterator$0 = HashSetImplementation.prototype.ite rator;
1186 HashSetImplementation.prototype.some$1 = function($0) { 1199 HashSetImplementation.prototype.some$1 = function($0) {
1187 return this.some(to$call$1($0)); 1200 return this.some(to$call$1($0));
1188 }; 1201 };
1189 // ********** Code for HashSetImplementation_E ************** 1202 // ********** Code for HashSetImplementation_E **************
1190 $inherits(HashSetImplementation_E, HashSetImplementation); 1203 $inherits(HashSetImplementation_E, HashSetImplementation);
1191 function HashSetImplementation_E() {} 1204 function HashSetImplementation_E() {
1205 // Initializers done
1206 this._backingMap = new HashMapImplementation_E$E();
1207 }
1192 // ********** Code for HashSetImplementation_Library ************** 1208 // ********** Code for HashSetImplementation_Library **************
1193 $inherits(HashSetImplementation_Library, HashSetImplementation); 1209 $inherits(HashSetImplementation_Library, HashSetImplementation);
1194 function HashSetImplementation_Library() {} 1210 function HashSetImplementation_Library() {}
1195 // ********** Code for HashSetImplementation_String ************** 1211 // ********** Code for HashSetImplementation_String **************
1196 $inherits(HashSetImplementation_String, HashSetImplementation); 1212 $inherits(HashSetImplementation_String, HashSetImplementation);
1197 function HashSetImplementation_String() {} 1213 function HashSetImplementation_String() {}
1198 // ********** Code for HashSetImplementation_Type ************** 1214 // ********** Code for HashSetImplementation_Type **************
1199 $inherits(HashSetImplementation_Type, HashSetImplementation); 1215 $inherits(HashSetImplementation_Type, HashSetImplementation);
1200 function HashSetImplementation_Type() {} 1216 function HashSetImplementation_Type() {}
1201 // ********** Code for HashSetIterator ************** 1217 // ********** Code for HashSetIterator **************
(...skipping 12265 matching lines...) Expand 10 before | Expand all | Expand 10 after
13467 } 13483 }
13468 var const$0 = new EnvMap()/*const EnvMap()*/; 13484 var const$0 = new EnvMap()/*const EnvMap()*/;
13469 var const$127 = new IllegalAccessException()/*const IllegalAccessException()*/; 13485 var const$127 = new IllegalAccessException()/*const IllegalAccessException()*/;
13470 var const$128 = ImmutableList.ImmutableList$from$factory([])/*const []*/; 13486 var const$128 = ImmutableList.ImmutableList$from$factory([])/*const []*/;
13471 var const$2 = new EmptyQueueException()/*const EmptyQueueException()*/; 13487 var const$2 = new EmptyQueueException()/*const EmptyQueueException()*/;
13472 var const$3 = new _DeletedKeySentinel()/*const _DeletedKeySentinel()*/; 13488 var const$3 = new _DeletedKeySentinel()/*const _DeletedKeySentinel()*/;
13473 var const$8 = new NoMoreElementsException()/*const NoMoreElementsException()*/; 13489 var const$8 = new NoMoreElementsException()/*const NoMoreElementsException()*/;
13474 var $globals = {}; 13490 var $globals = {};
13475 $static_init(); 13491 $static_init();
13476 main(); 13492 main();
OLDNEW
« no previous file with comments | « corelib/src/time_zone.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698