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

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

Issue 24952003: Change TypeMask.base to be a ClassElement. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Moar declaration. Created 7 years, 3 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/bailout.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/bailout.dart b/sdk/lib/_internal/compiler/implementation/ssa/bailout.dart
index 2548c6a4b3c92046a87492e7a0264e3d4437cf48..90f21963db4c1e28019d657d7077112d21859a46 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/bailout.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/bailout.dart
@@ -143,7 +143,7 @@ class SsaTypeGuardInserter extends SsaNonSpeculativeTypePropagator
DartType sourceType = source.computeType(compiler);
if (!sourceType.treatAsDynamic &&
sourceType.kind == TypeKind.INTERFACE) {
- TypeMask sourceMask = new TypeMask.subtype(sourceType);
+ TypeMask sourceMask = new TypeMask.subtype(sourceType.element);
TypeMask speculatedMask = speculativeType.computeMask(compiler);
if (sourceMask.intersection(speculatedMask, compiler).isEmpty) {
return false;

Powered by Google App Engine
This is Rietveld 408576698