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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/native_handler.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: 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/native_handler.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/native_handler.dart b/dart/sdk/lib/_internal/compiler/implementation/native_handler.dart
index df00f7726d1da3afb5830dab7f7979dbd94bdf6b..13a1ff90ab5116c503d6ad24a597f02d5fb2368e 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/native_handler.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/native_handler.dart
@@ -28,6 +28,8 @@ class SpecialType {
/// The specific implementation of List that is JavaScript Array:
static const JsArray = const SpecialType._('=List');
+
+ int get hashCode => name.hashCode;
}

Powered by Google App Engine
This is Rietveld 408576698