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

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

Issue 94873002: Fix ContainerTypeMask== and ContainerTypeMask.hashCode. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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/container_type_mask.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/types/container_type_mask.dart (revision 30759)
+++ sdk/lib/_internal/compiler/implementation/types/container_type_mask.dart (working copy)
@@ -92,14 +92,16 @@
return allocationNode == other.allocationNode
&& isNullable == other.isNullable
&& elementType == other.elementType
- && length == other.length;
+ && length == other.length
+ && forwardTo == other.forwardTo;
}
int get hashCode {
- return computeHashCode(allocationNode, isNullable, elementType, length);
+ return computeHashCode(
+ allocationNode, isNullable, elementType, length, forwardTo);
}
String toString() {
- return 'Container mask: $elementType $length';
+ return 'Container mask: $elementType length: $length type: $forwardTo';
}
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/builder.dart ('k') | sdk/lib/_internal/compiler/implementation/util/util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698