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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 V(Uint32x4_setFlagZ, 2) \ | 217 V(Uint32x4_setFlagZ, 2) \ |
218 V(Uint32x4_setFlagW, 2) \ | 218 V(Uint32x4_setFlagW, 2) \ |
219 V(Uint32x4_select, 3) \ | 219 V(Uint32x4_select, 3) \ |
220 V(Uint32x4_toFloat32x4, 1) \ | 220 V(Uint32x4_toFloat32x4, 1) \ |
221 V(isolate_getPortInternal, 0) \ | 221 V(isolate_getPortInternal, 0) \ |
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, 4) \ |
228 V(LocalObjectMirrorImpl_getField, 2) \ | 228 V(LocalObjectMirrorImpl_getField, 2) \ |
229 V(LocalObjectMirrorImpl_setField, 3) \ | 229 V(LocalObjectMirrorImpl_setField, 4) \ |
230 V(LocalClosureMirrorImpl_apply, 2) \ | 230 V(LocalClosureMirrorImpl_apply, 3) \ |
231 V(LocalClassMirrorImpl_invokeConstructor, 3) \ | 231 V(LocalClassMirrorImpl_invokeConstructor, 4) \ |
232 V(GrowableObjectArray_allocate, 2) \ | 232 V(GrowableObjectArray_allocate, 2) \ |
233 V(GrowableObjectArray_getIndexed, 2) \ | 233 V(GrowableObjectArray_getIndexed, 2) \ |
234 V(GrowableObjectArray_setIndexed, 3) \ | 234 V(GrowableObjectArray_setIndexed, 3) \ |
235 V(GrowableObjectArray_getLength, 1) \ | 235 V(GrowableObjectArray_getLength, 1) \ |
236 V(GrowableObjectArray_getCapacity, 1) \ | 236 V(GrowableObjectArray_getCapacity, 1) \ |
237 V(GrowableObjectArray_setLength, 2) \ | 237 V(GrowableObjectArray_setLength, 2) \ |
238 V(GrowableObjectArray_setData, 2) \ | 238 V(GrowableObjectArray_setData, 2) \ |
239 V(WeakProperty_new, 2) \ | 239 V(WeakProperty_new, 2) \ |
240 V(WeakProperty_getKey, 1) \ | 240 V(WeakProperty_getKey, 1) \ |
241 V(WeakProperty_getValue, 1) \ | 241 V(WeakProperty_getValue, 1) \ |
242 V(WeakProperty_setValue, 2) \ | 242 V(WeakProperty_setValue, 2) \ |
243 | 243 |
244 class BootstrapNatives : public AllStatic { | 244 class BootstrapNatives : public AllStatic { |
245 public: | 245 public: |
246 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count); | 246 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count); |
247 | 247 |
248 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ | 248 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ |
249 static void DN_##name(Dart_NativeArguments args); | 249 static void DN_##name(Dart_NativeArguments args); |
250 | 250 |
251 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) | 251 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) |
252 | 252 |
253 #undef DECLARE_BOOTSTRAP_NATIVE | 253 #undef DECLARE_BOOTSTRAP_NATIVE |
254 }; | 254 }; |
255 | 255 |
256 } // namespace dart | 256 } // namespace dart |
257 | 257 |
258 #endif // VM_BOOTSTRAP_NATIVES_H_ | 258 #endif // VM_BOOTSTRAP_NATIVES_H_ |
OLD | NEW |