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 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 3239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3250 * The buffers are scope allocated and are only valid until the next call to | 3250 * The buffers are scope allocated and are only valid until the next call to |
3251 * Dart_ExitScope. | 3251 * Dart_ExitScope. |
3252 * | 3252 * |
3253 * \return A valid handle if no error occurs during the operation. | 3253 * \return A valid handle if no error occurs during the operation. |
3254 */ | 3254 */ |
3255 DART_EXPORT Dart_Handle | 3255 DART_EXPORT Dart_Handle |
3256 Dart_CreateAppAOTSnapshotAsAssembly(uint8_t** assembly_buffer, | 3256 Dart_CreateAppAOTSnapshotAsAssembly(uint8_t** assembly_buffer, |
3257 intptr_t* assembly_size); | 3257 intptr_t* assembly_size); |
3258 | 3258 |
3259 /** | 3259 /** |
| 3260 * Like Dart_CreateAppAOTSnapshotAsAssembly, but only includes |
| 3261 * kDartVmSnapshotData and kDartVmSnapshotInstructions. |
| 3262 */ |
| 3263 DART_EXPORT Dart_Handle |
| 3264 Dart_CreateVMAOTSnapshotAsAssembly(uint8_t** assembly_buffer, |
| 3265 intptr_t* assembly_size); |
| 3266 |
| 3267 /** |
3260 * Same as Dart_CreateAppAOTSnapshotAsAssembly, except all the pieces are | 3268 * Same as Dart_CreateAppAOTSnapshotAsAssembly, except all the pieces are |
3261 * provided directly as bytes that the embedder can load with mmap. The | 3269 * provided directly as bytes that the embedder can load with mmap. The |
3262 * instructions pieces must be loaded with read and execute permissions; the | 3270 * instructions pieces must be loaded with read and execute permissions; the |
3263 * other pieces may be loaded as read-only. | 3271 * other pieces may be loaded as read-only. |
3264 */ | 3272 */ |
3265 DART_EXPORT Dart_Handle | 3273 DART_EXPORT Dart_Handle |
3266 Dart_CreateAppAOTSnapshotAsBlobs(uint8_t** vm_snapshot_data_buffer, | 3274 Dart_CreateAppAOTSnapshotAsBlobs(uint8_t** vm_snapshot_data_buffer, |
3267 intptr_t* vm_snapshot_data_size, | 3275 intptr_t* vm_snapshot_data_size, |
3268 uint8_t** vm_snapshot_instructions_buffer, | 3276 uint8_t** vm_snapshot_instructions_buffer, |
3269 intptr_t* vm_snapshot_instructions_size, | 3277 intptr_t* vm_snapshot_instructions_size, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3328 * compiled with DART_PRECOMPILED_RUNTIME). | 3336 * compiled with DART_PRECOMPILED_RUNTIME). |
3329 */ | 3337 */ |
3330 DART_EXPORT bool Dart_IsPrecompiledRuntime(); | 3338 DART_EXPORT bool Dart_IsPrecompiledRuntime(); |
3331 | 3339 |
3332 /** | 3340 /** |
3333 * Print a native stack trace. Used for crash handling. | 3341 * Print a native stack trace. Used for crash handling. |
3334 */ | 3342 */ |
3335 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); | 3343 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); |
3336 | 3344 |
3337 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 3345 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |