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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 V(LinkedHashMap_getDeletedKeys, 1) \ | 373 V(LinkedHashMap_getDeletedKeys, 1) \ |
374 V(LinkedHashMap_setDeletedKeys, 2) \ | 374 V(LinkedHashMap_setDeletedKeys, 2) \ |
375 V(WeakProperty_new, 2) \ | 375 V(WeakProperty_new, 2) \ |
376 V(WeakProperty_getKey, 1) \ | 376 V(WeakProperty_getKey, 1) \ |
377 V(WeakProperty_getValue, 1) \ | 377 V(WeakProperty_getValue, 1) \ |
378 V(WeakProperty_setValue, 2) \ | 378 V(WeakProperty_setValue, 2) \ |
379 V(Uri_isWindowsPlatform, 0) \ | 379 V(Uri_isWindowsPlatform, 0) \ |
380 V(LibraryPrefix_load, 1) \ | 380 V(LibraryPrefix_load, 1) \ |
381 V(LibraryPrefix_invalidateDependentCode, 1) \ | 381 V(LibraryPrefix_invalidateDependentCode, 1) \ |
382 V(LibraryPrefix_loadError, 1) \ | 382 V(LibraryPrefix_loadError, 1) \ |
| 383 V(LibraryPrefix_isLoaded, 1) \ |
383 V(UserTag_new, 2) \ | 384 V(UserTag_new, 2) \ |
384 V(UserTag_label, 1) \ | 385 V(UserTag_label, 1) \ |
385 V(UserTag_defaultTag, 0) \ | 386 V(UserTag_defaultTag, 0) \ |
386 V(UserTag_makeCurrent, 1) \ | 387 V(UserTag_makeCurrent, 1) \ |
387 V(Profiler_getCurrentTag, 0) \ | 388 V(Profiler_getCurrentTag, 0) \ |
388 V(ClassID_getID, 1) \ | 389 V(ClassID_getID, 1) \ |
389 V(Num_toString, 1) \ | 390 V(Num_toString, 1) \ |
390 | 391 |
391 | 392 |
392 class BootstrapNatives : public AllStatic { | 393 class BootstrapNatives : public AllStatic { |
393 public: | 394 public: |
394 static Dart_NativeFunction Lookup(Dart_Handle name, | 395 static Dart_NativeFunction Lookup(Dart_Handle name, |
395 int argument_count, | 396 int argument_count, |
396 bool* auto_setup_scope); | 397 bool* auto_setup_scope); |
397 | 398 |
398 static const uint8_t* Symbol(Dart_NativeFunction* nf); | 399 static const uint8_t* Symbol(Dart_NativeFunction* nf); |
399 | 400 |
400 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ | 401 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ |
401 static void DN_##name(Dart_NativeArguments args); | 402 static void DN_##name(Dart_NativeArguments args); |
402 | 403 |
403 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) | 404 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) |
404 | 405 |
405 #undef DECLARE_BOOTSTRAP_NATIVE | 406 #undef DECLARE_BOOTSTRAP_NATIVE |
406 }; | 407 }; |
407 | 408 |
408 } // namespace dart | 409 } // namespace dart |
409 | 410 |
410 #endif // VM_BOOTSTRAP_NATIVES_H_ | 411 #endif // VM_BOOTSTRAP_NATIVES_H_ |
OLD | NEW |