Function dart_sys::Dart_CreateAppAOTSnapshotAsAssembly
source · pub unsafe extern "C" fn Dart_CreateAppAOTSnapshotAsAssembly(
callback: Dart_StreamingWriteCallback,
callback_data: *mut c_void,
stripped: bool,
debug_callback_data: *mut c_void
) -> Dart_Handle
Expand description
Creates a precompiled snapshot.
- A root library must have been loaded.
- Dart_Precompile must have been called.
Outputs an assembly file defining the symbols listed in the definitions above.
The assembly should be compiled as a static or shared library and linked or loaded by the embedder. Running this snapshot requires a VM compiled with DART_PRECOMPILED_SNAPSHOT. The kDartVmSnapshotData and kDartVmSnapshotInstructions should be passed to Dart_Initialize. The kDartIsolateSnapshotData and kDartIsolateSnapshotInstructions should be passed to Dart_CreateIsolateGroup.
The callback will be invoked one or more times to provide the assembly code.
If stripped is true, then the assembly code will not include DWARF debugging sections.
If debug_callback_data is provided, debug_callback_data will be used with the callback to provide separate debugging information.
\return A valid handle if no error occurs during the operation.