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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 enum Type { | 686 enum Type { |
687 kNull = 0, | 687 kNull = 0, |
688 kBool, | 688 kBool, |
689 kInt32, | 689 kInt32, |
690 kInt64, | 690 kInt64, |
691 kBigint, | 691 kBigint, |
692 kDouble, | 692 kDouble, |
693 kString, | 693 kString, |
694 kArray, | 694 kArray, |
695 kUint8Array, | 695 kUint8Array, |
| 696 kUnsupported, |
696 kNumberOfTypes | 697 kNumberOfTypes |
697 }; | 698 }; |
698 Type type; | 699 Type type; |
699 union { | 700 union { |
700 bool as_bool; | 701 bool as_bool; |
701 int32_t as_int32; | 702 int32_t as_int32; |
702 int64_t as_int64; | 703 int64_t as_int64; |
703 double as_double; | 704 double as_double; |
704 char* as_string; | 705 char* as_string; |
705 char* as_bigint; | 706 char* as_bigint; |
(...skipping 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2022 | 2023 |
2023 // --- Profiling support ---- | 2024 // --- Profiling support ---- |
2024 | 2025 |
2025 // External pprof support for gathering and dumping symbolic | 2026 // External pprof support for gathering and dumping symbolic |
2026 // information that can be used for better profile reports for | 2027 // information that can be used for better profile reports for |
2027 // dynamically generated code. | 2028 // dynamically generated code. |
2028 DART_EXPORT void Dart_InitPprofSupport(); | 2029 DART_EXPORT void Dart_InitPprofSupport(); |
2029 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); | 2030 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); |
2030 | 2031 |
2031 #endif // INCLUDE_DART_API_H_ | 2032 #endif // INCLUDE_DART_API_H_ |
OLD | NEW |