| 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 3267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3278 * same version, must be built in the same DEBUG/RELEASE/PRODUCT mode, must | 3278 * same version, must be built in the same DEBUG/RELEASE/PRODUCT mode, must |
| 3279 * be targeting the same architecture, and must both be in checked mode or | 3279 * be targeting the same architecture, and must both be in checked mode or |
| 3280 * both in unchecked mode. | 3280 * both in unchecked mode. |
| 3281 * | 3281 * |
| 3282 * The buffers are scope allocated and are only valid until the next call to | 3282 * The buffers are scope allocated and are only valid until the next call to |
| 3283 * Dart_ExitScope. | 3283 * Dart_ExitScope. |
| 3284 * | 3284 * |
| 3285 * \return A valid handle if no error occurs during the operation. | 3285 * \return A valid handle if no error occurs during the operation. |
| 3286 */ | 3286 */ |
| 3287 DART_EXPORT Dart_Handle | 3287 DART_EXPORT Dart_Handle |
| 3288 Dart_CreateAppJITSnapshot(uint8_t** vm_isolate_snapshot_buffer, | 3288 Dart_CreateAppJITSnapshot(uint8_t** isolate_snapshot_buffer, |
| 3289 intptr_t* vm_isolate_snapshot_size, | |
| 3290 uint8_t** isolate_snapshot_buffer, | |
| 3291 intptr_t* isolate_snapshot_size, | 3289 intptr_t* isolate_snapshot_size, |
| 3292 uint8_t** instructions_blob_buffer, | 3290 uint8_t** instructions_blob_buffer, |
| 3293 intptr_t* instructions_blob_size, | 3291 intptr_t* instructions_blob_size, |
| 3294 uint8_t** rodata_blob_buffer, | 3292 uint8_t** rodata_blob_buffer, |
| 3295 intptr_t* rodata_blob_size); | 3293 intptr_t* rodata_blob_size); |
| 3296 | 3294 |
| 3297 | 3295 |
| 3298 /** | 3296 /** |
| 3299 * Returns whether the VM only supports running from precompiled snapshots and | 3297 * Returns whether the VM only supports running from precompiled snapshots and |
| 3300 * not from any other kind of snapshot or from source (that is, the VM was | 3298 * not from any other kind of snapshot or from source (that is, the VM was |
| 3301 * compiled with DART_PRECOMPILED_RUNTIME). | 3299 * compiled with DART_PRECOMPILED_RUNTIME). |
| 3302 */ | 3300 */ |
| 3303 DART_EXPORT bool Dart_IsPrecompiledRuntime(); | 3301 DART_EXPORT bool Dart_IsPrecompiledRuntime(); |
| 3304 | 3302 |
| 3305 | 3303 |
| 3306 /** | 3304 /** |
| 3307 * Print a native stack trace. Used for crash handling. | 3305 * Print a native stack trace. Used for crash handling. |
| 3308 */ | 3306 */ |
| 3309 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); | 3307 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); |
| 3310 | 3308 |
| 3311 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 3309 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |