Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/optimize.dart

Issue 13685022: Make mixins work on native classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart ('k') | tests/compiler/dart2js_native/dart2js_native.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698