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

Unified Diff: runtime/lib/mirrors.cc

Issue 25099003: Make the implementations of InstanceMirror.hashCode use dart:core's identityHashCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 years, 2 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
« no previous file with comments | « no previous file | runtime/lib/mirrors_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/mirrors.cc
diff --git a/runtime/lib/mirrors.cc b/runtime/lib/mirrors.cc
index 754aa5f82df967574e1898f8cbb33abd062fc827..f6cb3104fc53c44d0e5eba3664ef3084adb092de 100644
--- a/runtime/lib/mirrors.cc
+++ b/runtime/lib/mirrors.cc
@@ -1064,18 +1064,6 @@ DEFINE_NATIVE_ENTRY(TypeVariableMirror_upper_bound, 1) {
}
-DEFINE_NATIVE_ENTRY(InstanceMirror_identityHash, 1) {
- GET_NATIVE_ARGUMENT(Instance, reflectee, arguments->NativeArgAt(0));
- ObjectStore* object_store = isolate->object_store();
- const Class& cls = Class::Handle(isolate, object_store->object_class());
- const Function& function =
- Function::Handle(isolate, cls.LookupDynamicFunction(Symbols::hashCode()));
- const Array& args = Array::Handle(isolate, Array::New(1));
- args.SetAt(0, reflectee);
- return DartEntry::InvokeFunction(function, args);
-}
-
-
DEFINE_NATIVE_ENTRY(InstanceMirror_invoke, 5) {
// Argument 0 is the mirror, which is unused by the native. It exists
// because this native is an instance method in order to be polymorphic
« no previous file with comments | « no previous file | runtime/lib/mirrors_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698