| 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 2711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. | 2729 // Support for generating flow graph compiler debugging output into a file. |
| 2730 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function); | 2730 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function); |
| 2731 | 2731 |
| 2732 // --- Peers --- |
| 2733 |
| 2734 /** |
| 2735 * The peer field is a lazily allocated field intendend for storage of |
| 2736 * an uncommonly used values. Most instances types can have a peer |
| 2737 * field allocated. The exceptions are subtypes of Null, num, and |
| 2738 * bool. |
| 2739 */ |
| 2740 |
| 2741 /** |
| 2742 * Returns the value of peer field of 'object' in 'peer'. |
| 2743 * |
| 2744 * \param object An object. |
| 2745 * \param peer An out parameter that returns the value of the peer |
| 2746 * field. |
| 2747 * |
| 2748 * \return Returns an error if 'object' is a subtype of Null, num, or |
| 2749 * bool. |
| 2750 */ |
| 2751 DART_EXPORT Dart_Handle Dart_GetPeer(Dart_Handle object, void** peer); |
| 2752 |
| 2753 /** |
| 2754 * Sets the value of the peer field of 'object' to the value of |
| 2755 * 'peer'. |
| 2756 * |
| 2757 * \param object An object. |
| 2758 * \param peer A value to store in the peer field. |
| 2759 * |
| 2760 * \return Returns an error if 'object' is a subtype of Null, num, or |
| 2761 * bool. |
| 2762 */ |
| 2763 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
| 2764 |
| 2732 #endif // INCLUDE_DART_API_H_ | 2765 #endif // INCLUDE_DART_API_H_ |
| OLD | NEW |