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

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

Issue 883263004: Allows turning on checked mode on a per-isolate basis (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/lib/object.cc » ('j') | runtime/vm/ast.cc » ('J')
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 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 assertion and type-checking for the current Isolate.
981 *
982 * Requires there to be a current isolate.
983 */
984 DART_EXPORT void Dart_IsolateSetCheckedMode(bool value);
985
986 /**
980 * Creates a full snapshot of the current isolate heap. 987 * Creates a full snapshot of the current isolate heap.
981 * 988 *
982 * A full snapshot is a compact representation of the dart heap state and 989 * 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 990 * 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. 991 * can only be created before any dart code has executed.
985 * 992 *
986 * Requires there to be a current isolate. 993 * Requires there to be a current isolate.
987 * 994 *
988 * \param buffer Returns a pointer to a buffer containing the 995 * \param buffer Returns a pointer to a buffer containing the
989 * snapshot. This buffer is scope allocated and is only valid 996 * snapshot. This buffer is scope allocated and is only valid
(...skipping 1820 matching lines...) Expand 10 before | Expand all | Expand 10 after
2810 * NOTE: If multiple callbacks with the same name are registered, only the 2817 * NOTE: If multiple callbacks with the same name are registered, only the
2811 * last callback registered will be remembered. 2818 * last callback registered will be remembered.
2812 */ 2819 */
2813 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 2820 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
2814 const char* name, 2821 const char* name,
2815 Dart_ServiceRequestCallback callback, 2822 Dart_ServiceRequestCallback callback,
2816 void* user_data); 2823 void* user_data);
2817 2824
2818 2825
2819 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2826 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « no previous file | runtime/lib/object.cc » ('j') | runtime/vm/ast.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698