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(),
51 if (loaded_elf ==
nullptr) {
53 <<
"Could not fetch AOT symbols from loaded ELF. Attempts "
54 "to launch the Dart VM with these AOT symbols will fail. Error: "
66 std::string elf_split_filename) {
85 FML_LOG(ERROR) <<
"Dart doesn't implement Dart_LoadELF on Fuchsia";
89 const char*
error =
nullptr;
92 Dart_LoadELF(elf_path.c_str(),
101 if (loaded_elf ==
nullptr) {
103 <<
"Could not fetch AOT symbols from loaded ELF. Attempts "
104 "to launch the Dart VM with these AOT symbols will fail. Error: "
121 return std::make_unique<fml::NonOwnedMapping>(symbols.
vm_snapshot_data, 0u);
124 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