5#ifndef INCLUDE_V8_HEAP_EXTERNAL_H_
6#define INCLUDE_V8_HEAP_EXTERNAL_H_
8#include "cppgc/type-traits.h"
18
19
20
21
22
28 static_assert(
cppgc::IsGarbageCollectedTypeV<T>,
29 "Object must be of type GarbageCollected.");
30 return NewImpl(isolate, value, tag);
34#ifdef V8_ENABLE_CHECKS
42 static_assert(
cppgc::IsGarbageCollectedTypeV<T>,
43 "Object must be of type GarbageCollected.");
44 return static_cast<T*>(ValueImpl(isolate, tag_range));
48 static void CheckCast(
v8::
Data* obj);
static Local< CppHeapExternal > New(Isolate *isolate, T *value, CppHeapPointerTag tag)
static V8_INLINE CppHeapExternal * Cast(Data *data)
T * Value(Isolate *isolate, CppHeapPointerTagRange tag_range) const