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

Side by Side Diff: frog/minfrog

Issue 9113061: Reapply r3590 with frog fixes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merged Created 8 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « frog/gen.dart ('k') | tests/isolate/isolate.status » ('j') | 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 function $defProp(obj, prop, value) { 4 function $defProp(obj, prop, value) {
5 Object.defineProperty(obj, prop, 5 Object.defineProperty(obj, prop,
6 {value: value, enumerable: false, writable: true, configurable: true}); 6 {value: value, enumerable: false, writable: true, configurable: true});
7 } 7 }
8 function $throw(e) { 8 function $throw(e) {
9 // If e is not a value, we can use V8's captureStackTrace utility method. 9 // If e is not a value, we can use V8's captureStackTrace utility method.
10 // TODO(jmesserly): capture the stack trace on other JS engines. 10 // TODO(jmesserly): capture the stack trace on other JS engines.
(...skipping 3087 matching lines...) Expand 10 before | Expand all | Expand 10 after
3098 WorldGenerator.prototype.set$writer = function(value) { return this.writer = val ue; }; 3098 WorldGenerator.prototype.set$writer = function(value) { return this.writer = val ue; };
3099 WorldGenerator.prototype.analyze = function() { 3099 WorldGenerator.prototype.analyze = function() {
3100 var nlibs = (0), ntypes = (0), nmems = (0), nnews = (0); 3100 var nlibs = (0), ntypes = (0), nmems = (0), nnews = (0);
3101 var $$list = $globals.world.libraries.getValues(); 3101 var $$list = $globals.world.libraries.getValues();
3102 for (var $$i = $$list.iterator(); $$i.hasNext(); ) { 3102 for (var $$i = $$list.iterator(); $$i.hasNext(); ) {
3103 var lib = $$i.next(); 3103 var lib = $$i.next();
3104 nlibs += (1); 3104 nlibs += (1);
3105 var $list0 = lib.get$types().getValues(); 3105 var $list0 = lib.get$types().getValues();
3106 for (var $i0 = $list0.iterator(); $i0.hasNext(); ) { 3106 for (var $i0 = $list0.iterator(); $i0.hasNext(); ) {
3107 var type = $i0.next(); 3107 var type = $i0.next();
3108 if (type.get$library().get$isDom() || type.get$isHiddenNativeType()) {
3109 if (type.get$isClass()) type.markUsed();
3110 }
3108 ntypes += (1); 3111 ntypes += (1);
3109 var allMembers = []; 3112 var allMembers = [];
3110 allMembers.addAll(type.get$constructors().getValues()); 3113 allMembers.addAll(type.get$constructors().getValues());
3111 allMembers.addAll(type.get$members().getValues()); 3114 allMembers.addAll(type.get$members().getValues());
3112 type.get$factories().forEach((function (allMembers, f) { 3115 type.get$factories().forEach((function (allMembers, f) {
3113 return allMembers.add(f); 3116 return allMembers.add(f);
3114 }).bind(null, allMembers) 3117 }).bind(null, allMembers)
3115 ); 3118 );
3116 for (var $i1 = allMembers.iterator(); $i1.hasNext(); ) { 3119 for (var $i1 = allMembers.iterator(); $i1.hasNext(); ) {
3117 var m = $i1.next(); 3120 var m = $i1.next();
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
3249 for (var $$i = $$list.iterator(); $$i.hasNext(); ) { 3252 for (var $$i = $$list.iterator(); $$i.hasNext(); ) {
3250 var file = $$i.next(); 3253 var file = $$i.next();
3251 var filename = basename(file.get$filename()); 3254 var filename = basename(file.get$filename());
3252 this.writer.comment(("// ********** Natives " + filename + " ************** ")); 3255 this.writer.comment(("// ********** Natives " + filename + " ************** "));
3253 this.writer.writeln(file.get$text()); 3256 this.writer.writeln(file.get$text());
3254 } 3257 }
3255 lib.topType.markUsed(); 3258 lib.topType.markUsed();
3256 var orderedTypes = this._orderValues(lib.types); 3259 var orderedTypes = this._orderValues(lib.types);
3257 for (var $$i = orderedTypes.iterator(); $$i.hasNext(); ) { 3260 for (var $$i = orderedTypes.iterator(); $$i.hasNext(); ) {
3258 var type = $$i.next(); 3261 var type = $$i.next();
3259 if ((type.get$library().get$isDom() || type.get$isHiddenNativeType()) && typ e.get$isClass()) {
3260 type.markUsed();
3261 }
3262 }
3263 for (var $$i = orderedTypes.iterator(); $$i.hasNext(); ) {
3264 var type = $$i.next();
3265 if (type.get$isUsed() && type.get$isClass()) { 3262 if (type.get$isUsed() && type.get$isClass()) {
3266 this.writeType(type); 3263 this.writeType(type);
3267 if (type.get$isGeneric() && type != $globals.world.listFactoryType) { 3264 if (type.get$isGeneric() && type != $globals.world.listFactoryType) {
3268 var $$list = this._orderValues(type.get$_concreteTypes()); 3265 var $$list = this._orderValues(type.get$_concreteTypes());
3269 for (var $i0 = $$list.iterator(); $i0.hasNext(); ) { 3266 for (var $i0 = $$list.iterator(); $i0.hasNext(); ) {
3270 var ct = $i0.next(); 3267 var ct = $i0.next();
3271 if (ct.get$isUsed()) this.writeType(ct); 3268 if (ct.get$isUsed()) this.writeType(ct);
3272 } 3269 }
3273 } 3270 }
3274 } 3271 }
(...skipping 11360 matching lines...) Expand 10 before | Expand all | Expand 10 after
14635 } 14632 }
14636 var const$0000 = Object.create(_DeletedKeySentinel.prototype, {}); 14633 var const$0000 = Object.create(_DeletedKeySentinel.prototype, {});
14637 var const$0001 = Object.create(NoMoreElementsException.prototype, {}); 14634 var const$0001 = Object.create(NoMoreElementsException.prototype, {});
14638 var const$0002 = Object.create(EmptyQueueException.prototype, {}); 14635 var const$0002 = Object.create(EmptyQueueException.prototype, {});
14639 var const$0006 = Object.create(IllegalAccessException.prototype, {}); 14636 var const$0006 = Object.create(IllegalAccessException.prototype, {});
14640 var const$0007 = ImmutableList.ImmutableList$from$factory([]); 14637 var const$0007 = ImmutableList.ImmutableList$from$factory([]);
14641 var const$0009 = new JSSyntaxRegExp("^[a-zA-Z]:/"); 14638 var const$0009 = new JSSyntaxRegExp("^[a-zA-Z]:/");
14642 var $globals = {}; 14639 var $globals = {};
14643 $static_init(); 14640 $static_init();
14644 main(); 14641 main();
OLDNEW
« no previous file with comments | « frog/gen.dart ('k') | tests/isolate/isolate.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698