| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 DART_EXPORT void Dart_ShutdownIsolate(); | 703 DART_EXPORT void Dart_ShutdownIsolate(); |
| 704 // TODO(turnidge): Document behavior when there is no current isolate. | 704 // TODO(turnidge): Document behavior when there is no current isolate. |
| 705 | 705 |
| 706 /** | 706 /** |
| 707 * Returns the current isolate. Will return NULL if there is no | 707 * Returns the current isolate. Will return NULL if there is no |
| 708 * current isolate. | 708 * current isolate. |
| 709 */ | 709 */ |
| 710 DART_EXPORT Dart_Isolate Dart_CurrentIsolate(); | 710 DART_EXPORT Dart_Isolate Dart_CurrentIsolate(); |
| 711 | 711 |
| 712 /** | 712 /** |
| 713 * Returns the callback data which was passed to the isolate when it |
| 714 * was created. |
| 715 */ |
| 716 DART_EXPORT void* Dart_CurrentIsolateData(); |
| 717 |
| 718 /** |
| 713 * Returns the debugging name for the current isolate. | 719 * Returns the debugging name for the current isolate. |
| 714 * | 720 * |
| 715 * This name is unique to each isolate and should only be used to make | 721 * This name is unique to each isolate and should only be used to make |
| 716 * debugging messages more comprehensible. | 722 * debugging messages more comprehensible. |
| 717 */ | 723 */ |
| 718 DART_EXPORT Dart_Handle Dart_DebugName(); | 724 DART_EXPORT Dart_Handle Dart_DebugName(); |
| 719 | 725 |
| 720 /** | 726 /** |
| 721 * Enters an isolate. After calling this function, | 727 * Enters an isolate. After calling this function, |
| 722 * the current isolate will be set to the provided isolate. | 728 * the current isolate will be set to the provided isolate. |
| (...skipping 1663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2386 // information that can be used for better profile reports for | 2392 // information that can be used for better profile reports for |
| 2387 // dynamically generated code. | 2393 // dynamically generated code. |
| 2388 DART_EXPORT void Dart_InitPprofSupport(); | 2394 DART_EXPORT void Dart_InitPprofSupport(); |
| 2389 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); | 2395 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); |
| 2390 | 2396 |
| 2391 // Support for generating flow graph compiler debugging output into a file. | 2397 // Support for generating flow graph compiler debugging output into a file. |
| 2392 typedef void (*FileWriterFunction)(const char* buffer, int64_t num_bytes); | 2398 typedef void (*FileWriterFunction)(const char* buffer, int64_t num_bytes); |
| 2393 DART_EXPORT void Dart_InitFlowGraphPrinting(FileWriterFunction function); | 2399 DART_EXPORT void Dart_InitFlowGraphPrinting(FileWriterFunction function); |
| 2394 | 2400 |
| 2395 #endif // INCLUDE_DART_API_H_ | 2401 #endif // INCLUDE_DART_API_H_ |
| OLD | NEW |