| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 /** | 249 /** |
| 250 * Initializes the VM with the given commmand line flags. | 250 * Initializes the VM with the given commmand line flags. |
| 251 * | 251 * |
| 252 * \param argc The length of the arguments array. | 252 * \param argc The length of the arguments array. |
| 253 * \param argv An array of arguments. | 253 * \param argv An array of arguments. |
| 254 * \param callback A function to be called during isolate creation. | 254 * \param callback A function to be called during isolate creation. |
| 255 * See Dart_IsolateInitCallback. | 255 * See Dart_IsolateInitCallback. |
| 256 * | 256 * |
| 257 * \return True if initialization is successful. | 257 * \return True if initialization is successful. |
| 258 */ | 258 */ |
| 259 DART_EXPORT bool Dart_Initialize(int argc, char** argv, | 259 DART_EXPORT bool Dart_Initialize(int argc, const char** argv, |
| 260 Dart_IsolateInitCallback callback); | 260 Dart_IsolateInitCallback callback); |
| 261 | 261 |
| 262 /** | 262 /** |
| 263 * Returns true if the named VM flag is set. | 263 * Returns true if the named VM flag is set. |
| 264 */ | 264 */ |
| 265 DART_EXPORT bool Dart_IsVMFlagSet(const char* flag_name); | 265 DART_EXPORT bool Dart_IsVMFlagSet(const char* flag_name); |
| 266 | 266 |
| 267 // --- Isolates --- | 267 // --- Isolates --- |
| 268 | 268 |
| 269 /** | 269 /** |
| (...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1180 | 1180 |
| 1181 // --- Profiling support ---- | 1181 // --- Profiling support ---- |
| 1182 | 1182 |
| 1183 // External pprof support for gathering and dumping symbolic | 1183 // External pprof support for gathering and dumping symbolic |
| 1184 // information that can be used for better profile reports for | 1184 // information that can be used for better profile reports for |
| 1185 // dynamically generated code. | 1185 // dynamically generated code. |
| 1186 DART_EXPORT void Dart_InitPprofSupport(); | 1186 DART_EXPORT void Dart_InitPprofSupport(); |
| 1187 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); | 1187 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); |
| 1188 | 1188 |
| 1189 #endif // INCLUDE_DART_API_H_ | 1189 #endif // INCLUDE_DART_API_H_ |
| OLD | NEW |