5 #ifndef INCLUDE_V8_OBJECT_H_
6 #define INCLUDE_V8_OBJECT_H_
58 static void CheckCast(
Data* that);
131 PrivateData* private_;
153 using AccessorGetterCallback =
155 using AccessorNameGetterCallback =
161 using AccessorNameSetterCallback =
341 AccessorNameGetterCallback getter,
342 AccessorNameSetterCallback setter =
nullptr,
359 AccessorNameGetterCallback getter,
360 AccessorNameSetterCallback setter =
nullptr,
597 V8_DEPRECATED(
"Use MaybeLocal<Context> GetCreationContext()")
608 "Use MaybeLocal<Context> GetCreationContext(const "
609 "PersistentBase<Object>& object)")
705 static void CheckCast(
Value* obj);
707 void* SlowGetAlignedPointerFromInternalField(
int index);
713 #ifndef V8_ENABLE_CHECKS
716 A obj = *
reinterpret_cast<A*>(
this);
723 #ifdef V8_COMPRESS_POINTERS
726 value = I::DecompressTaggedAnyField(obj,
static_cast<uint32_t>(value));
734 return SlowGetInternalField(index);
738 #if !defined(V8_ENABLE_CHECKS)
741 A obj = *
reinterpret_cast<A*>(
this);
747 #ifdef V8_SANDBOXED_EXTERNAL_POINTERS
748 offset += I::kEmbedderDataSlotRawPayloadOffset;
753 return reinterpret_cast<
void*>(value);
756 return SlowGetAlignedPointerFromInternalField(index);
760 #ifdef V8_ENABLE_CHECKS
763 return reinterpret_cast<
Private*>(data);
767 #ifdef V8_ENABLE_CHECKS
770 return static_cast<
Object*>(value);