| Index: pkg/compiler/lib/src/ssa/optimize.dart
|
| diff --git a/pkg/compiler/lib/src/ssa/optimize.dart b/pkg/compiler/lib/src/ssa/optimize.dart
|
| index 795b510fbc31ae0b60e76390e1eb499b5c97612b..eeb12c5e0ad154d4b5c420457318d9b917424894 100644
|
| --- a/pkg/compiler/lib/src/ssa/optimize.dart
|
| +++ b/pkg/compiler/lib/src/ssa/optimize.dart
|
| @@ -268,9 +268,11 @@ class SsaInstructionSimplifier extends HBaseVisitor
|
| ClassWorld classWorld = compiler.world;
|
| TypeMask resultType = backend.positiveIntType;
|
| // If we already have computed a more specific type, keep that type.
|
| - if (actualType.satisfies(backend.jsUInt31Class, classWorld)) {
|
| + if (HInstruction.isInstanceOf(
|
| + actualType, backend.jsUInt31Class, classWorld)) {
|
| resultType = backend.uint31Type;
|
| - } else if (actualType.satisfies(backend.jsUInt32Class, classWorld)) {
|
| + } else if (HInstruction.isInstanceOf(
|
| + actualType, backend.jsUInt32Class, classWorld)) {
|
| resultType = backend.uint32Type;
|
| }
|
| HFieldGet result = new HFieldGet(
|
|
|