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