| Index: pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart
|
| diff --git a/pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart b/pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart
|
| index 9e81bca631b5918104099b25a6888581e2cce847..95f0c3b3ee73eef20ddb892d81a082ade3a16157 100644
|
| --- a/pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart
|
| +++ b/pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart
|
| @@ -56,7 +56,6 @@ import '../../js_backend/js_backend.dart' show
|
| import '../../util/uri_extras.dart' show
|
| relativize;
|
|
|
| -import '../constant_ordering.dart' show deepCompareConstants;
|
| import '../headers.dart';
|
| import '../js_emitter.dart' show
|
| NativeEmitter;
|
| @@ -141,9 +140,9 @@ class ModelEmitter {
|
| // which compresses a tiny bit better.
|
| int r = namer.constantLongName(a).compareTo(namer.constantLongName(b));
|
| if (r != 0) return r;
|
| -
|
| - // Resolve collisions in the long name by using a structural order.
|
| - return deepCompareConstants(a, b);
|
| + // Resolve collisions in the long name by using the constant name (i.e. JS
|
| + // name) which is unique.
|
| + return namer.constantName(a).compareTo(namer.constantName(b));
|
| }
|
|
|
| js.Expression generateStaticClosureAccess(FunctionElement element) {
|
|
|