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

Unified Diff: dart/lib/compiler/implementation/lib/native_helper.dart

Issue 10965034: Implement Object.hashCode() (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update dart2dart status Created 8 years, 3 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/lib/compiler/implementation/lib/native_helper.dart
diff --git a/dart/lib/compiler/implementation/lib/native_helper.dart b/dart/lib/compiler/implementation/lib/native_helper.dart
index b712204809ba12a534ecabb0a5a5119af916d7ff..43aa31f74cd6326f646608316473699176355ada 100644
--- a/dart/lib/compiler/implementation/lib/native_helper.dart
+++ b/dart/lib/compiler/implementation/lib/native_helper.dart
@@ -159,6 +159,8 @@ String toStringForNativeObject(var obj) {
return 'Instance of $name';
}
+String hashCodeForNativeObject(object) => Primitives.objectHashCode(object);
+
/**
* Sets a JavaScript property on an object.
*/
« no previous file with comments | « dart/lib/compiler/implementation/lib/js_helper.dart ('k') | dart/lib/compiler/implementation/native_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698