| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 INCLUDE_DART_API_H_ | 5 #ifndef INCLUDE_DART_API_H_ |
| 6 #define INCLUDE_DART_API_H_ | 6 #define INCLUDE_DART_API_H_ |
| 7 | 7 |
| 8 /** \mainpage Dart Embedding API Reference | 8 /** \mainpage Dart Embedding API Reference |
| 9 * | 9 * |
| 10 * Dart is a class-based programming language for creating structured | 10 * Dart is a class-based programming language for creating structured |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 /** | 195 /** |
| 196 * Initializes the VM with the given commmand line flags. | 196 * Initializes the VM with the given commmand line flags. |
| 197 * | 197 * |
| 198 * \param argc The length of the arguments array. | 198 * \param argc The length of the arguments array. |
| 199 * \param argv An array of arguments. | 199 * \param argv An array of arguments. |
| 200 * \param callback A function to be called during isolate creation. | 200 * \param callback A function to be called during isolate creation. |
| 201 * See Dart_IsolateInitCallback. | 201 * See Dart_IsolateInitCallback. |
| 202 * | 202 * |
| 203 * \return True if initialization is successful. | 203 * \return True if initialization is successful. |
| 204 */ | 204 */ |
| 205 DART_EXPORT bool Dart_Initialize(int argc, char** argv, | 205 DART_EXPORT bool Dart_Initialize(int argc, const char** argv, |
| 206 Dart_IsolateInitCallback callback); | 206 Dart_IsolateInitCallback callback); |
| 207 | 207 |
| 208 /** | 208 /** |
| 209 * Returns true if the named VM flag is set. | 209 * Returns true if the named VM flag is set. |
| 210 */ | 210 */ |
| 211 DART_EXPORT bool Dart_IsVMFlagSet(const char* flag_name); | 211 DART_EXPORT bool Dart_IsVMFlagSet(const char* flag_name); |
| 212 | 212 |
| 213 // --- Isolates --- | 213 // --- Isolates --- |
| 214 | 214 |
| 215 /** | 215 /** |
| (...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1117 | 1117 |
| 1118 // --- Profiling support ---- | 1118 // --- Profiling support ---- |
| 1119 | 1119 |
| 1120 // External pprof support for gathering and dumping symbolic | 1120 // External pprof support for gathering and dumping symbolic |
| 1121 // information that can be used for better profile reports for | 1121 // information that can be used for better profile reports for |
| 1122 // dynamically generated code. | 1122 // dynamically generated code. |
| 1123 DART_EXPORT void Dart_InitPprofSupport(); | 1123 DART_EXPORT void Dart_InitPprofSupport(); |
| 1124 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); | 1124 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); |
| 1125 | 1125 |
| 1126 #endif // INCLUDE_DART_API_H_ | 1126 #endif // INCLUDE_DART_API_H_ |
| OLD | NEW |