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

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

Issue 2584943002: Remove Dart_CreateLibrarySnapshot. (Closed)
Patch Set: Created 4 years 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 RUNTIME_INCLUDE_DART_API_H_ 7 #ifndef RUNTIME_INCLUDE_DART_API_H_
8 #define RUNTIME_INCLUDE_DART_API_H_ 8 #define RUNTIME_INCLUDE_DART_API_H_
9 9
10 /** \mainpage Dart Embedding API Reference 10 /** \mainpage Dart Embedding API Reference
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after
1027 * the snapshot. This buffer is scope allocated and is only valid 1027 * the snapshot. This buffer is scope allocated and is only valid
1028 * until the next call to Dart_ExitScope. 1028 * until the next call to Dart_ExitScope.
1029 * \param size Returns the size of the buffer. 1029 * \param size Returns the size of the buffer.
1030 * 1030 *
1031 * \return A valid handle if no error occurs during the operation. 1031 * \return A valid handle if no error occurs during the operation.
1032 */ 1032 */
1033 DART_EXPORT Dart_Handle Dart_CreateScriptSnapshot(uint8_t** buffer, 1033 DART_EXPORT Dart_Handle Dart_CreateScriptSnapshot(uint8_t** buffer,
1034 intptr_t* size); 1034 intptr_t* size);
1035 1035
1036 /** 1036 /**
1037 * Creates a snapshot of the specified library loaded in the isolate.
1038 *
1039 * A library snapshot can be used for implementing fast startup of applications
1040 * (skips tokenizing and parsing process). A Snapshot of the library
1041 * can only be created before any dart code has executed.
1042 *
1043 * Requires there to be a current isolate which already has loaded the library.
1044 *
1045 * \param library A library for which the snapshot needs to be created.
1046 * \param buffer Returns a pointer to a buffer containing
1047 * the snapshot. This buffer is scope allocated and is only valid
1048 * until the next call to Dart_ExitScope.
1049 * \param size Returns the size of the buffer.
1050 *
1051 * \return A valid handle if no error occurs during the operation.
1052 */
1053 DART_EXPORT Dart_Handle Dart_CreateLibrarySnapshot(Dart_Handle library,
1054 uint8_t** buffer,
1055 intptr_t* size);
1056
1057 /**
1058 * Schedules an interrupt for the specified isolate. 1037 * Schedules an interrupt for the specified isolate.
1059 * 1038 *
1060 * When the isolate is interrupted, the isolate interrupt callback 1039 * When the isolate is interrupted, the isolate interrupt callback
1061 * will be invoked with 'isolate' as the current isolate (see 1040 * will be invoked with 'isolate' as the current isolate (see
1062 * Dart_SetIsolateEventHandler). 1041 * Dart_SetIsolateEventHandler).
1063 * 1042 *
1064 * \param isolate The isolate to be interrupted. 1043 * \param isolate The isolate to be interrupted.
1065 */ 1044 */
1066 DART_EXPORT void Dart_InterruptIsolate(Dart_Isolate isolate); 1045 DART_EXPORT void Dart_InterruptIsolate(Dart_Isolate isolate);
1067 1046
(...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after
3302 */ 3281 */
3303 DART_EXPORT bool Dart_IsPrecompiledRuntime(); 3282 DART_EXPORT bool Dart_IsPrecompiledRuntime();
3304 3283
3305 3284
3306 /** 3285 /**
3307 * Print a native stack trace. Used for crash handling. 3286 * Print a native stack trace. Used for crash handling.
3308 */ 3287 */
3309 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); 3288 DART_EXPORT void Dart_DumpNativeStackTrace(void* context);
3310 3289
3311 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 3290 #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