| 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;
|
|
|