| 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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 468  * Processes any incoming messages for the current isolate. | 468  * Processes any incoming messages for the current isolate. | 
| 469  * | 469  * | 
| 470  * This function may only be used when the embedder has not provided | 470  * This function may only be used when the embedder has not provided | 
| 471  * an alternate message delivery mechanism with | 471  * an alternate message delivery mechanism with | 
| 472  * Dart_SetMessageCallbacks. It is provided for convenience. | 472  * Dart_SetMessageCallbacks. It is provided for convenience. | 
| 473  * | 473  * | 
| 474  * This function waits for incoming messages for the current | 474  * This function waits for incoming messages for the current | 
| 475  * isolate. As new messages arrive, they are handled using | 475  * isolate. As new messages arrive, they are handled using | 
| 476  * Dart_HandleMessage. The routine exits when all ports to the | 476  * Dart_HandleMessage. The routine exits when all ports to the | 
| 477  * current isolate are closed. | 477  * current isolate are closed. | 
|  | 478  * | 
|  | 479  * \return A valid handle if the run loop exited successfully.  If an | 
|  | 480  *   exception or other error occurs while processing messages, an | 
|  | 481  *   error handle is returned. | 
| 478  */ | 482  */ | 
| 479 DART_EXPORT Dart_Handle Dart_RunLoop(); | 483 DART_EXPORT Dart_Handle Dart_RunLoop(); | 
| 480 // TODO(turnidge): Should this be removed from the public api? | 484 // TODO(turnidge): Should this be removed from the public api? | 
| 481 | 485 | 
| 482 /** | 486 /** | 
| 483  * Gets the main port id for the current isolate. | 487  * Gets the main port id for the current isolate. | 
| 484  */ | 488  */ | 
| 485 DART_EXPORT Dart_Port Dart_GetMainPortId(); | 489 DART_EXPORT Dart_Port Dart_GetMainPortId(); | 
| 486 | 490 | 
| 487 /** | 491 /** | 
| (...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1347 | 1351 | 
| 1348 // --- Profiling support ---- | 1352 // --- Profiling support ---- | 
| 1349 | 1353 | 
| 1350 // External pprof support for gathering and dumping symbolic | 1354 // External pprof support for gathering and dumping symbolic | 
| 1351 // information that can be used for better profile reports for | 1355 // information that can be used for better profile reports for | 
| 1352 // dynamically generated code. | 1356 // dynamically generated code. | 
| 1353 DART_EXPORT void Dart_InitPprofSupport(); | 1357 DART_EXPORT void Dart_InitPprofSupport(); | 
| 1354 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); | 1358 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); | 
| 1355 | 1359 | 
| 1356 #endif  // INCLUDE_DART_API_H_ | 1360 #endif  // INCLUDE_DART_API_H_ | 
| OLD | NEW | 
|---|