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

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: 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/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 c6f20a0fbdc6ad8f85603c6fe86a0a3489b4b07c..687003a777582cd364fc5ad84f9f9c58d71db10b 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/native_handler.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/native_handler.dart
@@ -25,8 +25,9 @@ class SpecialType {
/// The type Object, but no subtypes:
static const JsObject = const SpecialType._('=Object');
-}
+ int get hashCode => name.hashCode;
+}
/**
* This could be an abstract class but we use it as a stub for the dart_backend.

Powered by Google App Engine
This is Rietveld 408576698