#include <class_table.h>
Definition at line 84 of file class_table.h.
◆ ClassTableAllocator()
dart::ClassTableAllocator::ClassTableAllocator |
( |
| ) |
|
Definition at line 387 of file class_table.cc.
388 : pending_freed_(new MallocGrowableArray<std::pair<void*, Deleter>>()) {}
◆ ~ClassTableAllocator()
dart::ClassTableAllocator::~ClassTableAllocator |
( |
| ) |
|
◆ Alloc()
T * dart::ClassTableAllocator::Alloc |
( |
intptr_t |
len | ) |
|
|
inline |
Definition at line 93 of file class_table.h.
93 {
95 }
void * malloc(size_t size)
◆ AllocZeroInitialized()
T * dart::ClassTableAllocator::AllocZeroInitialized |
( |
intptr_t |
len | ) |
|
|
inline |
Definition at line 99 of file class_table.h.
99 {
101 }
void * calloc(size_t n, size_t size)
◆ Clone()
T * dart::ClassTableAllocator::Clone |
( |
T * |
array, |
|
|
intptr_t |
size |
|
) |
| |
|
inline |
Definition at line 105 of file class_table.h.
105 {
106 if (array == nullptr) {
108 return nullptr;
109 }
113 }
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
◆ Free() [1/2]
void dart::ClassTableAllocator::Free |
( |
ClassTable * |
table | ) |
|
Definition at line 395 of file class_table.cc.
395 {
396 if (ptr != nullptr) {
397 pending_freed_->
Add(std::make_pair(
398 ptr, [](void* ptr) { delete static_cast<ClassTable*>(ptr); }));
399 }
400}
◆ Free() [2/2]
void dart::ClassTableAllocator::Free |
( |
void * |
ptr | ) |
|
Definition at line 402 of file class_table.cc.
402 {
403 if (ptr != nullptr) {
404 pending_freed_->
Add(std::make_pair(ptr,
nullptr));
405 }
406}
◆ FreePending()
void dart::ClassTableAllocator::FreePending |
( |
| ) |
|
Definition at line 408 of file class_table.cc.
408 {
409 while (!pending_freed_->
is_empty()) {
410 auto [ptr, deleter] = pending_freed_->
RemoveLast();
411 if (deleter == nullptr) {
412 free(ptr);
413 } else {
414 deleter(ptr);
415 }
416 }
417}
◆ Realloc()
T * dart::ClassTableAllocator::Realloc |
( |
T * |
array, |
|
|
intptr_t |
size, |
|
|
intptr_t |
new_size |
|
) |
| |
|
inline |
Definition at line 121 of file class_table.h.
121 {
123 auto result = AllocZeroInitialized<T>(new_size);
127 }
130 }
void Free(ClassTable *table)
The documentation for this class was generated from the following files: