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

Unified Diff: runtime/lib/mirrors.cc

Issue 196513004: Clean up ClosureMirror.invoke(#call, ...). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: adapt to alternate implementation of closure.call Created 6 years, 9 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 098ef1ef853c88224f8c88a136f37d12116c2f79..1ef4b3d2bcfe0015b605d458ebbbf5fd32b04c4d 100644
--- a/runtime/lib/mirrors.cc
+++ b/runtime/lib/mirrors.cc
@@ -1550,23 +1550,6 @@ DEFINE_NATIVE_ENTRY(InstanceMirror_computeType, 1) {
}
-DEFINE_NATIVE_ENTRY(ClosureMirror_apply, 2) {
- GET_NON_NULL_NATIVE_ARGUMENT(Array, args, arguments->NativeArgAt(0));
- GET_NON_NULL_NATIVE_ARGUMENT(Array, arg_names, arguments->NativeArgAt(1));
-
- const Array& args_descriptor =
- Array::Handle(ArgumentsDescriptor::New(args.Length(), arg_names));
-
- const Object& result =
- Object::Handle(DartEntry::InvokeClosure(args, args_descriptor));
- if (result.IsError()) {
- ThrowInvokeError(Error::Cast(result));
- UNREACHABLE();
- }
- return result.raw();
-}
-
-
DEFINE_NATIVE_ENTRY(ClosureMirror_find_in_context, 2) {
if (!FLAG_support_find_in_context) {
return Object::empty_array().raw();
« 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