5#ifndef RUNTIME_VM_COMPILER_FFI_UNIT_TEST_CUSTOM_ZONE_H_
6#define RUNTIME_VM_COMPILER_FFI_UNIT_TEST_CUSTOM_ZONE_H_
12#if defined(RUNTIME_VM_ZONE_H_)
13#error "We want our own zone implementation"
15#define RUNTIME_VM_ZONE_H_
24 template <
class ElementType>
29 template <
class ElementType>
30 inline ElementType*
Realloc(ElementType* old_array,
32 intptr_t new_length) {
33 void* memory =
AllocUnsafe(
sizeof(ElementType) * new_length);
34 memmove(memory, old_array,
sizeof(ElementType) * old_length);
35 return static_cast<ElementType*
>(memory);
38 template <
class ElementType>
39 void Free(ElementType* old_array, intptr_t
len) {}
45 void operator=(
const Zone&) =
delete;
46 std::vector<void*> buffers_;
void * AllocUnsafe(intptr_t size)
void Free(ElementType *old_array, intptr_t len)
ElementType * Realloc(ElementType *old_array, intptr_t old_length, intptr_t new_length)
ElementType * Alloc(intptr_t length)
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