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

Unified Diff: dart/runtime/lib/invocation_mirror_patch.dart

Issue 14251021: Move invokeOn to InstanceMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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 | dart/runtime/lib/mirrors_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/runtime/lib/invocation_mirror_patch.dart
diff --git a/dart/runtime/lib/invocation_mirror_patch.dart b/dart/runtime/lib/invocation_mirror_patch.dart
index 0e2ebae71dca4ccb1166dc04cf6d18186606186c..cce75f433e11077532f8779e0a7904a281f0f74f 100644
--- a/dart/runtime/lib/invocation_mirror_patch.dart
+++ b/dart/runtime/lib/invocation_mirror_patch.dart
@@ -126,8 +126,11 @@ class _InvocationMirror implements Invocation {
List arguments)
native "InvocationMirror_invoke";
- invokeOn(Object receiver) {
+ _invokeOn(Object receiver) {
return _invoke(receiver, _functionName, _argumentsDescriptor, _arguments);
}
-}
+ // TODO(ahe): This is a hack. See _LocalInstanceMirrorImpl.delegate
+ // in mirrors_impl.dart
+ static final _invokeOnClosure = (x, y) => y._invokeOn(x);
+}
« no previous file with comments | « no previous file | dart/runtime/lib/mirrors_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698