Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: runtime/include/dart_api.h

Issue 2223913002: Add an API for setting the sticky error (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: asiva review Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 /** 1171 /**
1172 * Called when the embedder has paused the current isolate on exit and when 1172 * Called when the embedder has paused the current isolate on exit and when
1173 * the embedder has resumed the isolate. 1173 * the embedder has resumed the isolate.
1174 * 1174 *
1175 * \param paused Is the isolate paused on exit? 1175 * \param paused Is the isolate paused on exit?
1176 */ 1176 */
1177 DART_EXPORT void Dart_SetPausedOnExit(bool paused); 1177 DART_EXPORT void Dart_SetPausedOnExit(bool paused);
1178 1178
1179 1179
1180 /** 1180 /**
1181 * Called when the embedder has caught a top level unhandled exception error
1182 * in the current isolate. Also marks the isolate as paused at exit.
1183 *
1184 * NOTE: It is illegal to call this twice on the same isolate.
1185 *
1186 * \param error The unhandled exception error.
1187 */
1188 DART_EXPORT void Dart_SetStickyError(Dart_Handle error);
1189
1190
1191 /**
1192 * Does the current isolate have a sticky error?
1193 */
1194 DART_EXPORT bool Dart_HasStickyError();
1195
1196
1197 /**
1181 * Handles the next pending message for the current isolate. 1198 * Handles the next pending message for the current isolate.
1182 * 1199 *
1183 * May generate an unhandled exception error. 1200 * May generate an unhandled exception error.
1184 * 1201 *
1185 * \return A valid handle if no error occurs during the operation. 1202 * \return A valid handle if no error occurs during the operation.
1186 */ 1203 */
1187 DART_EXPORT Dart_Handle Dart_HandleMessage(); 1204 DART_EXPORT Dart_Handle Dart_HandleMessage();
1188 1205
1189 /** 1206 /**
1190 * Handles all pending messages for the current isolate. 1207 * Handles all pending messages for the current isolate.
(...skipping 1970 matching lines...) Expand 10 before | Expand all | Expand 10 after
3161 /** 3178 /**
3162 * Returns whether the VM was initialized with a precompiled snapshot. Only 3179 * Returns whether the VM was initialized with a precompiled snapshot. Only
3163 * valid after Dart_Initialize. 3180 * valid after Dart_Initialize.
3164 * DEPRECATED. This is currently used to disable Platform.executable and 3181 * DEPRECATED. This is currently used to disable Platform.executable and
3165 * Platform.resolvedExecutable under precompilation to prevent process 3182 * Platform.resolvedExecutable under precompilation to prevent process
3166 * spawning tests from becoming fork-bombs. 3183 * spawning tests from becoming fork-bombs.
3167 */ 3184 */
3168 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); 3185 DART_EXPORT bool Dart_IsRunningPrecompiledCode();
3169 3186
3170 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 3187 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698