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 3169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3180 uint8_t** isolate_snapshot_buffer, | 3180 uint8_t** isolate_snapshot_buffer, |
3181 intptr_t* isolate_snapshot_size, | 3181 intptr_t* isolate_snapshot_size, |
3182 uint8_t** instructions_blob_buffer, | 3182 uint8_t** instructions_blob_buffer, |
3183 intptr_t* instructions_blob_size, | 3183 intptr_t* instructions_blob_size, |
3184 uint8_t** rodata_blob_buffer, | 3184 uint8_t** rodata_blob_buffer, |
3185 intptr_t* rodata_blob_size); | 3185 intptr_t* rodata_blob_size); |
3186 | 3186 |
3187 | 3187 |
3188 /** | 3188 /** |
3189 * Returns whether the VM only supports running from precompiled snapshots and | 3189 * Returns whether the VM only supports running from precompiled snapshots and |
3190 * not from any other kind of snapshot or no snapshot (that is, the VM was | 3190 * not from any other kind of snapshot or from source (that is, the VM was |
3191 * compiled with DART_PRECOMPILED_RUNTIME). | 3191 * compiled with DART_PRECOMPILED_RUNTIME). |
3192 */ | 3192 */ |
3193 DART_EXPORT bool Dart_IsPrecompiledRuntime(); | 3193 DART_EXPORT bool Dart_IsPrecompiledRuntime(); |
3194 | 3194 |
3195 | |
3196 /** | |
3197 * Returns whether the VM was initialized with a precompiled snapshot. Only | |
3198 * valid after Dart_Initialize. | |
3199 * DEPRECATED. This is currently used to disable Platform.executable and | |
3200 * Platform.resolvedExecutable under precompilation to prevent process | |
3201 * spawning tests from becoming fork-bombs. | |
3202 */ | |
3203 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); | |
3204 | |
3205 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 3195 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |