Chromium Code Reviews| 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(); |
| /** |
| @@ -3331,6 +3332,20 @@ Dart_CreateAppJITSnapshotAsBlobs(uint8_t** isolate_snapshot_data_buffer, |
| intptr_t* isolate_snapshot_instructions_size); |
| +/** |
| + * 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); |
|
siva
2017/05/31 21:14:15
The API has grown to have so many options I am won
rmacnak
2017/06/01 00:37:05
This seems promising.
|
| + |
| + |
| /** |
| * 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 |