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

Unified Diff: sdk/lib/_internal/compiler/implementation/types/type_mask.dart

Issue 14217011: If we know a call will actually not reach an element anymore, because we have more information on t… (Closed) Base URL: http://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/types/type_mask.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/types/type_mask.dart (revision 21931)
+++ sdk/lib/_internal/compiler/implementation/types/type_mask.dart (working copy)
@@ -408,6 +408,7 @@
* privacy is taken into account.
*/
bool canHit(Element element, Selector selector, Compiler compiler) {
+ assert(element.name == selector.name);
if (isEmpty) {
if (!isNullable) return false;
return hasElementIn(

Powered by Google App Engine
This is Rietveld 408576698