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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « frog/gen.dart ('k') | tests/isolate/isolate.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/minfrog
diff --git a/frog/minfrog b/frog/minfrog
index 06951f6951bcda28c95cdea99a8c66796caa4e26..1550aa03b18eac85296c262879273418e311f69a 100755
--- a/frog/minfrog
+++ b/frog/minfrog
@@ -3105,6 +3105,9 @@ WorldGenerator.prototype.analyze = function() {
var $list0 = lib.get$types().getValues();
for (var $i0 = $list0.iterator(); $i0.hasNext(); ) {
var type = $i0.next();
+ if (type.get$library().get$isDom() || type.get$isHiddenNativeType()) {
+ if (type.get$isClass()) type.markUsed();
+ }
ntypes += (1);
var allMembers = [];
allMembers.addAll(type.get$constructors().getValues());
@@ -3256,12 +3259,6 @@ WorldGenerator.prototype.writeTypes = function(lib) {
var orderedTypes = this._orderValues(lib.types);
for (var $$i = orderedTypes.iterator(); $$i.hasNext(); ) {
var type = $$i.next();
- if ((type.get$library().get$isDom() || type.get$isHiddenNativeType()) && type.get$isClass()) {
- type.markUsed();
- }
- }
- for (var $$i = orderedTypes.iterator(); $$i.hasNext(); ) {
- var type = $$i.next();
if (type.get$isUsed() && type.get$isClass()) {
this.writeType(type);
if (type.get$isGeneric() && type != $globals.world.listFactoryType) {
« 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