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

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

Issue 12509005: Add intersection of disjoint masks to the TypeMask implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Allow base == null. Ugh. Created 7 years, 9 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 66ed77049f5a2e5d5a9ac7137cb0778f0550a625..9ccb4ede178b595d43f73f6a8d83226d92609c55 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
@@ -563,6 +563,9 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase {
}
HInstruction visitTypeConversion(HTypeConversion node) {
+ // TODO(kasperl): This needs cleaning up. We shouldn't be creating
+ // HType objects for malformed types.
+ if (node.isMalformedCheckedModeCheck) return node;
HInstruction value = node.inputs[0];
DartType type = node.instructionType.computeType(compiler);
if (identical(type.element, compiler.dynamicClass)

Powered by Google App Engine
This is Rietveld 408576698