5#ifndef INCLUDE_CPPGC_EXPLICIT_MANAGEMENT_H_
6#define INCLUDE_CPPGC_EXPLICIT_MANAGEMENT_H_
24bool Resize(T&
object, AdditionalBytes additional_bytes);
63 static_assert(IsGarbageCollectedTypeV<T>,
64 "Object must be of type GarbageCollected.");
92 static_assert(IsGarbageCollectedTypeV<T>,
93 "Object must be of type GarbageCollected.");
94 static_assert(
sizeof(T) <= std::numeric_limits<uint32_t>::max());
95 const size_t new_object_size =
sizeof(T) + additional_bytes.
value;
99#
if !defined(V8_HOST_ARCH_64_BIT)
100 if (new_object_size <
sizeof(T)) {
Definition: heap-handle.h:21
Definition: explicit-management.h:30
friend void subtle::FreeUnreferencedObject(HeapHandle &, T &)
friend bool subtle::Resize(T &, AdditionalBytes)
bool Resize(T &object, AdditionalBytes additional_bytes)
Definition: explicit-management.h:91
void FreeUnreferencedObject(HeapHandle &heap_handle, T &object)
Definition: explicit-management.h:62
Definition: allocation.h:39
Definition: allocation.h:269
const uint32_t value
Definition: allocation.h:271
#define V8_EXPORT
Definition: v8config.h:874