| Index: pkg/compiler/lib/src/common/names.dart
|
| diff --git a/pkg/compiler/lib/src/common/names.dart b/pkg/compiler/lib/src/common/names.dart
|
| index b2e99a738816224c1ac0d8faa9b7ba7f1aaf740a..a53e6a9643a26cf344313f9214502a099c729f20 100644
|
| --- a/pkg/compiler/lib/src/common/names.dart
|
| +++ b/pkg/compiler/lib/src/common/names.dart
|
| @@ -10,6 +10,7 @@ import '../elements/elements.dart' show
|
| Name,
|
| PublicName;
|
| import '../universe/universe.dart' show
|
| + CallStructure,
|
| Selector;
|
|
|
| /// [String]s commonly used.
|
| @@ -60,7 +61,7 @@ class Names {
|
| class Selectors {
|
| /// The selector for calling the cancel method on 'StreamIterator'.
|
| static final Selector cancel =
|
| - new Selector.call(const PublicName('cancel'), 0);
|
| + new Selector.call(const PublicName('cancel'), CallStructure.NO_ARGS);
|
|
|
| /// The selector for getting the current element property used in for-each
|
| /// loops.
|
| @@ -70,12 +71,20 @@ class Selectors {
|
| static final Selector iterator = new Selector.getter(Names.iterator);
|
|
|
| /// The selector for calling the move next method used in for-each loops.
|
| - static final Selector moveNext = new Selector.call(Names.moveNext, 0);
|
| + static final Selector moveNext =
|
| + new Selector.call(Names.moveNext, CallStructure.NO_ARGS);
|
|
|
| /// The selector for calling the no such method handler on 'Object'.
|
| static final Selector noSuchMethod_ =
|
| - new Selector.call(Names.noSuchMethod_, 1);
|
| + new Selector.call(Names.noSuchMethod_, CallStructure.ONE_ARG);
|
|
|
| /// The selector for calling the to-string method on 'Object'.
|
| - static final Selector toString_ = new Selector.call(Names.toString_, 0);
|
| + static final Selector toString_ =
|
| + new Selector.call(Names.toString_, CallStructure.NO_ARGS);
|
| +
|
| + static final Selector hashCode_ =
|
| + new Selector.getter(const PublicName('hashCode'));
|
| +
|
| + static final Selector compareTo =
|
| + new Selector.call(const PublicName("compareTo"), CallStructure.ONE_ARG);
|
| }
|
|
|