Definition at line 77 of file elf_loader.cc.
◆ MemoryMappable()
dart::bin::elf::MemoryMappable::MemoryMappable |
( |
const uint8_t * |
memory, |
|
|
size_t |
size |
|
) |
| |
|
inline |
Definition at line 79 of file elf_loader.cc.
80 :
Mappable(), memory_(memory), size_(
size), position_(memory) {}
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
◆ ~MemoryMappable()
dart::bin::elf::MemoryMappable::~MemoryMappable |
( |
| ) |
|
|
inlineoverride |
◆ Map()
MappedMemory * dart::bin::elf::MemoryMappable::Map |
( |
File::MapType |
type, |
|
|
uint64_t |
position, |
|
|
uint64_t |
length, |
|
|
void * |
start = nullptr |
|
) |
| |
|
inlineoverridevirtual |
Implements dart::bin::elf::Mappable.
Definition at line 84 of file elf_loader.cc.
87 {
88 if (position > size_) return nullptr;
89 MappedMemory*
result =
nullptr;
91 if (start == nullptr) {
94 if (memory == nullptr) return nullptr;
95 result =
new MappedMemory(memory->address(), memory->size());
96 memory->release();
97 delete memory;
98 } else {
99 result =
new MappedMemory(start, map_size,
100 false);
101 }
102
103 size_t remainder = 0;
104 if ((position +
length) > size_) {
105 remainder = position +
length - size_;
106 length = size_ - position;
107 }
109 memset(
reinterpret_cast<uint8_t*
>(
result->address()) +
length, 0,
110 remainder);
111
116 break;
119 break;
122 break;
123 default:
125 }
126
128
130 }
static constexpr T RoundUp(T x, uintptr_t alignment, uintptr_t offset=0)
static VirtualMemory * Allocate(intptr_t size, bool is_executable, const char *name)
static void Protect(void *address, intptr_t size, Protection mode)
static intptr_t PageSize()
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
◆ ReadFully()
bool dart::bin::elf::MemoryMappable::ReadFully |
( |
void * |
dest, |
|
|
int64_t |
length |
|
) |
| |
|
inlineoverridevirtual |
◆ SetPosition()
bool dart::bin::elf::MemoryMappable::SetPosition |
( |
uint64_t |
position | ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: