6#if defined(TARGET_ARCH_RISCV32) || defined(TARGET_ARCH_RISCV64)
13#if !defined(USING_SIMULATOR)
14#if !defined(DART_HOST_OS_FUCHSIA)
15#include <sys/syscall.h>
17#include <zircon/syscalls.h>
22#if defined(DART_HOST_OS_MACOS) || defined(DART_HOST_OS_IOS)
23#include <libkern/OSCacheControl.h>
29#if defined(DART_PRECOMPILED_RUNTIME)
31#elif !defined(USING_SIMULATOR)
37#if defined(DART_HOST_OS_MACOS) || defined(DART_HOST_OS_IOS)
38 sys_icache_invalidate(
reinterpret_cast<void*
>(start),
size);
39#elif defined(DART_HOST_OS_ANDROID) || defined(DART_HOST_OS_LINUX)
40 char* beg =
reinterpret_cast<char*
>(
start);
42 __builtin___clear_cache(beg, end);
43#elif defined(DART_HOST_OS_FUCHSIA)
44 zx_status_t
result = zx_cache_flush(
reinterpret_cast<const void*
>(start),
45 size, ZX_CACHE_FLUSH_INSN);
48#error FlushICache not implemented for this OS
56#if defined(USING_SIMULATOR)
59#if defined(TARGET_ARCH_RISCV32)
61#elif defined(TARGET_ARCH_RISCV64)
68const char* HostCPUFeatures::hardware_ =
nullptr;
70bool HostCPUFeatures::initialized_ =
false;
73#if !defined(USING_SIMULATOR)
87 ASSERT(hardware_ !=
nullptr);
88 free(
const_cast<char*
>(hardware_));
106 initialized_ =
false;
108 ASSERT(hardware_ !=
nullptr);
109 free(
const_cast<char*
>(hardware_));
#define DEBUG_ASSERT(cond)
static void FlushICache(uword start, uword size)
static const char * GetCpuModel()
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size