16 auto& native_assets_map =
18 if (!native_assets_map.IsNull()) {
19 return native_assets_map.ptr();
22#if defined(DART_PRECOMPILED_RUNTIME)
27 const auto& native_assets_library =
29 if (native_assets_library.IsNull()) {
35 const bool pragma_found = native_assets_library.FindPragma(
36 thread,
false, native_assets_library,
37 Symbols::vm_ffi_native_assets(),
51 kTargetArchitectureName));
57 if (abi.Equals(current_abi)) {
62 const intptr_t asset_map_length = asset_map.IsNull() ? 0 : asset_map.Length();
64 HashTables::New<NativeAssetsMap>(asset_map_length,
Heap::kOld));
65 if (!asset_map.IsNull()) {
69 bool duplicate_asset =
false;
73 duplicate_asset =
map.UpdateOrInsert(asset,
path);
77 native_assets_map =
map.Release().ptr();
78 object_store->set_native_assets_map(native_assets_map);
79 return native_assets_map.ptr();
ObjectStore * object_store() const
static const LinkedHashBase & Cast(const Object &obj)
ObjectPtr CurrentValue() const
ObjectPtr CurrentKey() const
static ObjectPtr RawCast(ObjectPtr obj)
static StringPtr NewFormatted(const char *format,...) PRINTF_ATTRIBUTE(1
IsolateGroup * isolate_group() const
ArrayPtr GetNativeAssetsMap(Thread *thread)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
SI auto map(std::index_sequence< I... >, Fn &&fn, const Args &... args) -> skvx::Vec< sizeof...(I), decltype(fn(args[0]...))>