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

Unified Diff: lib/compiler/implementation/universe.dart

Issue 10310040: Sort the output (for now just the classes and instance members). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add test. Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/compiler/implementation/typechecker.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/universe.dart
diff --git a/lib/compiler/implementation/universe.dart b/lib/compiler/implementation/universe.dart
index b2be0535569812af57f5bc2a6a0e847af496a325..5769fb636fc0b4f08daf813f8d11e4e64a4e4699 100644
--- a/lib/compiler/implementation/universe.dart
+++ b/lib/compiler/implementation/universe.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
class Universe {
+ int nextFreeClassId = 0;
Map<Element, String> generatedCode;
Map<Element, String> generatedBailoutCode;
final Set<ClassElement> instantiatedClasses;
@@ -28,6 +29,8 @@ class Universe {
isChecks = new Set<Element>(),
rti = new RuntimeTypeInformation();
+ int getNextFreeClassId() => nextFreeClassId++;
+
void addGeneratedCode(WorkItem work, String code) {
generatedCode[work.element] = code;
}
@@ -59,7 +62,7 @@ class Universe {
bool hasSetter(Element member, Compiler compiler) {
return hasMatchingSelector(
compiler.universe.invokedSetters[member.name], member, compiler);
- }
+ }
}
class SelectorKind {
@@ -95,7 +98,7 @@ class Selector implements Hashable {
: <SourceString>[];
Selector.invocation(
- int argumentCount,
+ int argumentCount,
[List<SourceString> namedArguments = const <SourceString>[]])
: this(SelectorKind.INVOCATION, argumentCount, namedArguments);
@@ -243,7 +246,7 @@ class Selector implements Hashable {
if (foundIndex != -1) {
list.add(compiledNamedArguments[foundIndex]);
} else {
- list.add(compileConstant(parameter));
+ list.add(compileConstant(parameter));
}
}
return true;
« no previous file with comments | « lib/compiler/implementation/typechecker.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698