OLD | NEW |
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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 V(isolate_spawnUri, 1) \ | 237 V(isolate_spawnUri, 1) \ |
238 V(Mirrors_isLocalPort, 1) \ | 238 V(Mirrors_isLocalPort, 1) \ |
239 V(Mirrors_makeLocalInstanceMirror, 1) \ | 239 V(Mirrors_makeLocalInstanceMirror, 1) \ |
240 V(Mirrors_makeLocalClassMirror, 1) \ | 240 V(Mirrors_makeLocalClassMirror, 1) \ |
241 V(Mirrors_makeLocalMirrorSystem, 0) \ | 241 V(Mirrors_makeLocalMirrorSystem, 0) \ |
242 V(Mirrors_metadata, 1) \ | 242 V(Mirrors_metadata, 1) \ |
243 V(LocalObjectMirrorImpl_invoke, 4) \ | 243 V(LocalObjectMirrorImpl_invoke, 4) \ |
244 V(LocalObjectMirrorImpl_getField, 2) \ | 244 V(LocalObjectMirrorImpl_getField, 2) \ |
245 V(LocalObjectMirrorImpl_setField, 4) \ | 245 V(LocalObjectMirrorImpl_setField, 4) \ |
246 V(LocalClosureMirrorImpl_apply, 3) \ | 246 V(LocalClosureMirrorImpl_apply, 3) \ |
247 V(LocalClassMirrorImpl_invokeConstructor, 4) \ | |
248 V(ClassMirror_name, 1) \ | 247 V(ClassMirror_name, 1) \ |
| 248 V(ClassMirror_invoke, 3) \ |
| 249 V(ClassMirror_invokeGetter, 2) \ |
| 250 V(ClassMirror_invokeSetter, 3) \ |
| 251 V(ClassMirror_invokeConstructor, 3) \ |
249 V(GrowableObjectArray_allocate, 2) \ | 252 V(GrowableObjectArray_allocate, 2) \ |
250 V(GrowableObjectArray_getIndexed, 2) \ | 253 V(GrowableObjectArray_getIndexed, 2) \ |
251 V(GrowableObjectArray_setIndexed, 3) \ | 254 V(GrowableObjectArray_setIndexed, 3) \ |
252 V(GrowableObjectArray_getLength, 1) \ | 255 V(GrowableObjectArray_getLength, 1) \ |
253 V(GrowableObjectArray_getCapacity, 1) \ | 256 V(GrowableObjectArray_getCapacity, 1) \ |
254 V(GrowableObjectArray_setLength, 2) \ | 257 V(GrowableObjectArray_setLength, 2) \ |
255 V(GrowableObjectArray_setData, 2) \ | 258 V(GrowableObjectArray_setData, 2) \ |
256 V(WeakProperty_new, 2) \ | 259 V(WeakProperty_new, 2) \ |
257 V(WeakProperty_getKey, 1) \ | 260 V(WeakProperty_getKey, 1) \ |
258 V(WeakProperty_getValue, 1) \ | 261 V(WeakProperty_getValue, 1) \ |
259 V(WeakProperty_setValue, 2) \ | 262 V(WeakProperty_setValue, 2) \ |
260 | 263 |
261 class BootstrapNatives : public AllStatic { | 264 class BootstrapNatives : public AllStatic { |
262 public: | 265 public: |
263 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count); | 266 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count); |
264 | 267 |
265 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ | 268 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ |
266 static void DN_##name(Dart_NativeArguments args); | 269 static void DN_##name(Dart_NativeArguments args); |
267 | 270 |
268 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) | 271 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) |
269 | 272 |
270 #undef DECLARE_BOOTSTRAP_NATIVE | 273 #undef DECLARE_BOOTSTRAP_NATIVE |
271 }; | 274 }; |
272 | 275 |
273 } // namespace dart | 276 } // namespace dart |
274 | 277 |
275 #endif // VM_BOOTSTRAP_NATIVES_H_ | 278 #endif // VM_BOOTSTRAP_NATIVES_H_ |
OLD | NEW |