10#if defined(DART_HOST_OS_MACOS)
24 if (reserved_.
size() ==
26 if (FreeSubSegment(
reinterpret_cast<void*
>(
start() + new_size),
45#if !defined(DART_TARGET_OS_FUCHSIA)
52#if defined(DART_HOST_OS_MACOS) && defined(DART_PRECOMPILED_RUNTIME)
57 const mach_port_t task = mach_task_self();
58 const vm_address_t source_address =
reinterpret_cast<vm_address_t
>(
address());
59 const vm_size_t mem_size = aligned_size;
60 const vm_prot_t read_execute = VM_PROT_READ | VM_PROT_EXECUTE;
61 vm_prot_t current_protection = read_execute;
63 vm_address_t target_address =
64 reinterpret_cast<vm_address_t
>(
target->address());
65 kern_return_t status = vm_remap(
66 task, &target_address, mem_size,
68 VM_FLAGS_FIXED | VM_FLAGS_OVERWRITE, task, source_address,
69 true, ¤t_protection, &max_protection,
71 if (status != KERN_SUCCESS) {
74 ASSERT(
reinterpret_cast<void*
>(target_address) ==
target->address());
75 ASSERT_EQUAL(current_protection & read_execute, read_execute);
76 ASSERT_EQUAL(max_protection & read_execute, read_execute);
#define ASSERT_LESS_OR_EQUAL(expected, actual)
#define ASSERT_EQUAL(expected, actual)
void Subregion(const MemoryRegion &from, uword offset, uword size)
void set_size(uword new_size)
static constexpr T RoundUp(T x, uintptr_t alignment, uintptr_t offset=0)
static constexpr T RoundDown(T x, intptr_t alignment)
static constexpr bool IsAligned(T x, uintptr_t alignment, uintptr_t offset=0)
static void Protect(void *address, intptr_t size, Protection mode)
static intptr_t PageSize()
bool vm_owns_region() const
bool DuplicateRX(VirtualMemory *target)
static bool InSamePage(uword address0, uword address1)
void Truncate(intptr_t new_size)
static VirtualMemory * ForImagePage(void *pointer, uword size)
ClipOpAndAA opAA SkRegion region
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