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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 V(isolate_spawnFunction, 2) \ | 222 V(isolate_spawnFunction, 2) \ |
223 V(isolate_spawnUri, 1) \ | 223 V(isolate_spawnUri, 1) \ |
224 V(Mirrors_isLocalPort, 1) \ | 224 V(Mirrors_isLocalPort, 1) \ |
225 V(Mirrors_makeLocalInstanceMirror, 1) \ | 225 V(Mirrors_makeLocalInstanceMirror, 1) \ |
226 V(Mirrors_makeLocalMirrorSystem, 0) \ | 226 V(Mirrors_makeLocalMirrorSystem, 0) \ |
227 V(LocalObjectMirrorImpl_invoke, 3) \ | 227 V(LocalObjectMirrorImpl_invoke, 3) \ |
228 V(LocalObjectMirrorImpl_getField, 2) \ | 228 V(LocalObjectMirrorImpl_getField, 2) \ |
229 V(LocalObjectMirrorImpl_setField, 3) \ | 229 V(LocalObjectMirrorImpl_setField, 3) \ |
230 V(LocalClosureMirrorImpl_apply, 2) \ | 230 V(LocalClosureMirrorImpl_apply, 2) \ |
231 V(LocalClassMirrorImpl_invokeConstructor, 3) \ | 231 V(LocalClassMirrorImpl_invokeConstructor, 3) \ |
| 232 V(LocalObjectMirrorImpl_invokeAsync, 3) \ |
| 233 V(LocalObjectMirrorImpl_setFieldAsync, 3) \ |
| 234 V(LocalClosureMirrorImpl_applyAsync, 2) \ |
| 235 V(LocalClassMirrorImpl_invokeConstructorAsync, 3) \ |
232 V(GrowableObjectArray_allocate, 2) \ | 236 V(GrowableObjectArray_allocate, 2) \ |
233 V(GrowableObjectArray_getIndexed, 2) \ | 237 V(GrowableObjectArray_getIndexed, 2) \ |
234 V(GrowableObjectArray_setIndexed, 3) \ | 238 V(GrowableObjectArray_setIndexed, 3) \ |
235 V(GrowableObjectArray_getLength, 1) \ | 239 V(GrowableObjectArray_getLength, 1) \ |
236 V(GrowableObjectArray_getCapacity, 1) \ | 240 V(GrowableObjectArray_getCapacity, 1) \ |
237 V(GrowableObjectArray_setLength, 2) \ | 241 V(GrowableObjectArray_setLength, 2) \ |
238 V(GrowableObjectArray_setData, 2) \ | 242 V(GrowableObjectArray_setData, 2) \ |
239 V(WeakProperty_new, 2) \ | 243 V(WeakProperty_new, 2) \ |
240 V(WeakProperty_getKey, 1) \ | 244 V(WeakProperty_getKey, 1) \ |
241 V(WeakProperty_getValue, 1) \ | 245 V(WeakProperty_getValue, 1) \ |
242 V(WeakProperty_setValue, 2) \ | 246 V(WeakProperty_setValue, 2) \ |
243 | 247 |
244 class BootstrapNatives : public AllStatic { | 248 class BootstrapNatives : public AllStatic { |
245 public: | 249 public: |
246 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count); | 250 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count); |
247 | 251 |
248 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ | 252 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ |
249 static void DN_##name(Dart_NativeArguments args); | 253 static void DN_##name(Dart_NativeArguments args); |
250 | 254 |
251 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) | 255 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) |
252 | 256 |
253 #undef DECLARE_BOOTSTRAP_NATIVE | 257 #undef DECLARE_BOOTSTRAP_NATIVE |
254 }; | 258 }; |
255 | 259 |
256 } // namespace dart | 260 } // namespace dart |
257 | 261 |
258 #endif // VM_BOOTSTRAP_NATIVES_H_ | 262 #endif // VM_BOOTSTRAP_NATIVES_H_ |
OLD | NEW |