| 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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 V(LibraryPrefix_invalidateDependentCode, 1) \ | 387 V(LibraryPrefix_invalidateDependentCode, 1) \ |
| 388 V(LibraryPrefix_loadError, 1) \ | 388 V(LibraryPrefix_loadError, 1) \ |
| 389 V(LibraryPrefix_isLoaded, 1) \ | 389 V(LibraryPrefix_isLoaded, 1) \ |
| 390 V(UserTag_new, 2) \ | 390 V(UserTag_new, 2) \ |
| 391 V(UserTag_label, 1) \ | 391 V(UserTag_label, 1) \ |
| 392 V(UserTag_defaultTag, 0) \ | 392 V(UserTag_defaultTag, 0) \ |
| 393 V(UserTag_makeCurrent, 1) \ | 393 V(UserTag_makeCurrent, 1) \ |
| 394 V(Profiler_getCurrentTag, 0) \ | 394 V(Profiler_getCurrentTag, 0) \ |
| 395 V(ClassID_getID, 1) \ | 395 V(ClassID_getID, 1) \ |
| 396 V(Num_toString, 1) \ | 396 V(Num_toString, 1) \ |
| 397 | 397 V(VMService_SendIsolateServiceMessage, 2) \ |
| 398 V(VMService_SendRootServiceMessage, 1) \ |
| 399 V(VMService_OnStart, 0) \ |
| 400 V(VMService_OnExit, 0) \ |
| 401 V(VMService_ListenStream, 1) \ |
| 402 V(VMService_CancelStream, 1) \ |
| 398 | 403 |
| 399 class BootstrapNatives : public AllStatic { | 404 class BootstrapNatives : public AllStatic { |
| 400 public: | 405 public: |
| 401 static Dart_NativeFunction Lookup(Dart_Handle name, | 406 static Dart_NativeFunction Lookup(Dart_Handle name, |
| 402 int argument_count, | 407 int argument_count, |
| 403 bool* auto_setup_scope); | 408 bool* auto_setup_scope); |
| 404 | 409 |
| 405 static const uint8_t* Symbol(Dart_NativeFunction* nf); | 410 static const uint8_t* Symbol(Dart_NativeFunction* nf); |
| 406 | 411 |
| 407 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ | 412 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ |
| 408 static void DN_##name(Dart_NativeArguments args); | 413 static void DN_##name(Dart_NativeArguments args); |
| 409 | 414 |
| 410 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) | 415 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) |
| 411 | 416 |
| 412 #undef DECLARE_BOOTSTRAP_NATIVE | 417 #undef DECLARE_BOOTSTRAP_NATIVE |
| 413 }; | 418 }; |
| 414 | 419 |
| 415 } // namespace dart | 420 } // namespace dart |
| 416 | 421 |
| 417 #endif // VM_BOOTSTRAP_NATIVES_H_ | 422 #endif // VM_BOOTSTRAP_NATIVES_H_ |
| OLD | NEW |