OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 * Copyright (c) 2013, 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_NATIVE_API_H_ | 7 #ifndef INCLUDE_DART_NATIVE_API_H_ |
8 #define INCLUDE_DART_NATIVE_API_H_ | 8 #define INCLUDE_DART_NATIVE_API_H_ |
9 | 9 |
10 #include "include/dart_api.h" | 10 #include "include/dart_api.h" |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
129 * The port must have been allocated by a call to Dart_NewNativePort. | 129 * The port must have been allocated by a call to Dart_NewNativePort. |
130 * | 130 * |
131 * \param native_port_id The id of the native port to close. | 131 * \param native_port_id The id of the native port to close. |
132 * | 132 * |
133 * \return Returns true if the port was closed successfully. | 133 * \return Returns true if the port was closed successfully. |
134 */ | 134 */ |
135 DART_EXPORT bool Dart_CloseNativePort(Dart_Port native_port_id); | 135 DART_EXPORT bool Dart_CloseNativePort(Dart_Port native_port_id); |
136 | 136 |
137 | 137 |
138 /* | 138 /* |
139 * ================== | |
140 * Thread Interrupter | |
141 * ================== | |
142 */ | |
143 | |
144 /** | |
145 * Shuts down the thread interrupter. Must be done before calling exit() if | |
146 * the VM has not been shutdown properly (Dart_Cleanup). | |
147 */ | |
148 DART_EXPORT void Dart_ShutdownThreadInterrupter(); | |
siva
2013/12/13 21:29:14
If we called Dart_Cleanup in process exit this wou
Cutch
2013/12/13 22:40:18
Done.
| |
149 | |
150 /* | |
139 * ================= | 151 * ================= |
140 * Profiling support | 152 * Profiling support |
141 * ================= | 153 * ================= |
142 */ | 154 */ |
143 | 155 |
144 /* External pprof support for gathering and dumping symbolic | 156 /* External pprof support for gathering and dumping symbolic |
145 * information that can be used for better profile reports for | 157 * information that can be used for better profile reports for |
146 * dynamically generated code. */ | 158 * dynamically generated code. */ |
147 DART_EXPORT void Dart_InitPprofSupport(); | 159 DART_EXPORT void Dart_InitPprofSupport(); |
148 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); | 160 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); |
(...skipping 30 matching lines...) Expand all Loading... | |
179 | 191 |
180 /** | 192 /** |
181 * Forces all loaded classes and functions to be compiled eagerly in | 193 * Forces all loaded classes and functions to be compiled eagerly in |
182 * the current isolate.. | 194 * the current isolate.. |
183 * | 195 * |
184 * TODO(turnidge): Document. | 196 * TODO(turnidge): Document. |
185 */ | 197 */ |
186 DART_EXPORT Dart_Handle Dart_CompileAll(); | 198 DART_EXPORT Dart_Handle Dart_CompileAll(); |
187 | 199 |
188 #endif /* INCLUDE_DART_NATIVE_API_H_ */ /* NOLINT */ | 200 #endif /* INCLUDE_DART_NATIVE_API_H_ */ /* NOLINT */ |
OLD | NEW |