5#ifndef FLUTTER_RUNTIME_DART_VM_DATA_H_
6#define FLUTTER_RUNTIME_DART_VM_DATA_H_
8#include "flutter/fml/macros.h"
9#include "flutter/runtime/dart_snapshot.h"
38 static std::shared_ptr<const DartVMData>
Create(
A read-only Dart heap snapshot, or, read-executable mapping of AOT compiled Dart code.
Provides thread-safe access to data that is necessary to bootstrap a new Dart VM instance....
fml::RefPtr< const DartSnapshot > GetIsolateSnapshot() const
Get the isolate snapshot necessary to launch isolates in the Dart VM. The Dart VM instance in which t...
const DartSnapshot & GetVMSnapshot() const
Gets the VM snapshot. This can be in the call to bootstrap the Dart VM via Dart_Initialize.
~DartVMData()
Collect the DartVMData instance.
bool GetServiceIsolateSnapshotNullSafety() const
Returns whether the service isolate snapshot requires null safety in the Dart_IsolateFlags used to cr...
const Settings & GetSettings() const
The settings object from which the Dart snapshots were inferred.
fml::RefPtr< const DartSnapshot > GetServiceIsolateSnapshot() const
Get the isolate snapshot used to launch the service isolate in the Dart VM.
static std::shared_ptr< const DartVMData > Create(const Settings &settings, fml::RefPtr< const DartSnapshot > vm_snapshot, fml::RefPtr< const DartSnapshot > isolate_snapshot)
Creates a new instance of DartVMData. Both the VM and isolate snapshot members are optional and may b...