[−][src]Function dart_sys::Dart_CreateAppAOTSnapshotAsAssembly
pub unsafe extern "C" fn Dart_CreateAppAOTSnapshotAsAssembly(
callback: Dart_StreamingWriteCallback,
callback_data: *mut c_void
) -> Dart_Handle
Creates a precompiled snapshot.
- A root library must have been loaded.
- Dart_Precompile must have been called.
Outputs an assembly file defining the symbols
- kDartVmSnapshotData
- kDartVmSnapshotInstructions
- kDartIsolateSnapshotData
- kDartIsolateSnapshotInstructions
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.
\return A valid handle if no error occurs during the operation.