| Index: runtime/include/dart_api.h
|
| diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h
|
| index 8b9070cfdad9ff34d6cc68fee3d8c32e958fb8a5..15114a666ad4b63476431f8c42715fbb39de4108 100755
|
| --- a/runtime/include/dart_api.h
|
| +++ b/runtime/include/dart_api.h
|
| @@ -852,6 +852,8 @@ typedef bool (*Dart_EntropySource)(uint8_t* buffer, intptr_t length);
|
| *
|
| * \param vm_isolate_snapshot A buffer containing a snapshot of the VM isolate
|
| * or NULL if no snapshot is provided.
|
| + * \param instructions_snapshot A buffer containing a snapshot of precompiled
|
| + * instructions, or NULL if no snapshot is provided.
|
| * \param create A function to be called during isolate creation.
|
| * See Dart_IsolateCreateCallback.
|
| * \param interrupt A function to be called when an isolate is interrupted.
|
| @@ -2859,4 +2861,21 @@ DART_EXPORT bool Dart_IsServiceIsolate(Dart_Isolate isolate);
|
| */
|
| DART_EXPORT Dart_Port Dart_ServiceWaitForLoadPort();
|
|
|
| +
|
| +/*
|
| + * ==============
|
| + * Precompilation
|
| + * ==============
|
| + */
|
| +
|
| +
|
| +DART_EXPORT Dart_Handle Dart_Precompile();
|
| +DART_EXPORT Dart_Handle Dart_CreatePrecompiledSnapshot(
|
| + uint8_t** vm_isolate_snapshot_buffer,
|
| + intptr_t* vm_isolate_snapshot_size,
|
| + uint8_t** isolate_snapshot_buffer,
|
| + intptr_t* isolate_snapshot_size,
|
| + uint8_t** instructions_snapshot_buffer,
|
| + intptr_t* instructions_snapshot_size);
|
| +
|
| #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
|
|
|