Index: sdk/lib/_internal/compiler/implementation/ssa/optimize.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart b/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart |
index a44058c00d3235fcf239e059e31ec9b0a9c9c24c..65a82ca30c2b6e73e5dd84c5ba72a3d9daefe215 100644 |
--- a/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart |
+++ b/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart |
@@ -815,7 +815,9 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase { |
TypeMask receiverMask = receiverType.computeMask(compiler); |
return interceptedClasses |
.where((cls) => cls != compiler.objectClass) |
- .map((cls) => new TypeMask.subclass(cls.rawType)) |
+ .map((cls) => backend.classesMixedIntoNativeClasses.contains(cls) |
+ ? new TypeMask.subtype(cls.rawType) |
+ : new TypeMask.subclass(cls.rawType)) |
.every((mask) => receiverMask.intersection(mask, compiler).isEmpty); |
} |