5#ifndef RUNTIME_VM_VIRTUAL_MEMORY_H_
6#define RUNTIME_VM_VIRTUAL_MEMORY_H_
13#if defined(DART_HOST_OS_FUCHSIA)
14#include <zircon/types.h>
35 intptr_t
size()
const {
return region_.
size(); }
37#if defined(DART_HOST_OS_FUCHSIA)
38 static void Init(zx_handle_t vmex_resource);
74#if !defined(DART_TARGET_OS_FUCHSIA)
97 static intptr_t CalculatePageSize();
101 static bool FreeSubSegment(
void*
address, intptr_t
size);
105 static void Decommit(
void*
address, intptr_t
size);
110 : region_(
region), reserved_(reserved) {}
112 MemoryRegion region_;
117 MemoryRegion reserved_;
119 static uword page_size_;
120 static VirtualMemory* compressed_heap_;
122 DISALLOW_IMPLICIT_CONSTRUCTORS(VirtualMemory);
bool Contains(uword address) const
static VirtualMemory * AllocateAligned(intptr_t size, intptr_t alignment, bool is_executable, bool is_compressed, const char *name)
bool Contains(uword addr) const
static void Protect(void *address, intptr_t size, Protection mode)
static intptr_t PageSize()
bool vm_owns_region() const
bool DuplicateRX(VirtualMemory *target)
void Protect(Protection mode)
static bool InSamePage(uword address0, uword address1)
static void DontNeed(void *address, intptr_t size)
void Truncate(intptr_t new_size)
static VirtualMemory * Allocate(intptr_t size, bool is_executable, bool is_compressed, const char *name)
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 mode