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

Side by Side Diff: runtime/vm/bootstrap_natives.h

Issue 18465006: Add a MirrorReference reflectee for ClassMirrors. Rewrite the name accessor in terms of it, at leas… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« runtime/lib/mirrors_impl.dart ('K') | « runtime/lib/mirrors_impl.dart ('k') | no next file » | 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 #ifndef VM_BOOTSTRAP_NATIVES_H_ 5 #ifndef VM_BOOTSTRAP_NATIVES_H_
6 #define VM_BOOTSTRAP_NATIVES_H_ 6 #define VM_BOOTSTRAP_NATIVES_H_
7 7
8 #include "vm/native_entry.h" 8 #include "vm/native_entry.h"
9 9
10 // bootstrap dart natives used in the core dart library. 10 // bootstrap dart natives used in the core dart library.
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 V(Mirrors_isLocalPort, 1) \ 236 V(Mirrors_isLocalPort, 1) \
237 V(Mirrors_makeLocalInstanceMirror, 1) \ 237 V(Mirrors_makeLocalInstanceMirror, 1) \
238 V(Mirrors_makeLocalClassMirror, 1) \ 238 V(Mirrors_makeLocalClassMirror, 1) \
239 V(Mirrors_makeLocalMirrorSystem, 0) \ 239 V(Mirrors_makeLocalMirrorSystem, 0) \
240 V(Mirrors_metadata, 1) \ 240 V(Mirrors_metadata, 1) \
241 V(LocalObjectMirrorImpl_invoke, 4) \ 241 V(LocalObjectMirrorImpl_invoke, 4) \
242 V(LocalObjectMirrorImpl_getField, 2) \ 242 V(LocalObjectMirrorImpl_getField, 2) \
243 V(LocalObjectMirrorImpl_setField, 4) \ 243 V(LocalObjectMirrorImpl_setField, 4) \
244 V(LocalClosureMirrorImpl_apply, 3) \ 244 V(LocalClosureMirrorImpl_apply, 3) \
245 V(LocalClassMirrorImpl_invokeConstructor, 4) \ 245 V(LocalClassMirrorImpl_invokeConstructor, 4) \
246 V(ClassMirror_name, 1) \
246 V(GrowableObjectArray_allocate, 2) \ 247 V(GrowableObjectArray_allocate, 2) \
247 V(GrowableObjectArray_getIndexed, 2) \ 248 V(GrowableObjectArray_getIndexed, 2) \
248 V(GrowableObjectArray_setIndexed, 3) \ 249 V(GrowableObjectArray_setIndexed, 3) \
249 V(GrowableObjectArray_getLength, 1) \ 250 V(GrowableObjectArray_getLength, 1) \
250 V(GrowableObjectArray_getCapacity, 1) \ 251 V(GrowableObjectArray_getCapacity, 1) \
251 V(GrowableObjectArray_setLength, 2) \ 252 V(GrowableObjectArray_setLength, 2) \
252 V(GrowableObjectArray_setData, 2) \ 253 V(GrowableObjectArray_setData, 2) \
253 V(WeakProperty_new, 2) \ 254 V(WeakProperty_new, 2) \
254 V(WeakProperty_getKey, 1) \ 255 V(WeakProperty_getKey, 1) \
255 V(WeakProperty_getValue, 1) \ 256 V(WeakProperty_getValue, 1) \
256 V(WeakProperty_setValue, 2) \ 257 V(WeakProperty_setValue, 2) \
257 258
258 class BootstrapNatives : public AllStatic { 259 class BootstrapNatives : public AllStatic {
259 public: 260 public:
260 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count); 261 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count);
261 262
262 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ 263 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \
263 static void DN_##name(Dart_NativeArguments args); 264 static void DN_##name(Dart_NativeArguments args);
264 265
265 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) 266 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
266 267
267 #undef DECLARE_BOOTSTRAP_NATIVE 268 #undef DECLARE_BOOTSTRAP_NATIVE
268 }; 269 };
269 270
270 } // namespace dart 271 } // namespace dart
271 272
272 #endif // VM_BOOTSTRAP_NATIVES_H_ 273 #endif // VM_BOOTSTRAP_NATIVES_H_
OLDNEW
« runtime/lib/mirrors_impl.dart ('K') | « runtime/lib/mirrors_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698