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 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1071 * Most embedders will only call this function once, before isolate | 1071 * Most embedders will only call this function once, before isolate |
1072 * execution begins. If this function is called after isolate | 1072 * execution begins. If this function is called after isolate |
1073 * execution begins, the embedder is responsible for threading issues. | 1073 * execution begins, the embedder is responsible for threading issues. |
1074 */ | 1074 */ |
1075 DART_EXPORT void Dart_SetMessageNotifyCallback( | 1075 DART_EXPORT void Dart_SetMessageNotifyCallback( |
1076 Dart_MessageNotifyCallback message_notify_callback); | 1076 Dart_MessageNotifyCallback message_notify_callback); |
1077 /* TODO(turnidge): Consider moving this to isolate creation so that it | 1077 /* TODO(turnidge): Consider moving this to isolate creation so that it |
1078 * is impossible to mess up. */ | 1078 * is impossible to mess up. */ |
1079 | 1079 |
1080 /** | 1080 /** |
| 1081 * Query the current message notify callback for the isolate. |
| 1082 * |
| 1083 * \return The current message notify callback for the isolate. |
| 1084 */ |
| 1085 DART_EXPORT Dart_MessageNotifyCallback Dart_GetMessageNotifyCallback(); |
| 1086 |
| 1087 /** |
1081 * The VM's default message handler supports pausing an isolate before it | 1088 * The VM's default message handler supports pausing an isolate before it |
1082 * processes the first message and right after the it processes the isolate's | 1089 * processes the first message and right after the it processes the isolate's |
1083 * final message. This can be controlled for all isolates by two VM flags: | 1090 * final message. This can be controlled for all isolates by two VM flags: |
1084 * | 1091 * |
1085 * `--pause-isolates-on-start` | 1092 * `--pause-isolates-on-start` |
1086 * `--pause-isolates-on-exit` | 1093 * `--pause-isolates-on-exit` |
1087 * | 1094 * |
1088 * Additionally, Dart_SetShouldPauseOnStart and Dart_SetShouldPauseOnExit can be | 1095 * Additionally, Dart_SetShouldPauseOnStart and Dart_SetShouldPauseOnExit can be |
1089 * used to control this behaviour on a per-isolate basis. | 1096 * used to control this behaviour on a per-isolate basis. |
1090 * | 1097 * |
(...skipping 1852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2943 intptr_t* vm_isolate_snapshot_size, | 2950 intptr_t* vm_isolate_snapshot_size, |
2944 uint8_t** isolate_snapshot_buffer, | 2951 uint8_t** isolate_snapshot_buffer, |
2945 intptr_t* isolate_snapshot_size, | 2952 intptr_t* isolate_snapshot_size, |
2946 uint8_t** instructions_snapshot_buffer, | 2953 uint8_t** instructions_snapshot_buffer, |
2947 intptr_t* instructions_snapshot_size); | 2954 intptr_t* instructions_snapshot_size); |
2948 | 2955 |
2949 | 2956 |
2950 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); | 2957 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); |
2951 | 2958 |
2952 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2959 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |