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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/universe/side_effects.dart

Issue 17569004: Implement hashCode on objects stored in a set or used as map keys. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with TOT Created 7 years, 6 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: dart/sdk/lib/_internal/compiler/implementation/universe/side_effects.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/universe/side_effects.dart b/dart/sdk/lib/_internal/compiler/implementation/universe/side_effects.dart
index 1e27efa45880ed6c3c3000433cf457cd7b4d81fc..d6b06adf098cc8021f30345167b0f9003f20a7aa 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/universe/side_effects.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/universe/side_effects.dart
@@ -32,6 +32,8 @@ class SideEffects {
bool operator==(other) => flags == other.flags;
+ int get hashCode => throw new UnsupportedError('SideEffects.hashCode');
+
bool getFlag(int position) => (flags & (1 << position)) != 0;
void setFlag(int position) { flags |= (1 << position); }
void clearFlag(int position) { flags &= ~(1 << position); }

Powered by Google App Engine
This is Rietveld 408576698