Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3 * for details. All rights reserved. Use of this source code is governed by a | 3 * for details. All rights reserved. Use of this source code is governed by a |
| 4 * BSD-style license that can be found in the LICENSE file. | 4 * BSD-style license that can be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef INCLUDE_DART_API_H_ | 7 #ifndef INCLUDE_DART_API_H_ |
| 8 #define INCLUDE_DART_API_H_ | 8 #define INCLUDE_DART_API_H_ |
| 9 | 9 |
| 10 /** \mainpage Dart Embedding API Reference | 10 /** \mainpage Dart Embedding API Reference |
| (...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 877 | 877 |
| 878 /** | 878 /** |
| 879 * Returns the debugging name for the current isolate. | 879 * Returns the debugging name for the current isolate. |
| 880 * | 880 * |
| 881 * This name is unique to each isolate and should only be used to make | 881 * This name is unique to each isolate and should only be used to make |
| 882 * debugging messages more comprehensible. | 882 * debugging messages more comprehensible. |
| 883 */ | 883 */ |
| 884 DART_EXPORT Dart_Handle Dart_DebugName(); | 884 DART_EXPORT Dart_Handle Dart_DebugName(); |
| 885 | 885 |
| 886 /** | 886 /** |
| 887 * Threads created by the embedder (other than the thread that called | |
|
Ivan Posva
2015/12/01 05:08:42
This should not be necessary if I understand the d
zra
2015/12/01 17:38:21
Move to OSThread::Current() as discussed offline.
| |
| 888 * Dart_Initialize) must call this function before entering an Isolate. | |
| 889 * | |
| 890 * Returns true if the thread is successfully registered. | |
| 891 */ | |
| 892 DART_EXPORT bool Dart_RegisterEmbedderThread(const char* name); | |
| 893 | |
| 894 /** | |
| 887 * Enters an isolate. After calling this function, | 895 * Enters an isolate. After calling this function, |
| 888 * the current isolate will be set to the provided isolate. | 896 * the current isolate will be set to the provided isolate. |
| 889 * | 897 * |
| 890 * Requires there to be no current isolate. Multiple threads may not be in | 898 * Requires there to be no current isolate. Multiple threads may not be in |
| 891 * the same isolate at once. | 899 * the same isolate at once. |
| 892 */ | 900 */ |
| 893 DART_EXPORT void Dart_EnterIsolate(Dart_Isolate isolate); | 901 DART_EXPORT void Dart_EnterIsolate(Dart_Isolate isolate); |
| 894 | 902 |
| 895 /** | 903 /** |
| 896 * Notifies the VM that the current thread should not be profiled until a | 904 * Notifies the VM that the current thread should not be profiled until a |
| (...skipping 1932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2829 | 2837 |
| 2830 DART_EXPORT Dart_Handle Dart_CreatePrecompiledSnapshot( | 2838 DART_EXPORT Dart_Handle Dart_CreatePrecompiledSnapshot( |
| 2831 uint8_t** vm_isolate_snapshot_buffer, | 2839 uint8_t** vm_isolate_snapshot_buffer, |
| 2832 intptr_t* vm_isolate_snapshot_size, | 2840 intptr_t* vm_isolate_snapshot_size, |
| 2833 uint8_t** isolate_snapshot_buffer, | 2841 uint8_t** isolate_snapshot_buffer, |
| 2834 intptr_t* isolate_snapshot_size, | 2842 intptr_t* isolate_snapshot_size, |
| 2835 uint8_t** instructions_snapshot_buffer, | 2843 uint8_t** instructions_snapshot_buffer, |
| 2836 intptr_t* instructions_snapshot_size); | 2844 intptr_t* instructions_snapshot_size); |
| 2837 | 2845 |
| 2838 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2846 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |