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

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

Issue 19097003: Support new malformed types semantics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix unittests. Created 7 years, 5 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 e4d3ce159c6baf762f0d3bc7cf159d55e4f78a33..8895637991fe1af2b4d730b31d9e482c15be5a81 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/bailout.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/bailout.dart
@@ -141,7 +141,7 @@ class SsaTypeGuardInserter extends SsaNonSpeculativeTypePropagator
Element source = instruction.sourceElement;
if (source != null) {
DartType sourceType = source.computeType(compiler);
- if (!sourceType.isMalformed && !sourceType.isDynamic &&
+ if (!sourceType.treatAsDynamic &&
sourceType.kind == TypeKind.INTERFACE) {
TypeMask sourceMask = new TypeMask.subtype(sourceType);
TypeMask speculatedMask = speculativeType.computeMask(compiler);

Powered by Google App Engine
This is Rietveld 408576698