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 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 3097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3108 * The vm isolate snapshot, kInstructionsSnapshot and kDataSnapshot should be | 3108 * The vm isolate snapshot, kInstructionsSnapshot and kDataSnapshot should be |
3109 * passed as arguments to Dart_Initialize. The isolate snapshot should be | 3109 * passed as arguments to Dart_Initialize. The isolate snapshot should be |
3110 * passed to Dart_CreateIsolate. | 3110 * passed to Dart_CreateIsolate. |
3111 * | 3111 * |
3112 * The buffers are scope allocated and are only valid until the next call to | 3112 * The buffers are scope allocated and are only valid until the next call to |
3113 * Dart_ExitScope. | 3113 * Dart_ExitScope. |
3114 * | 3114 * |
3115 * \return A valid handle if no error occurs during the operation. | 3115 * \return A valid handle if no error occurs during the operation. |
3116 */ | 3116 */ |
3117 DART_EXPORT Dart_Handle Dart_CreatePrecompiledSnapshotAssembly( | 3117 DART_EXPORT Dart_Handle Dart_CreatePrecompiledSnapshotAssembly( |
| 3118 uint8_t** vm_isolate_snapshot_buffer, |
| 3119 intptr_t* vm_isolate_snapshot_size, |
| 3120 uint8_t** isolate_snapshot_buffer, |
| 3121 intptr_t* isolate_snapshot_size, |
3118 uint8_t** assembly_buffer, | 3122 uint8_t** assembly_buffer, |
3119 intptr_t* assembly_size); | 3123 intptr_t* assembly_size); |
3120 | 3124 |
3121 | 3125 |
3122 /** | 3126 /** |
3123 * Same as Dart_CreatePrecompiledSnapshotAssembly, except the instruction and | 3127 * Same as Dart_CreatePrecompiledSnapshotAssembly, except the instruction and |
3124 * data snapshot pieces are provided directly as bytes that the embedder can | 3128 * data snapshot pieces are provided directly as bytes that the embedder can |
3125 * load with mmap. The instructions piece must be loaded with read and | 3129 * load with mmap. The instructions piece must be loaded with read and |
3126 * execute permissions; the rodata piece may be loaded as read-only. | 3130 * execute permissions; the rodata piece may be loaded as read-only. |
3127 */ | 3131 */ |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3184 /** | 3188 /** |
3185 * Returns whether the VM was initialized with a precompiled snapshot. Only | 3189 * Returns whether the VM was initialized with a precompiled snapshot. Only |
3186 * valid after Dart_Initialize. | 3190 * valid after Dart_Initialize. |
3187 * DEPRECATED. This is currently used to disable Platform.executable and | 3191 * DEPRECATED. This is currently used to disable Platform.executable and |
3188 * Platform.resolvedExecutable under precompilation to prevent process | 3192 * Platform.resolvedExecutable under precompilation to prevent process |
3189 * spawning tests from becoming fork-bombs. | 3193 * spawning tests from becoming fork-bombs. |
3190 */ | 3194 */ |
3191 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); | 3195 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); |
3192 | 3196 |
3193 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 3197 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |