OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3 * for details. All rights reserved. Use of this source code is governed by a | 3 * for details. All rights reserved. Use of this source code is governed by a |
4 * BSD-style license that can be found in the LICENSE file. | 4 * BSD-style license that can be found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 #ifndef INCLUDE_DART_API_H_ | 7 #ifndef INCLUDE_DART_API_H_ |
8 #define INCLUDE_DART_API_H_ | 8 #define INCLUDE_DART_API_H_ |
9 | 9 |
10 /** \mainpage Dart Embedding API Reference | 10 /** \mainpage Dart Embedding API Reference |
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
970 * Exits an isolate. After this call, Dart_CurrentIsolate will | 970 * Exits an isolate. After this call, Dart_CurrentIsolate will |
971 * return NULL. | 971 * return NULL. |
972 * | 972 * |
973 * Requires there to be a current isolate. | 973 * Requires there to be a current isolate. |
974 */ | 974 */ |
975 DART_EXPORT void Dart_ExitIsolate(); | 975 DART_EXPORT void Dart_ExitIsolate(); |
976 /* TODO(turnidge): We don't want users of the api to be able to exit a | 976 /* TODO(turnidge): We don't want users of the api to be able to exit a |
977 * "pure" dart isolate. Implement and document. */ | 977 * "pure" dart isolate. Implement and document. */ |
978 | 978 |
979 /** | 979 /** |
| 980 * Enables/Disables strict compilation for the current Isolate. |
| 981 * Strict compilation includes: |
| 982 * - type-checking |
| 983 * - asserts |
| 984 * - errors on bad types |
| 985 * - errors on bad overrides |
| 986 * |
| 987 * This call requires there to be a current isolate, and requires that there has |
| 988 * not yet been any compilation for the current Isolate. |
| 989 */ |
| 990 DART_EXPORT Dart_Handle Dart_IsolateSetStrictCompilation(bool value); |
| 991 |
| 992 /** |
980 * Creates a full snapshot of the current isolate heap. | 993 * Creates a full snapshot of the current isolate heap. |
981 * | 994 * |
982 * A full snapshot is a compact representation of the dart heap state and | 995 * A full snapshot is a compact representation of the dart heap state and |
983 * can be used for fast initialization of an isolate. A Snapshot of the heap | 996 * can be used for fast initialization of an isolate. A Snapshot of the heap |
984 * can only be created before any dart code has executed. | 997 * can only be created before any dart code has executed. |
985 * | 998 * |
986 * Requires there to be a current isolate. | 999 * Requires there to be a current isolate. |
987 * | 1000 * |
988 * \param buffer Returns a pointer to a buffer containing the | 1001 * \param buffer Returns a pointer to a buffer containing the |
989 * snapshot. This buffer is scope allocated and is only valid | 1002 * snapshot. This buffer is scope allocated and is only valid |
(...skipping 1820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2810 * NOTE: If multiple callbacks with the same name are registered, only the | 2823 * NOTE: If multiple callbacks with the same name are registered, only the |
2811 * last callback registered will be remembered. | 2824 * last callback registered will be remembered. |
2812 */ | 2825 */ |
2813 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( | 2826 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( |
2814 const char* name, | 2827 const char* name, |
2815 Dart_ServiceRequestCallback callback, | 2828 Dart_ServiceRequestCallback callback, |
2816 void* user_data); | 2829 void* user_data); |
2817 | 2830 |
2818 | 2831 |
2819 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2832 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |