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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart

Issue 12764005: Get rid of old code for union/intersection in HType. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove unused factory methods. 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/js_backend/emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
index b0ffbd6106c27caa29eb8104ff07c5fdbf1548ce..35c76fd67a52f12b37650843dba8566266be98b4 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
@@ -2043,6 +2043,7 @@ class CodeEmitterTask extends CompilerTask {
ClassElement receiverClass = objectClass;
TypeMask mask = selector.mask;
if (mask != null) {
+ if (mask.isEmpty) continue;
ngeoffray 2013/03/11 14:52:28 Please add a comment that if the mask is JSNull, w
kasperl 2013/03/12 05:56:56 Done.
receiverClass = mask.base.element;
}

Powered by Google App Engine
This is Rietveld 408576698