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

Unified Diff: compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java

Issue 8218022: Correct class sort order. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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 | « compiler/java/com/google/dart/compiler/backend/js/AbstractJsBackend.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java
===================================================================
--- compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java (revision 305)
+++ compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java (working copy)
@@ -412,10 +412,11 @@
}
}
- rtt.generateRuntimeTypeInfo(x);
maybeInjectIsolateMethods(classElement);
if (classElement.isInterface()) {
+ rtt.generateRuntimeTypeInfo(x);
+
// Emit only static final fields for interfaces.
for (Element member : classElement.getMembers()) {
if (ElementKind.of(member).equals(ElementKind.FIELD)) {
@@ -437,6 +438,8 @@
inherits.setSourceRef(x);
globalBlock.getStatements().add(inherits.makeStmt());
}
+
pdr 2011/10/10 22:56:34 Extra spaces
John Lenz 2011/10/10 23:21:08 Done.
+ rtt.generateRuntimeTypeInfo(x);
List<Element> classMembers = new ArrayList<Element>();
classMembers.addAll(classElement.getConstructors());
@@ -471,7 +474,7 @@
throw new AssertionError("Invalid member " + member);
}
}
-
+
pdr 2011/10/10 22:56:34 Extra spaces
John Lenz 2011/10/10 23:21:08 Done.
// TODO(johnlenz): should we create a stub method to catch
// class without const constructors? As is, the a non-const
// class with get the id of an "const Object".
« no previous file with comments | « compiler/java/com/google/dart/compiler/backend/js/AbstractJsBackend.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698