[][src]Function dart_sys::Dart_CreateAppJITSnapshotAsBlobs

pub unsafe extern "C" fn Dart_CreateAppJITSnapshotAsBlobs(
    isolate_snapshot_data_buffer: *mut *mut u8,
    isolate_snapshot_data_size: *mut isize,
    isolate_snapshot_instructions_buffer: *mut *mut u8,
    isolate_snapshot_instructions_size: *mut isize
) -> Dart_Handle

Creates a snapshot that caches compiled code and type feedback for faster startup and quicker warmup in a subsequent process.

Outputs a snapshot in two pieces. The pieces should be passed to Dart_CreateIsolateGroup in a VM using the same VM snapshot pieces used in the current VM. The instructions piece must be loaded with read and execute permissions; the data piece may be loaded as read-only.

  • Requires the VM to have not been started with --precompilation.
  • Not supported when targeting IA32.
  • The VM writing the snapshot and the VM reading the snapshot must be the same version, must be built in the same DEBUG/RELEASE/PRODUCT mode, must be targeting the same architecture, and must both be in checked mode or both in unchecked mode.

The buffers are scope allocated and are only valid until the next call to Dart_ExitScope.

\return A valid handle if no error occurs during the operation.