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

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

Issue 19780002: Convert MethodMirror.returnType to native calls (and more) (Closed) Base URL: https://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
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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 V(ClassMirror_invoke, 4) \ 248 V(ClassMirror_invoke, 4) \
249 V(ClassMirror_invokeGetter, 3) \ 249 V(ClassMirror_invokeGetter, 3) \
250 V(ClassMirror_invokeSetter, 4) \ 250 V(ClassMirror_invokeSetter, 4) \
251 V(ClassMirror_invokeConstructor, 3) \ 251 V(ClassMirror_invokeConstructor, 3) \
252 V(LibraryMirror_invoke, 4) \ 252 V(LibraryMirror_invoke, 4) \
253 V(LibraryMirror_invokeGetter, 3) \ 253 V(LibraryMirror_invokeGetter, 3) \
254 V(LibraryMirror_invokeSetter, 4) \ 254 V(LibraryMirror_invokeSetter, 4) \
255 V(DeclarationMirror_metadata, 1) \ 255 V(DeclarationMirror_metadata, 1) \
256 V(MethodMirror_name, 1) \ 256 V(MethodMirror_name, 1) \
257 V(MethodMirror_owner, 1) \ 257 V(MethodMirror_owner, 1) \
258 V(MethodMirror_return_type, 1) \
258 V(GrowableObjectArray_allocate, 2) \ 259 V(GrowableObjectArray_allocate, 2) \
259 V(GrowableObjectArray_getIndexed, 2) \ 260 V(GrowableObjectArray_getIndexed, 2) \
260 V(GrowableObjectArray_setIndexed, 3) \ 261 V(GrowableObjectArray_setIndexed, 3) \
261 V(GrowableObjectArray_getLength, 1) \ 262 V(GrowableObjectArray_getLength, 1) \
262 V(GrowableObjectArray_getCapacity, 1) \ 263 V(GrowableObjectArray_getCapacity, 1) \
263 V(GrowableObjectArray_setLength, 2) \ 264 V(GrowableObjectArray_setLength, 2) \
264 V(GrowableObjectArray_setData, 2) \ 265 V(GrowableObjectArray_setData, 2) \
265 V(WeakProperty_new, 2) \ 266 V(WeakProperty_new, 2) \
266 V(WeakProperty_getKey, 1) \ 267 V(WeakProperty_getKey, 1) \
267 V(WeakProperty_getValue, 1) \ 268 V(WeakProperty_getValue, 1) \
268 V(WeakProperty_setValue, 2) \ 269 V(WeakProperty_setValue, 2) \
269 270
270 class BootstrapNatives : public AllStatic { 271 class BootstrapNatives : public AllStatic {
271 public: 272 public:
272 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count); 273 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count);
273 274
274 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ 275 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \
275 static void DN_##name(Dart_NativeArguments args); 276 static void DN_##name(Dart_NativeArguments args);
276 277
277 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) 278 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
278 279
279 #undef DECLARE_BOOTSTRAP_NATIVE 280 #undef DECLARE_BOOTSTRAP_NATIVE
280 }; 281 };
281 282
282 } // namespace dart 283 } // namespace dart
283 284
284 #endif // VM_BOOTSTRAP_NATIVES_H_ 285 #endif // VM_BOOTSTRAP_NATIVES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698