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

Side by Side Diff: runtime/lib/invocation_mirror_patch.dart

Issue 114713002: VM: Support calling through getters in InstanceMirror.delegate. Implement without accessing private… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: sync Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/lib/invocation_mirror.cc ('k') | runtime/lib/mirrors_impl.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 class _InvocationMirror implements Invocation { 5 class _InvocationMirror implements Invocation {
6 // Constants describing the invocation type. 6 // Constants describing the invocation type.
7 // _FIELD cannot be generated by regular invocation mirrors. 7 // _FIELD cannot be generated by regular invocation mirrors.
8 static const int _METHOD = 0; 8 static const int _METHOD = 0;
9 static const int _GETTER = 1; 9 static const int _GETTER = 1;
10 static const int _SETTER = 2; 10 static const int _SETTER = 2;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 static _allocateInvocationMirror(String functionName, 127 static _allocateInvocationMirror(String functionName,
128 List argumentsDescriptor, 128 List argumentsDescriptor,
129 List arguments, 129 List arguments,
130 bool isSuperInvocation) { 130 bool isSuperInvocation) {
131 return new _InvocationMirror(functionName, 131 return new _InvocationMirror(functionName,
132 argumentsDescriptor, 132 argumentsDescriptor,
133 arguments, 133 arguments,
134 isSuperInvocation); 134 isSuperInvocation);
135 } 135 }
136
137 static _invoke(Object receiver,
138 String functionName,
139 List argumentsDescriptor,
140 List arguments)
141 native "InvocationMirror_invoke";
142
143 _invokeOn(Object receiver) {
144 return _invoke(receiver, _functionName, _argumentsDescriptor, _arguments);
145 }
146
147 // TODO(ahe): This is a hack. See _LocalInstanceMirrorImpl.delegate
148 // in mirrors_impl.dart
149 static final _invokeOnClosure = (x, y) => y._invokeOn(x);
150 } 136 }
OLDNEW
« no previous file with comments | « runtime/lib/invocation_mirror.cc ('k') | runtime/lib/mirrors_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698