25 FML_LOG(ERROR) <<
"App AOT file does not exist for this fixture. Attempts "
26 "to launch the Dart VM with these AOT symbols will fail.";
35 FML_LOG(ERROR) <<
"Dart doesn't implement Dart_LoadELF on Fuchsia";
39 const char*
error =
nullptr;
42 Dart_LoadELF(elf_path.c_str(),
48 if (loaded_elf !=
nullptr) {
53 if (loaded_elf ==
nullptr) {
55 <<
"Could not fetch AOT symbols from loaded ELF. Attempts "
56 "to launch the Dart VM with these AOT symbols will fail. Error: "
68 std::string elf_split_filename) {
87 FML_LOG(ERROR) <<
"Dart doesn't implement Dart_LoadELF on Fuchsia";
91 const char*
error =
nullptr;
94 Dart_LoadELF(elf_path.c_str(),
100 if (loaded_elf !=
nullptr) {
105 if (loaded_elf ==
nullptr) {
107 <<
"Could not fetch AOT symbols from loaded ELF. Attempts "
108 "to launch the Dart VM with these AOT symbols will fail. Error: "
125 return std::make_unique<fml::NonOwnedMapping>(symbols.
vm_snapshot_data, 0u);
128 return std::make_unique<fml::NonOwnedMapping>(symbols.
vm_isolate_data, 0u);
static bool IsRunningPrecompiledCode()
Checks if VM instances in the process can run precompiled code. This call can be made at any time and...
const uint8_t uint32_t uint32_t GError ** error
#define FML_LOG(severity)
const char * GetFixturesPath()
Returns the directory containing the test fixture for the target if this target has fixtures configur...
ELFAOTSymbols LoadELFSymbolFromFixturesIfNeccessary(std::string elf_filename)
Attempts to resolve AOT symbols from the portable ELF loader. This location is automatically resolved...
bool PrepareSettingsForAOTWithSymbols(Settings &settings, const ELFAOTSymbols &symbols)
Prepare the settings objects various AOT mappings resolvers with the symbols already loaded....
ELFAOTSymbols LoadELFSplitSymbolFromFixturesIfNeccessary(std::string elf_split_filename)
Attempts to resolve split loading unit AOT symbols from the portable ELF loader. If the dart code doe...
std::string JoinPaths(std::initializer_list< std::string > components)
bool IsFile(const std::string &path)
MappingCallback isolate_snapshot_instr
MappingCallback isolate_snapshot_data
MappingCallback vm_snapshot_data
MappingCallback vm_snapshot_instr
const uint8_t * vm_snapshot_data
const uint8_t * vm_snapshot_instrs
UniqueLoadedELF loaded_elf
const uint8_t * vm_isolate_instrs
const uint8_t * vm_isolate_data