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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 V(UserTag_label, 1) \ | 399 V(UserTag_label, 1) \ |
400 V(UserTag_defaultTag, 0) \ | 400 V(UserTag_defaultTag, 0) \ |
401 V(UserTag_makeCurrent, 1) \ | 401 V(UserTag_makeCurrent, 1) \ |
402 V(Profiler_getCurrentTag, 0) \ | 402 V(Profiler_getCurrentTag, 0) \ |
403 V(ClassID_getID, 1) \ | 403 V(ClassID_getID, 1) \ |
404 V(Num_toString, 1) \ | 404 V(Num_toString, 1) \ |
405 V(VMService_SendIsolateServiceMessage, 2) \ | 405 V(VMService_SendIsolateServiceMessage, 2) \ |
406 V(VMService_SendRootServiceMessage, 1) \ | 406 V(VMService_SendRootServiceMessage, 1) \ |
407 V(VMService_OnStart, 0) \ | 407 V(VMService_OnStart, 0) \ |
408 V(VMService_OnExit, 0) \ | 408 V(VMService_OnExit, 0) \ |
| 409 V(VMService_OnServerAddressChange, 1) \ |
409 V(VMService_ListenStream, 1) \ | 410 V(VMService_ListenStream, 1) \ |
410 V(VMService_CancelStream, 1) \ | 411 V(VMService_CancelStream, 1) \ |
411 V(VMService_RequestAssets, 0) \ | 412 V(VMService_RequestAssets, 0) \ |
412 V(VMService_DecodeAssets, 1) \ | 413 V(VMService_DecodeAssets, 1) \ |
413 | 414 |
414 class BootstrapNatives : public AllStatic { | 415 class BootstrapNatives : public AllStatic { |
415 public: | 416 public: |
416 static Dart_NativeFunction Lookup(Dart_Handle name, | 417 static Dart_NativeFunction Lookup(Dart_Handle name, |
417 int argument_count, | 418 int argument_count, |
418 bool* auto_setup_scope); | 419 bool* auto_setup_scope); |
419 | 420 |
420 static const uint8_t* Symbol(Dart_NativeFunction* nf); | 421 static const uint8_t* Symbol(Dart_NativeFunction* nf); |
421 | 422 |
422 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ | 423 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ |
423 static void DN_##name(Dart_NativeArguments args); | 424 static void DN_##name(Dart_NativeArguments args); |
424 | 425 |
425 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) | 426 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) |
426 | 427 |
427 #undef DECLARE_BOOTSTRAP_NATIVE | 428 #undef DECLARE_BOOTSTRAP_NATIVE |
428 }; | 429 }; |
429 | 430 |
430 } // namespace dart | 431 } // namespace dart |
431 | 432 |
432 #endif // VM_BOOTSTRAP_NATIVES_H_ | 433 #endif // VM_BOOTSTRAP_NATIVES_H_ |
OLD | NEW |