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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
296 V(GrowableObjectArray_setIndexed, 3) \ | 296 V(GrowableObjectArray_setIndexed, 3) \ |
297 V(GrowableObjectArray_getLength, 1) \ | 297 V(GrowableObjectArray_getLength, 1) \ |
298 V(GrowableObjectArray_getCapacity, 1) \ | 298 V(GrowableObjectArray_getCapacity, 1) \ |
299 V(GrowableObjectArray_setLength, 2) \ | 299 V(GrowableObjectArray_setLength, 2) \ |
300 V(GrowableObjectArray_setData, 2) \ | 300 V(GrowableObjectArray_setData, 2) \ |
301 V(WeakProperty_new, 2) \ | 301 V(WeakProperty_new, 2) \ |
302 V(WeakProperty_getKey, 1) \ | 302 V(WeakProperty_getKey, 1) \ |
303 V(WeakProperty_getValue, 1) \ | 303 V(WeakProperty_getValue, 1) \ |
304 V(WeakProperty_setValue, 2) \ | 304 V(WeakProperty_setValue, 2) \ |
305 V(Uri_isWindowsPlatform, 0) \ | 305 V(Uri_isWindowsPlatform, 0) \ |
306 V(Uri_currentDirectory, 0) \ | |
floitsch
2013/09/17 11:49:11
nit: one missing space.
Søren Gjesse
2013/09/17 11:59:53
Done.
| |
306 | 307 |
307 class BootstrapNatives : public AllStatic { | 308 class BootstrapNatives : public AllStatic { |
308 public: | 309 public: |
309 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count); | 310 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count); |
310 | 311 |
311 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ | 312 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ |
312 static void DN_##name(Dart_NativeArguments args); | 313 static void DN_##name(Dart_NativeArguments args); |
313 | 314 |
314 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) | 315 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) |
315 | 316 |
316 #undef DECLARE_BOOTSTRAP_NATIVE | 317 #undef DECLARE_BOOTSTRAP_NATIVE |
317 }; | 318 }; |
318 | 319 |
319 } // namespace dart | 320 } // namespace dart |
320 | 321 |
321 #endif // VM_BOOTSTRAP_NATIVES_H_ | 322 #endif // VM_BOOTSTRAP_NATIVES_H_ |
OLD | NEW |