| Index: pkg/compiler/lib/src/universe/universe.dart
|
| diff --git a/pkg/compiler/lib/src/universe/universe.dart b/pkg/compiler/lib/src/universe/universe.dart
|
| index c3249d1d925a8421e7249382e43c3a17e9d1cbb0..34d6f589f9a1f1f34bc3a6ddd58c31d1b5d8d9ce 100644
|
| --- a/pkg/compiler/lib/src/universe/universe.dart
|
| +++ b/pkg/compiler/lib/src/universe/universe.dart
|
| @@ -781,8 +781,6 @@ class TypedSelector extends Selector {
|
| assert(asUntyped.mask == null);
|
| }
|
|
|
| - static Map<Selector, Map<TypeMask, TypedSelector>> canonicalizedValues =
|
| - new Map<Selector, Map<TypeMask, TypedSelector>>();
|
|
|
| factory TypedSelector(TypeMask mask, Selector selector, World world) {
|
| if (!world.hasClosedWorldAssumption) {
|
| @@ -797,8 +795,8 @@ class TypedSelector extends Selector {
|
| assert(world.isClosed || mask.isExact);
|
| if (selector.mask == mask) return selector;
|
| Selector untyped = selector.asUntyped;
|
| - Map<TypeMask, TypedSelector> map = canonicalizedValues.putIfAbsent(untyped,
|
| - () => new Map<TypeMask, TypedSelector>());
|
| + Map<TypeMask, TypedSelector> map = world.canonicalizedValues
|
| + .putIfAbsent(untyped, () => new Map<TypeMask, TypedSelector>());
|
| TypedSelector result = map[mask];
|
| if (result == null) {
|
| int hashCode = Selector.mixHashCodeBits(untyped.hashCode, mask.hashCode);
|
|
|