| Index: runtime/include/dart_api.h
|
| diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h
|
| index 02ec3bdef95f15282f8cace177ee6e68bd336e84..1fc94b8e1748499ca4f636b56b95424b516af571 100644
|
| --- a/runtime/include/dart_api.h
|
| +++ b/runtime/include/dart_api.h
|
| @@ -3293,13 +3293,14 @@ Dart_CreateAppAOTSnapshotAsBlobs(uint8_t** vm_snapshot_data_buffer,
|
| uint8_t** isolate_snapshot_instructions_buffer,
|
| intptr_t* isolate_snapshot_instructions_size);
|
|
|
| -
|
| /**
|
| * Sorts the class-ids in depth first traversal order of the inheritance
|
| - * tree. This is a costly operation, but it can make method dispatch
|
| + * tree. This is a costly operation, but it can make method dispatch
|
| * more efficient and is done before writing snapshots.
|
| + *
|
| + * \return A valid handle if no error occurs during the operation.
|
| */
|
| -DART_EXPORT void Dart_SortClasses();
|
| +DART_EXPORT Dart_Handle Dart_SortClasses();
|
|
|
|
|
| /**
|
| @@ -3332,6 +3333,20 @@ Dart_CreateAppJITSnapshotAsBlobs(uint8_t** isolate_snapshot_data_buffer,
|
|
|
|
|
| /**
|
| + * Like Dart_CreateAppJITSnapshotAsBlobs, but also creates a new VM snapshot.
|
| + */
|
| +DART_EXPORT Dart_Handle Dart_CreateCoreJITSnapshotAsBlobs(
|
| + uint8_t** vm_snapshot_data_buffer,
|
| + intptr_t* vm_snapshot_data_size,
|
| + uint8_t** vm_snapshot_instructions_buffer,
|
| + intptr_t* vm_snapshot_instructions_size,
|
| + uint8_t** isolate_snapshot_data_buffer,
|
| + intptr_t* isolate_snapshot_data_size,
|
| + uint8_t** isolate_snapshot_instructions_buffer,
|
| + intptr_t* isolate_snapshot_instructions_size);
|
| +
|
| +
|
| +/**
|
| * Returns whether the VM only supports running from precompiled snapshots and
|
| * not from any other kind of snapshot or from source (that is, the VM was
|
| * compiled with DART_PRECOMPILED_RUNTIME).
|
|
|