| 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 2708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2719 // information that can be used for better profile reports for | 2719 // information that can be used for better profile reports for |
| 2720 // dynamically generated code. | 2720 // dynamically generated code. |
| 2721 DART_EXPORT void Dart_InitPprofSupport(); | 2721 DART_EXPORT void Dart_InitPprofSupport(); |
| 2722 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); | 2722 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); |
| 2723 | 2723 |
| 2724 typedef void (*Dart_FileWriterFunction)(const char* buffer, int64_t num_bytes); | 2724 typedef void (*Dart_FileWriterFunction)(const char* buffer, int64_t num_bytes); |
| 2725 | 2725 |
| 2726 // Support for generating symbol maps for use by the Linux perf tool. | 2726 // Support for generating symbol maps for use by the Linux perf tool. |
| 2727 DART_EXPORT void Dart_InitPerfEventsSupport(Dart_FileWriterFunction function); | 2727 DART_EXPORT void Dart_InitPerfEventsSupport(Dart_FileWriterFunction function); |
| 2728 | 2728 |
| 2729 // Support for generating flow graph compiler debugging output into a file. | |
| 2730 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function); | |
| 2731 | |
| 2732 // --- Peers --- | 2729 // --- Peers --- |
| 2733 | 2730 |
| 2734 /** | 2731 /** |
| 2735 * The peer field is a lazily allocated field intendend for storage of | 2732 * The peer field is a lazily allocated field intendend for storage of |
| 2736 * an uncommonly used values. Most instances types can have a peer | 2733 * an uncommonly used values. Most instances types can have a peer |
| 2737 * field allocated. The exceptions are subtypes of Null, num, and | 2734 * field allocated. The exceptions are subtypes of Null, num, and |
| 2738 * bool. | 2735 * bool. |
| 2739 */ | 2736 */ |
| 2740 | 2737 |
| 2741 /** | 2738 /** |
| (...skipping 14 matching lines...) Expand all Loading... |
| 2756 * | 2753 * |
| 2757 * \param object An object. | 2754 * \param object An object. |
| 2758 * \param peer A value to store in the peer field. | 2755 * \param peer A value to store in the peer field. |
| 2759 * | 2756 * |
| 2760 * \return Returns an error if 'object' is a subtype of Null, num, or | 2757 * \return Returns an error if 'object' is a subtype of Null, num, or |
| 2761 * bool. | 2758 * bool. |
| 2762 */ | 2759 */ |
| 2763 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 2760 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
| 2764 | 2761 |
| 2765 #endif // INCLUDE_DART_API_H_ | 2762 #endif // INCLUDE_DART_API_H_ |
| OLD | NEW |