v8
8.6.395 (node 15.0.1)
V8 is Google's open source JavaScript engine
|
#include <allocation.h>
Static Protected Member Functions | |
static void * | Allocate (AllocationHandle &handle, size_t size) |
static void | MarkObjectAsFullyConstructed (const void *payload) |
Base trait that provides utilities for advancers users that have custom allocation needs (e.g., overriding size). It's expected that users override MakeGarbageCollectedTrait (see below) and inherit from MakeGarbageCollectedTraitBase and make use of the low-level primitives offered to allocate and construct an object.
Definition at line 65 of file allocation.h.
|
inlinestaticprotected |
Allocates memory for an object of type T.
handle | AllocationHandle identifying the heap to allocate the object on. |
size | The size that should be reserved for the object. |
Definition at line 98 of file allocation.h.
|
inlinestaticprotected |
Marks an object as fully constructed, resulting in precise handling by the garbage collector.
payload | The base pointer the object is allocated at. |
Definition at line 109 of file allocation.h.
References MakeGarbageCollectedTraitInternal::MarkObjectAsFullyConstructed().