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

Unified Diff: runtime/lib/isolate_patch.dart

Issue 778983002: - Implement hashCode and == for Capability. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years 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
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/isolate_patch.dart
===================================================================
--- runtime/lib/isolate_patch.dart (revision 42101)
+++ runtime/lib/isolate_patch.dart (working copy)
@@ -17,6 +17,17 @@
class _CapabilityImpl implements Capability {
factory _CapabilityImpl() native "CapabilityImpl_factory";
+
+ bool operator==(var other) {
+ return (other is _CapabilityImpl) && _equals(other);
+ }
+
+ int get hashCode {
+ return _get_hashcode();
+ }
+
+ _equals(other) native "CapabilityImpl_equals";
+ _get_hashcode() native "CapabilityImpl_get_hashcode";
}
patch class RawReceivePort {
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698