5#ifndef INCLUDE_V8_INTERNAL_H_
6#define INCLUDE_V8_INTERNAL_H_
39static constexpr Address kNullAddress = 0;
41constexpr int KB = 1024;
42constexpr int MB =
KB * 1024;
43constexpr int GB =
MB * 1024;
44#ifdef V8_TARGET_ARCH_X64
45constexpr size_t TB =
size_t{
GB} * 1024;
76template <
size_t tagged_ptr_size>
95 return static_cast<int32_t
>(
static_cast<uint32_t
>(value)) >> shift_bits;
98 template <
class T,
typename std::enable_if_t<std::is_
integral_v<T> &&
99 std::is_
signed_v<T>>* =
nullptr>
104 return (
static_cast<uintptr_t
>(value) -
111 typename std::enable_if_t<std::is_integral_v<T> &&
112 std::is_unsigned_v<T>>* =
nullptr>
114 static_assert(kSmiMaxValue <= std::numeric_limits<uintptr_t>::max());
121 return (
static_cast<uint64_t
>(value) -
128 static_assert(kSmiMaxValue <= std::numeric_limits<uint64_t>::max());
145 return static_cast<int>(
static_cast<intptr_t
>(value) >> shift_bits);
148 template <
class T,
typename std::enable_if_t<std::is_
integral_v<T> &&
149 std::is_
signed_v<T>>* =
nullptr>
152 return std::numeric_limits<int32_t>::min() <= value &&
153 value <= std::numeric_limits<int32_t>::max();
157 typename std::enable_if_t<std::is_integral_v<T> &&
158 std::is_unsigned_v<T>>* =
nullptr>
160 return value <= std::numeric_limits<int32_t>::max();
164#ifdef V8_COMPRESS_POINTERS
167constexpr size_t kPtrComprCageReservationSize =
size_t{1} << 32;
168constexpr size_t kPtrComprCageBaseAlignment =
size_t{1} << 32;
172 "Pointer compression can be enabled only for 64-bit architectures");
182#ifdef V8_31BIT_SMIS_ON_64BIT_ARCH
192const int kSmiMinValue =
static_cast<int>(PlatformSmiTagging::kSmiMinValue);
193const int kSmiMaxValue =
static_cast<int>(PlatformSmiTagging::kSmiMaxValue);
207#ifdef V8_ENABLE_SANDBOX
218#ifdef V8_ENABLE_SANDBOX
221#if defined(V8_TARGET_OS_ANDROID)
225constexpr size_t kSandboxSizeLog2 = 37;
226#elif defined(V8_TARGET_OS_IOS)
231constexpr size_t kSandboxSizeLog2 = 34;
234constexpr size_t kSandboxSizeLog2 = 40;
236constexpr size_t kSandboxSize = 1ULL << kSandboxSizeLog2;
243constexpr size_t kSandboxAlignment = kPtrComprCageBaseAlignment;
249constexpr uint64_t kSandboxedPointerShift = 64 - kSandboxSizeLog2;
257constexpr size_t kSandboxGuardRegionSize = 32ULL *
GB + 4ULL *
GB;
259static_assert((kSandboxGuardRegionSize % kSandboxAlignment) == 0,
260 "The size of the guard regions around the sandbox must be a "
261 "multiple of its required alignment.");
273constexpr size_t kSandboxMinimumReservationSize = 8ULL *
GB;
275static_assert(kSandboxMinimumReservationSize > kPtrComprCageReservationSize,
276 "The minimum reservation size for a sandbox must be larger than "
277 "the pointer compression cage contained within it.");
283constexpr size_t kMaxSafeBufferSizeForSandbox = 32ULL *
GB - 1;
284static_assert(kMaxSafeBufferSizeForSandbox <= kSandboxGuardRegionSize,
285 "The maximum allowed buffer size must not be larger than the "
286 "sandbox's guard regions");
288constexpr size_t kBoundedSizeShift = 29;
289static_assert(1ULL << (64 - kBoundedSizeShift) ==
290 kMaxSafeBufferSizeForSandbox + 1,
291 "The maximum size of a BoundedSize must be synchronized with the "
292 "kMaxSafeBufferSizeForSandbox");
296#ifdef V8_COMPRESS_POINTERS
298#ifdef V8_TARGET_OS_ANDROID
304constexpr size_t kExternalPointerTableReservationSize = 256 *
MB;
310constexpr uint32_t kExternalPointerIndexShift = 7;
311#elif defined(V8_TARGET_OS_IOS)
316constexpr size_t kExternalPointerTableReservationSize = 128 *
MB;
317constexpr uint32_t kExternalPointerIndexShift = 8;
319constexpr size_t kExternalPointerTableReservationSize = 512 *
MB;
320constexpr uint32_t kExternalPointerIndexShift = 6;
324constexpr int kExternalPointerTableEntrySize = 8;
325constexpr int kExternalPointerTableEntrySizeLog2 = 3;
328 kExternalPointerTableReservationSize / kExternalPointerTableEntrySize;
330 "kExternalPointerTableReservationSize and "
331 "kExternalPointerIndexShift don't match");
362#ifdef V8_ENABLE_SANDBOX
382#ifdef V8_COMPRESS_POINTERS
395#ifdef V8_COMPRESS_POINTERS
399constexpr size_t kCppHeapPointerTableReservationSize =
400 kExternalPointerTableReservationSize;
401constexpr uint32_t kCppHeapPointerIndexShift = kExternalPointerIndexShift;
403constexpr int kCppHeapPointerTableEntrySize = 8;
404constexpr int kCppHeapPointerTableEntrySizeLog2 = 3;
406 kCppHeapPointerTableReservationSize / kCppHeapPointerTableEntrySize;
408 "kCppHeapPointerTableReservationSize and "
409 "kCppHeapPointerIndexShift don't match");
421#define V8_EMBEDDER_DATA_TAG_COUNT 15
426#define V8_EXTERNAL_POINTER_TAG_COUNT 40
484template <
typename Tag>
486 static_assert(std::is_enum_v<Tag> &&
487 std::is_same_v<std::underlying_type_t<Tag>, uint16_t>,
488 "Tag parameter must be an enum with base type uint16_t");
492#ifdef V8_ENABLE_CHECKS
494 if (
first >
last) __builtin_unreachable();
512 constexpr size_t Size()
const {
524 return static_cast<uint32_t
>(tag) -
static_cast<uint32_t
>(
first) <=
525 static_cast<uint32_t
>(
last) -
static_cast<uint32_t
>(
first);
537 static_assert(std::is_same_v<std::underlying_type_t<Tag>, uint16_t>);
538 return (
static_cast<size_t>(
first) << 16) |
last;
736V8_INLINE static constexpr bool IsSharedExternalPointerType(
743 return kAnySharedExternalPointerTagRange.Contains(tag_range) ||
750V8_INLINE static constexpr bool IsMaybeReadOnlyExternalPointerType(
759V8_INLINE static constexpr bool IsManagedExternalPointerType(
771V8_INLINE static constexpr bool ExternalPointerCanBeEmpty(
837 "kTrustedPointerTableReservationSize and "
838 "kTrustedPointerHandleShift don't match");
887 "kCodePointerTableReservationSize and kCodePointerHandleShift don't match");
903 "Use GetCurrentIsolate() instead, which is guaranteed to return the same "
904 "isolate since https://crrev.com/c/6458560.")
913 static constexpr uint32_t kSizeInBytes =
922 next = limit =
nullptr;
923 sealed_level = level = 0;
938 return mapword ^ kMapWordXorMask;
952#ifdef V8_COMPRESS_POINTERS
962#ifdef V8_ENABLE_SANDBOX
1034#ifdef V8_COMPRESS_POINTERS
1035 static const int kIsolateExternalPointerTableOffset =
1037 static const int kIsolateSharedExternalPointerTableAddressOffset =
1039 static const int kIsolateCppHeapPointerTableOffset =
1041#ifdef V8_ENABLE_SANDBOX
1042 static const int kIsolateTrustedCageBaseOffset =
1044 static const int kIsolateTrustedPointerTableOffset =
1046 static const int kIsolateSharedTrustedPointerTableAddressOffset =
1048 static const int kIsolateTrustedPointerPublishingScopeOffset =
1050 static const int kIsolateCodePointerTableBaseAddressOffset =
1071#if V8_TARGET_ARCH_PPC64
1077#if V8_TARGET_ARCH_ARM64
1093#if V8_STATIC_ROOTS_BOOL
1096#define EXPORTED_STATIC_ROOTS_PTR_LIST(V) \
1097 V(UndefinedValue, 0x11) \
1098 V(NullValue, 0x2d) \
1099 V(TrueValue, 0x71) \
1100 V(FalseValue, 0x55) \
1101 V(EmptyString, 0x49) \
1104 V(TheHoleValue, kBuildDependentTheHoleValue)
1106 using Tagged_t = uint32_t;
1107 struct StaticReadOnlyRoot {
1108#ifdef V8_ENABLE_WEBASSEMBLY
1109 static constexpr Tagged_t kBuildDependentTheHoleValue = 0x2fffd;
1111 static constexpr Tagged_t kBuildDependentTheHoleValue = 0xfffd;
1114#define DEF_ROOT(name, value) static constexpr Tagged_t k##name = value;
1115 EXPORTED_STATIC_ROOTS_PTR_LIST(DEF_ROOT)
1119 static constexpr Tagged_t kStringMapLowerBound = 0;
1120 static constexpr Tagged_t kStringMapUpperBound = 0x425;
1122#define PLUSONE(...) +1
1123 static constexpr size_t kNumberOfExportedStaticRoots =
1124 2 + EXPORTED_STATIC_ROOTS_PTR_LIST(PLUSONE);
1168#ifdef V8_MAP_PACKING
1169 static const uintptr_t kMapWordMetadataMask = 0xffffULL << 48;
1171 static const uintptr_t kMapWordSignature = 0b10;
1176 static const int kMapWordXorMask = 0b11;
1181#ifdef V8_ENABLE_CHECKS
1191 return PlatformSmiTagging::SmiToInt(value);
1195 return (value << (
kSmiTagSize + PlatformSmiTagging::kSmiShiftSize)) |
1203 template <
typename T,
1204 typename std::enable_if_t<std::is_integral_v<T>>* =
nullptr>
1209 template <
typename T,
1210 typename std::enable_if_t<std::is_integral_v<T>>* =
nullptr>
1212 return PlatformSmiTagging::IsValidSmi(value);
1215 template <
typename T,
1216 typename std::enable_if_t<std::is_integral_v<T>>* =
nullptr>
1218 if (
V8_LIKELY(PlatformSmiTagging::IsValidSmi(value))) {
1224#if V8_STATIC_ROOTS_BOOL
1226 return static_cast<Tagged_t
>(obj) == constant;
1229 V8_INLINE static bool CheckInstanceMapRange(
Address obj, Tagged_t first_map,
1230 Tagged_t last_map) {
1232#ifdef V8_MAP_PACKING
1233 map = UnpackMapWord(map);
1235 return map >= first_map && map <= last_map;
1241#ifdef V8_MAP_PACKING
1242 map = UnpackMapWord(map);
1250#ifdef V8_MAP_PACKING
1251 map = UnpackMapWord(map);
1277 (
static_cast<unsigned>(
static_cast<unsigned>(instance_type) -
1284 return *addr &
static_cast<uint8_t
>(1U << shift);
1289 uint8_t mask =
static_cast<uint8_t
>(1U << shift);
1290 *addr =
static_cast<uint8_t
>((*addr & ~mask) | (value << shift));
1300 *addr =
static_cast<uint8_t
>((*addr & ~kNodeStateMask) | value);
1307 *
reinterpret_cast<void**
>(addr) = data;
1314 return *
reinterpret_cast<void* const*
>(addr);
1326 ++(*
reinterpret_cast<size_t*
>(addr));
1332 return reinterpret_cast<Address*
>(addr);
1336#if V8_STATIC_ROOTS_BOOL
1340#define DECOMPRESS_ROOT(name, ...) \
1341 case k##name##RootIndex: \
1342 return base + StaticReadOnlyRoot::k##name;
1343 EXPORTED_STATIC_ROOTS_PTR_LIST(DECOMPRESS_ROOT)
1344#undef DECOMPRESS_ROOT
1345#undef EXPORTED_STATIC_ROOTS_PTR_LIST
1353#ifdef V8_ENABLE_SANDBOX
1356 kIsolateExternalPointerTableOffset +
1358 return *
reinterpret_cast<Address**
>(addr);
1364 kIsolateSharedExternalPointerTableAddressOffset;
1365 addr = *
reinterpret_cast<Address*
>(addr);
1367 return *
reinterpret_cast<Address**
>(addr);
1371 template <
typename T>
1374#ifdef V8_COMPRESS_POINTERS
1381 memcpy(&r,
reinterpret_cast<void*
>(addr),
sizeof(T));
1385 return *
reinterpret_cast<const T*
>(addr);
1390#ifdef V8_COMPRESS_POINTERS
1391 uint32_t value = ReadRawField<uint32_t>(heap_object_ptr, offset);
1392 Address base = GetPtrComprCageBaseFromOnHeapAddress(heap_object_ptr);
1393 return base +
static_cast<Address>(
static_cast<uintptr_t
>(value));
1395 return ReadRawField<Address>(heap_object_ptr, offset);
1401#ifdef V8_COMPRESS_POINTERS
1402 uint32_t value = ReadRawField<uint32_t>(heap_object_ptr, offset);
1403 return static_cast<Address>(
static_cast<uintptr_t
>(value));
1405 return ReadRawField<Address>(heap_object_ptr, offset);
1414#ifdef V8_ENABLE_SANDBOX
1422 template <ExternalPo
interTagRange tag_range>
1426#ifdef V8_ENABLE_SANDBOX
1427 static_assert(!tag_range.IsEmpty());
1430 Address* table = IsSharedExternalPointerType(tag_range)
1431 ? GetSharedExternalPointerTableBase(isolate)
1432 : GetExternalPointerTableBase(isolate);
1434 ReadRawField<ExternalPointerHandle>(heap_object_ptr, offset);
1435 uint32_t index = handle >> kExternalPointerIndexShift;
1436 std::atomic<Address>* ptr =
1437 reinterpret_cast<std::atomic<Address>*
>(&table[index]);
1438 Address entry = std::atomic_load_explicit(ptr, std::memory_order_relaxed);
1441 if (
V8_LIKELY(tag_range.Contains(actual_tag))) {
1448 return ReadRawField<Address>(heap_object_ptr, offset);
1455#ifdef V8_ENABLE_SANDBOX
1458 Address* table = IsSharedExternalPointerType(tag_range)
1459 ? GetSharedExternalPointerTableBase(isolate)
1460 : GetExternalPointerTableBase(isolate);
1462 ReadRawField<ExternalPointerHandle>(heap_object_ptr, offset);
1463 uint32_t index = handle >> kExternalPointerIndexShift;
1464 std::atomic<Address>* ptr =
1465 reinterpret_cast<std::atomic<Address>*
>(&table[index]);
1466 Address entry = std::atomic_load_explicit(ptr, std::memory_order_relaxed);
1476 return ReadRawField<Address>(heap_object_ptr, offset);
1480#ifdef V8_COMPRESS_POINTERS
1482 return addr & -
static_cast<intptr_t
>(kPtrComprCageBaseAlignment);
1486 return static_cast<uint32_t
>(value);
1491 Address base = GetPtrComprCageBaseFromOnHeapAddress(heap_object_ptr);
1492 return base +
static_cast<Address>(
static_cast<uintptr_t
>(value));
1500template <
bool PerformCheck>
1519 !std::is_same_v<Data, std::remove_cv_t<T>>>::Perform(data);
1534 Heap*
heap()
const {
return heap_; }
1558template <
typename T>
1563 template <
typename HeapOrIsolateT>
1565 template <
typename U>
1568 using std::allocator<T>::allocate;
1569 using std::allocator<T>::deallocate;
1572template <
typename Iterator>
1575template <
typename Iterator>
1577 requires {
typename Iterator::iterator_category; };
1582template <
typename Iterator>
1585template <HasIteratorConcept Iterator>
1590template <
typename Iterator>
1594 typename std::iterator_traits<Iterator>::iterator_concept;
1601template <
typename Iterator,
typename ElementType =
void>
1605 std::is_void_v<ElementType> ||
1606 (std::is_convertible_v<typename std::iterator_traits<Iterator>::pointer,
1607 std::add_pointer_t<ElementType>> &&
1608 std::is_convertible_v<typename std::iterator_traits<Iterator>::reference,
1609 std::add_lvalue_reference_t<ElementType>>));
1612 typename std::iterator_traits<Iterator>::difference_type;
1614 std::conditional_t<std::is_void_v<ElementType>,
1615 typename std::iterator_traits<Iterator>::value_type,
1618 std::conditional_t<std::is_void_v<ElementType>,
1619 typename std::iterator_traits<Iterator>::pointer,
1620 std::add_pointer_t<ElementType>>;
1622 std::conditional_t<std::is_void_v<ElementType>,
1623 typename std::iterator_traits<Iterator>::reference,
1624 std::add_lvalue_reference_t<ElementType>>;
1626 typename std::iterator_traits<Iterator>::iterator_category;
1631 template <
typename OtherIterator,
typename OtherElementType>
1632 requires std::is_convertible_v<OtherIterator, Iterator>
1635 : it_(other.base()) {}
1639 if constexpr (std::is_pointer_v<Iterator>) {
1642 return it_.operator->();
1646 template <
typename OtherIterator,
typename OtherElementType>
1650 return it_ == other.base();
1653 template <
typename OtherIterator,
typename OtherElementType>
1657 if constexpr (std::three_way_comparable_with<Iterator, OtherIterator>) {
1658 return it_ <=> other.base();
1659 }
else if constexpr (std::totally_ordered_with<Iterator, OtherIterator>) {
1660 if (it_ < other.base()) {
1661 return std::strong_ordering::less;
1663 return (it_ > other.base()) ? std::strong_ordering::greater
1664 : std::strong_ordering::equal;
1666 if (it_ < other.base()) {
1667 return std::partial_ordering::less;
1669 if (other.base() < it_) {
1670 return std::partial_ordering::greater;
1672 return (it_ == other.base()) ? std::partial_ordering::equivalent
1673 : std::partial_ordering::unordered;
1717 template <
typename OtherIterator,
typename OtherElementType>
1721 return it_ - other.base();
1728 [[nodiscard]]
constexpr const Iterator&
base() const noexcept {
return it_; }
1745#ifdef V8_ENABLE_DIRECT_HANDLE
1746 static constexpr Address kTaggedNullAddress = 1;
1755 template <
typename T>
1763 template <
template <
typename T,
typename... Ms>
typename H,
typename T,
1766 return handle.template value<T>();
1769#ifdef V8_ENABLE_DIRECT_HANDLE
1771 template <
typename T>
1773 return reinterpret_cast<Address>(value);
1776 template <
typename T,
bool check_null = true,
typename S>
1778 if (check_null && slot ==
nullptr) {
1779 return reinterpret_cast<T*
>(kTaggedNullAddress);
1781 return *
reinterpret_cast<T**
>(slot);
1784 template <
typename T>
1789 template <
typename T>
1791 return reinterpret_cast<T*
>(repr);
1796 template <
typename T>
1798 return *
reinterpret_cast<const Address*
>(value);
1801 template <
typename T,
bool check_null = true,
typename S>
1803 return reinterpret_cast<T*
>(slot);
1806 template <
typename T>
1809 reinterpret_cast<const Address*
>(value));
1812 template <
typename T>
1814 return reinterpret_cast<T*
>(repr);
1835 template <
typename T1,
typename T2>
1837 if (lhs.IsEmpty())
return rhs.IsEmpty();
1838 if (rhs.IsEmpty())
return false;
1839 return lhs.ptr() == rhs.ptr();
Definition: v8-isolate.h:291
Definition: v8-internal.h:1524
Definition: v8-internal.h:1823
static bool EqualHandles(const T1 &lhs, const T2 &rhs)
Definition: v8-internal.h:1836
Definition: v8-internal.h:934
static Address LoadMap(Address obj)
Definition: v8-internal.h:1247
static constexpr size_t kExternalAllocationSoftLimit
Definition: v8-internal.h:1166
static bool IsExternalTwoByteString(int instance_type)
Definition: v8-internal.h:1260
static const int kIsolateCageBaseOffset
Definition: v8-internal.h:997
static const int kEmbedderDataArrayHeaderSize
Definition: v8-internal.h:960
static const int kHeapObjectMapOffset
Definition: v8-internal.h:945
static const int kEmbedderDataSlotSize
Definition: v8-internal.h:961
static const int kIsolateApiCallbackThunkArgumentOffset
Definition: v8-internal.h:1062
static Address ReadExternalPointerField(v8::Isolate *isolate, Address heap_object_ptr, int offset)
Definition: v8-internal.h:1423
static const int kJSAPIObjectWithEmbedderSlotsHeaderSize
Definition: v8-internal.h:956
static constexpr bool HasHeapObjectTag(Address value)
Definition: v8-internal.h:1186
static Address ReadExternalPointerField(v8::Isolate *isolate, Address heap_object_ptr, int offset, ExternalPointerTagRange tag_range)
Definition: v8-internal.h:1452
static const int kOddballType
Definition: v8-internal.h:1143
static const int kInferShouldThrowMode
Definition: v8-internal.h:1162
static const int kNewAllocationInfoOffset
Definition: v8-internal.h:1009
static Address GetRoot(v8::Isolate *isolate, int index)
Definition: v8-internal.h:1335
static const int kStringEncodingMask
Definition: v8-internal.h:969
static const int kIsolateFastCCallCallerPcOffset
Definition: v8-internal.h:1019
static uint8_t GetNodeFlag(Address *obj, int shift)
Definition: v8-internal.h:1282
static const int kIsolateThreadLocalTopOffset
Definition: v8-internal.h:1028
static const uint32_t kNumIsolateDataSlots
Definition: v8-internal.h:976
static const int kForeignType
Definition: v8-internal.h:1144
static const int kFirstEmbedderJSApiObjectType
Definition: v8-internal.h:1151
static const int kNumberOfBooleanFlags
Definition: v8-internal.h:978
static uint8_t GetNodeState(Address *obj)
Definition: v8-internal.h:1293
static const int kThreadLocalTopSize
Definition: v8-internal.h:985
static const int kIsolateRootsOffset
Definition: v8-internal.h:1068
static const int kFrameTypeApiCallExit
Definition: v8-internal.h:1084
static const int kUndefinedOddballKind
Definition: v8-internal.h:1155
static const int kMapInstanceTypeOffset
Definition: v8-internal.h:946
static constexpr Address AddressToSmi(Address value)
Definition: v8-internal.h:1194
static const int kIsolateStackGuardOffset
Definition: v8-internal.h:998
static const int kLinearAllocationAreaSize
Definition: v8-internal.h:984
static const int kFastCCallAlignmentPaddingSize
Definition: v8-internal.h:1016
static const int kDisallowGarbageCollectionAlign
Definition: v8-internal.h:1090
static const int kIsolateFastCCallCallerFpOffset
Definition: v8-internal.h:1022
static const int kErrorMessageParamSize
Definition: v8-internal.h:979
static const int kSegmentedTableSegmentPoolSize
Definition: v8-internal.h:991
static void CheckInitialized(v8::Isolate *isolate)
Definition: v8-internal.h:1180
static void UpdateNodeState(Address *obj, uint8_t value)
Definition: v8-internal.h:1298
static constexpr Address IntegralToSmi(T value)
Definition: v8-internal.h:1205
static constexpr bool IsValidSmi(T value)
Definition: v8-internal.h:1211
static const int kJSObjectType
Definition: v8-internal.h:1146
static const int kExternalEntityTableBasePointerOffset
Definition: v8-internal.h:990
static const int kBuiltinTier0TableOffset
Definition: v8-internal.h:1007
static const int kIsolateLongTaskStatsCounterOffset
Definition: v8-internal.h:1026
static const int kNativeContextEmbedderDataOffset
Definition: v8-internal.h:967
static const int kLastJSApiObjectType
Definition: v8-internal.h:1148
static constexpr bool CanHaveInternalField(int instance_type)
Definition: v8-internal.h:1270
static constexpr int kSPAlignmentSlotCount
Definition: v8-internal.h:1081
static const int kIsolateHandleScopeDataOffset
Definition: v8-internal.h:1030
static const int kFirstNonstringType
Definition: v8-internal.h:1142
static const int kEmptyStringRootIndex
Definition: v8-internal.h:1135
static const int kBuiltinTier0EntryTableOffset
Definition: v8-internal.h:1004
static const int kFrameTypeApiIndexedAccessorExit
Definition: v8-internal.h:1087
static const int kFixedArrayHeaderSize
Definition: v8-internal.h:959
static const int kNullOddballKind
Definition: v8-internal.h:1156
static const int kUndefinedValueRootIndex
Definition: v8-internal.h:1130
static const int kExternalTwoByteRepresentationTag
Definition: v8-internal.h:970
static constexpr Address IntToSmi(int value)
Definition: v8-internal.h:1199
static const int kDontThrow
Definition: v8-internal.h:1160
static void CheckInitializedImpl(v8::Isolate *isolate)
static void * GetEmbedderData(const v8::Isolate *isolate, uint32_t slot)
Definition: v8-internal.h:1310
static const int kStackGuardSize
Definition: v8-internal.h:977
static const int kNodeStateMask
Definition: v8-internal.h:1139
static HandleScopeData * GetHandleScopeData(v8::Isolate *isolate)
Definition: v8-internal.h:1317
static const int kNodeStateIsWeakValue
Definition: v8-internal.h:1140
static const int kFirstJSApiObjectType
Definition: v8-internal.h:1147
static const int kStringResourceOffset
Definition: v8-internal.h:947
static bool IsExternalOneByteString(int instance_type)
Definition: v8-internal.h:1265
static const int kErrorMessageParamOffset
Definition: v8-internal.h:1002
static const int kFalseValueRootIndex
Definition: v8-internal.h:1134
static const int kIsolateRegexpExecVectorArgumentOffset
Definition: v8-internal.h:1064
static const int kIsolateFastApiCallTargetOffset
Definition: v8-internal.h:1024
static const int kTrueValueRootIndex
Definition: v8-internal.h:1133
static int GetInstanceType(Address obj)
Definition: v8-internal.h:1239
static const int kThrowOnError
Definition: v8-internal.h:1161
static Address ReadTaggedSignedField(Address heap_object_ptr, int offset)
Definition: v8-internal.h:1399
static const int kOddballKindOffset
Definition: v8-internal.h:950
static const int kBuiltinTier0TableSize
Definition: v8-internal.h:983
static const int kExternalEntityTableSize
Definition: v8-internal.h:992
static const int kFrameTypeApiConstructExit
Definition: v8-internal.h:1085
static const int kContinuationPreservedEmbedderDataOffset
Definition: v8-internal.h:1066
static const int kLastYoungAllocationOffset
Definition: v8-internal.h:1013
static Address ReadTaggedPointerField(Address heap_object_ptr, int offset)
Definition: v8-internal.h:1388
static const int kFrameTypeApiNamedAccessorExit
Definition: v8-internal.h:1086
static const int kNullValueRootIndex
Definition: v8-internal.h:1132
static void SetEmbedderData(v8::Isolate *isolate, uint32_t slot, void *data)
Definition: v8-internal.h:1303
static Address * GetRootSlot(v8::Isolate *isolate, int index)
Definition: v8-internal.h:1329
static const int kIsolateJSDispatchTableOffset
Definition: v8-internal.h:1059
static const int kTheHoleValueRootIndex
Definition: v8-internal.h:1131
static constexpr int SmiValue(Address value)
Definition: v8-internal.h:1190
static const int kTablesAlignmentPaddingSize
Definition: v8-internal.h:980
static const int kHandleScopeDataSize
Definition: v8-internal.h:986
static const int kExternalOneByteRepresentationTag
Definition: v8-internal.h:971
static const int kBuiltinTier0EntryTableSize
Definition: v8-internal.h:982
static void UpdateNodeFlag(Address *obj, bool value, int shift)
Definition: v8-internal.h:1287
static const int kCallbackInfoDataOffset
Definition: v8-internal.h:974
static void IncrementLongTasksStatsCounter(v8::Isolate *isolate)
Definition: v8-internal.h:1323
static const int kDisallowGarbageCollectionSize
Definition: v8-internal.h:1091
static const int kOldAllocationInfoOffset
Definition: v8-internal.h:1011
static const int kIsolateEmbedderDataOffset
Definition: v8-internal.h:1032
static T ReadRawField(Address heap_object_ptr, int offset)
Definition: v8-internal.h:1372
static v8::Isolate * GetCurrentIsolate()
static constexpr int kFrameCPSlotCount
Definition: v8-internal.h:1074
static const int kEmbedderDataSlotExternalPointerOffset
Definition: v8-internal.h:965
static v8::Isolate * GetCurrentIsolateForSandbox()
Definition: v8-internal.h:1413
static int GetOddballKind(Address obj)
Definition: v8-internal.h:1256
static const int kNodeFlagsOffset
Definition: v8-internal.h:1138
static const int kRegExpStaticResultOffsetsVectorSize
Definition: v8-internal.h:981
static const int kLastEmbedderJSApiObjectType
Definition: v8-internal.h:1152
static const int kVariousBooleanFlagsOffset
Definition: v8-internal.h:1000
static constexpr std::optional< Address > TryIntegralToSmi(T value)
Definition: v8-internal.h:1217
static const int kNodeClassIdOffset
Definition: v8-internal.h:1137
static const int kStringRepresentationAndEncodingMask
Definition: v8-internal.h:968
static const int kJSObjectHeaderSize
Definition: v8-internal.h:951
static const int kJSSpecialApiObjectType
Definition: v8-internal.h:1145
Definition: v8-internal.h:1532
constexpr bool operator==(const StrongRootAllocatorBase &) const =default
StrongRootAllocatorBase(Heap *heap)
Definition: v8-internal.h:1539
Address * allocate_impl(size_t n)
StrongRootAllocatorBase(v8::Isolate *isolate)
StrongRootAllocatorBase(LocalIsolate *isolate)
void deallocate_impl(Address *p, size_t n) noexcept
StrongRootAllocatorBase(LocalHeap *heap)
StrongRootAllocatorBase(Isolate *isolate)
Heap * heap() const
Definition: v8-internal.h:1534
Definition: v8-internal.h:1559
StrongRootAllocator(HeapOrIsolateT *)
Definition: v8-internal.h:1564
T value_type
Definition: v8-internal.h:1561
StrongRootAllocator(const StrongRootAllocator< U > &other) noexcept
Definition: v8-internal.h:1566
Definition: v8-internal.h:1737
static Address ValueAsAddress(const T *value)
Definition: v8-internal.h:1797
static T * ReprAsValue(InternalRepresentationType repr)
Definition: v8-internal.h:1813
internal::Address * InternalRepresentationType
Definition: v8-internal.h:1751
static T * SlotAsValue(S *slot)
Definition: v8-internal.h:1802
static T * HandleAsValue(const H< T, Ms... > &handle)
Definition: v8-internal.h:1765
static InternalRepresentationType ValueAsRepr(const T *value)
Definition: v8-internal.h:1807
static bool IsEmpty(T *value)
Definition: v8-internal.h:1756
static constexpr InternalRepresentationType kEmpty
Definition: v8-internal.h:1752
Definition: v8-internal.h:1602
constexpr WrappedIterator & operator-=(difference_type n) noexcept
Definition: v8-internal.h:1714
constexpr WrappedIterator operator--(int) noexcept
Definition: v8-internal.h:1691
constexpr WrappedIterator & operator+=(difference_type n) noexcept
Definition: v8-internal.h:1706
constexpr const Iterator & base() const noexcept
Definition: v8-internal.h:1728
std::conditional_t< std::is_void_v< ElementType >, typename std::iterator_traits< Iterator >::value_type, ElementType > value_type
Definition: v8-internal.h:1616
constexpr WrappedIterator & operator++() noexcept
Definition: v8-internal.h:1677
constexpr pointer operator->() const noexcept
Definition: v8-internal.h:1638
constexpr reference operator[](difference_type n) const noexcept
Definition: v8-internal.h:1723
typename std::iterator_traits< Iterator >::difference_type difference_type
Definition: v8-internal.h:1612
constexpr auto operator<=>(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1654
std::conditional_t< std::is_void_v< ElementType >, typename std::iterator_traits< Iterator >::reference, std::add_lvalue_reference_t< ElementType > > reference
Definition: v8-internal.h:1624
constexpr WrappedIterator & operator--() noexcept
Definition: v8-internal.h:1687
constexpr WrappedIterator() noexcept=default
constexpr WrappedIterator(const WrappedIterator< OtherIterator, OtherElementType > &other) noexcept
Definition: v8-internal.h:1633
typename std::iterator_traits< Iterator >::iterator_category iterator_category
Definition: v8-internal.h:1626
constexpr reference operator*() const noexcept
Definition: v8-internal.h:1637
constexpr auto operator-(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1718
friend constexpr WrappedIterator operator+(difference_type n, const WrappedIterator &x) noexcept
Definition: v8-internal.h:1702
constexpr WrappedIterator operator+(difference_type n) const noexcept
Definition: v8-internal.h:1696
constexpr WrappedIterator operator++(int) noexcept
Definition: v8-internal.h:1681
constexpr WrappedIterator operator-(difference_type n) const noexcept
Definition: v8-internal.h:1710
std::conditional_t< std::is_void_v< ElementType >, typename std::iterator_traits< Iterator >::pointer, std::add_pointer_t< ElementType > > pointer
Definition: v8-internal.h:1620
constexpr bool operator==(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1647
Definition: v8-internal.h:1576
Definition: v8-internal.h:1573
const intptr_t kHeapObjectTagMask
Definition: v8-internal.h:61
constexpr uint64_t kCppHeapPointerMarkBit
Definition: v8-internal.h:391
constexpr int kCodePointerTableEntrySizeLog2
Definition: v8-internal.h:881
constexpr bool kRuntimeGeneratedCodeObjectsLiveInTrustedSpace
Definition: v8-internal.h:894
internal::Isolate * IsolateFromNeverReadOnlySpaceObject(Address obj)
constexpr uint64_t kExternalPointerTagShift
Definition: v8-internal.h:341
IndirectPointerHandle TrustedPointerHandle
Definition: v8-internal.h:815
const int kApiSystemPointerSize
Definition: v8-internal.h:51
constexpr bool SandboxIsEnabled()
Definition: v8-internal.h:206
const int kApiDoubleSize
Definition: v8-internal.h:52
constexpr size_t kMaxCppHeapPointers
Definition: v8-internal.h:414
constexpr intptr_t kIntptrAllBitsSet
Definition: v8-internal.h:79
constexpr int GB
Definition: v8-internal.h:43
void VerifyHandleIsNonEmpty(bool is_empty)
const int kApiInt32Size
Definition: v8-internal.h:53
const int kForwardingTagSize
Definition: v8-internal.h:68
uint32_t CppHeapPointerHandle
Definition: v8-internal.h:376
const intptr_t kForwardingTagMask
Definition: v8-internal.h:69
void PrintPropertyCallbackInfo(void *property_callback_info)
constexpr ExternalPointerTagRange kAnyManagedResourceExternalPointerTag(kFirstManagedResourceTag, kLastManagedResourceTag)
IndirectPointerHandle CodePointerHandle
Definition: v8-internal.h:854
constexpr uint64_t kExternalPointerPayloadMask
Definition: v8-internal.h:348
const int kSmiTagSize
Definition: v8-internal.h:73
const int kApiInt64Size
Definition: v8-internal.h:54
constexpr ExternalPointerTagRange kAnyExternalPointerTagRange(kFirstExternalPointerTag, kLastExternalPointerTag)
constexpr uint64_t kExternalPointerTagMask
Definition: v8-internal.h:342
constexpr int kCodePointerTableEntryCodeObjectOffset
Definition: v8-internal.h:890
constexpr int kTrustedPointerTableEntrySizeLog2
Definition: v8-internal.h:832
constexpr int kTrustedPointerTableEntrySize
Definition: v8-internal.h:831
constexpr uint64_t kCppHeapPointerPayloadShift
Definition: v8-internal.h:393
constexpr ExternalPointer_t kNullExternalPointer
Definition: v8-internal.h:368
Address ExternalPointer_t
Definition: v8-internal.h:365
uint32_t IndirectPointerHandle
Definition: v8-internal.h:795
constexpr CppHeapPointer_t kNullCppHeapPointer
Definition: v8-internal.h:388
const int kApiSizetSize
Definition: v8-internal.h:55
constexpr uint64_t kExternalPointerTagAndMarkbitMask
Definition: v8-internal.h:347
constexpr int kCodePointerTableEntryEntrypointOffset
Definition: v8-internal.h:889
constexpr size_t kMaxExternalPointers
Definition: v8-internal.h:336
constexpr ExternalPointerTagRange kAnySharedManagedExternalPointerTagRange(kFirstSharedManagedExternalPointerTag, kLastSharedManagedExternalPointerTag)
constexpr size_t kCodePointerTableReservationSize
Definition: v8-internal.h:859
constexpr TrustedPointerHandle kNullTrustedPointerHandle
Definition: v8-internal.h:827
const int kWeakHeapObjectTag
Definition: v8-internal.h:59
constexpr ExternalPointerHandle kNullExternalPointerHandle
Definition: v8-internal.h:369
constexpr ExternalPointerTagRange kAnyMaybeReadOnlyExternalPointerTagRange(kFirstMaybeReadOnlyExternalPointerTag, kLastMaybeReadOnlyExternalPointerTag)
constexpr uintptr_t kUintptrAllBitsSet
Definition: v8-internal.h:80
const int kForwardingTag
Definition: v8-internal.h:67
const intptr_t kHeapObjectReferenceTagMask
Definition: v8-internal.h:62
constexpr bool SmiValuesAre31Bits()
Definition: v8-internal.h:194
constexpr size_t kMaxTrustedPointers
Definition: v8-internal.h:834
bool ShouldThrowOnError(internal::Isolate *isolate)
constexpr uint64_t kCppHeapPointerTagShift
Definition: v8-internal.h:392
constexpr ExternalPointerTagRange kAnyInterceptorInfoExternalPointerTagRange(kFirstInterceptorInfoExternalPointerTag, kLastInterceptorInfoExternalPointerTag)
constexpr int KB
Definition: v8-internal.h:41
constexpr bool kBuiltinCodeObjectsLiveInTrustedSpace
Definition: v8-internal.h:895
constexpr uint32_t kTrustedPointerHandleShift
Definition: v8-internal.h:824
constexpr uint32_t kCodePointerHandleShift
Definition: v8-internal.h:863
constexpr ExternalPointerTagRange kAnyManagedExternalPointerTagRange(kFirstManagedExternalPointerTag, kLastManagedExternalPointerTag)
const int kHeapObjectTag
Definition: v8-internal.h:58
const int kSmiShiftSize
Definition: v8-internal.h:190
constexpr size_t kMaxCodePointers
Definition: v8-internal.h:883
SmiTagging< kApiTaggedSize > PlatformSmiTagging
Definition: v8-internal.h:185
ExternalPointerTag
Definition: v8-internal.h:590
@ kLastForeignExternalPointerTag
Definition: v8-internal.h:700
@ kApiIndexedPropertyDescriptorCallbackTag
Definition: v8-internal.h:641
@ kGenericForeignTag
Definition: v8-internal.h:655
@ kFirstMaybeReadOnlyExternalPointerTag
Definition: v8-internal.h:624
@ kTemporalInstantTag
Definition: v8-internal.h:690
@ kTemporalPlainYearMonthTag
Definition: v8-internal.h:694
@ kExternalPointerEvacuationEntryTag
Definition: v8-internal.h:708
@ kFirstSharedExternalPointerTag
Definition: v8-internal.h:602
@ kApiNamedPropertyDefinerCallbackTag
Definition: v8-internal.h:635
@ kLastSharedExternalPointerTag
Definition: v8-internal.h:606
@ kD8WorkerTag
Definition: v8-internal.h:698
@ kApiIndexedPropertySetterCallbackTag
Definition: v8-internal.h:640
@ kWasmManagedDataTag
Definition: v8-internal.h:673
@ kLastExternalPointerTag
Definition: v8-internal.h:711
@ kIcuBreakIteratorTag
Definition: v8-internal.h:679
@ kLastExternalTypeTag
Definition: v8-internal.h:618
@ kMicrotaskCallbackDataTag
Definition: v8-internal.h:661
@ kWasmNativeModuleTag
Definition: v8-internal.h:674
@ kApiIndexedPropertyGetterCallbackTag
Definition: v8-internal.h:639
@ kFirstSharedManagedExternalPointerTag
Definition: v8-internal.h:675
@ kApiNamedPropertyDescriptorCallbackTag
Definition: v8-internal.h:634
@ kAccessorInfoGetterTag
Definition: v8-internal.h:626
@ kTemporalPlainMonthDayTag
Definition: v8-internal.h:695
@ kIcuCollatorTag
Definition: v8-internal.h:687
@ kBackingStoreTag
Definition: v8-internal.h:678
@ kIcuSimpleDateFormatTag
Definition: v8-internal.h:682
@ kApiIndexedPropertyDefinerCallbackTag
Definition: v8-internal.h:642
@ kSyntheticModuleTag
Definition: v8-internal.h:659
@ kFirstExternalTypeTag
Definition: v8-internal.h:617
@ kLastSharedManagedExternalPointerTag
Definition: v8-internal.h:677
@ kD8ModuleEmbedderDataTag
Definition: v8-internal.h:699
@ kExternalStringResourceTag
Definition: v8-internal.h:604
@ kWasmFuncDataTag
Definition: v8-internal.h:672
@ kWaiterQueueForeignTag
Definition: v8-internal.h:665
@ kAccessorInfoSetterTag
Definition: v8-internal.h:627
@ kWasmFutexManagedObjectWaitListTag
Definition: v8-internal.h:676
@ kApiNamedPropertyDeleterCallbackTag
Definition: v8-internal.h:636
@ kApiAccessCheckCallbackTag
Definition: v8-internal.h:657
@ kApiAbortScriptExecutionCallbackTag
Definition: v8-internal.h:658
@ kMicrotaskCallbackTag
Definition: v8-internal.h:660
@ kIcuLocalizedNumberFormatterTag
Definition: v8-internal.h:685
@ kApiNamedPropertyGetterCallbackTag
Definition: v8-internal.h:632
@ kApiNamedPropertySetterCallbackTag
Definition: v8-internal.h:633
@ kApiIndexedPropertyIndexOfCallbackTag
Definition: v8-internal.h:645
@ kApiIndexedPropertyEnumeratorCallbackTag
Definition: v8-internal.h:644
@ kIcuBreakIteratorWithTextTag
Definition: v8-internal.h:688
@ kExternalPointerFreeEntryTag
Definition: v8-internal.h:709
@ kFirstInterceptorInfoExternalPointerTag
Definition: v8-internal.h:630
@ kCFunctionTag
Definition: v8-internal.h:662
@ kLastManagedExternalPointerTag
Definition: v8-internal.h:701
@ kWaiterQueueNodeTag
Definition: v8-internal.h:603
@ kGenericManagedTag
Definition: v8-internal.h:670
@ kExternalPointerNullTag
Definition: v8-internal.h:592
@ kExternalStringResourceDataTag
Definition: v8-internal.h:605
@ kTemporalZonedDateTimeTag
Definition: v8-internal.h:696
@ kWasmStackMemoryTag
Definition: v8-internal.h:651
@ kLastManagedResourceTag
Definition: v8-internal.h:705
@ kFastApiExternalTypeTag
Definition: v8-internal.h:623
@ kExternalPointerZappedEntryTag
Definition: v8-internal.h:707
@ kApiNamedPropertyQueryCallbackTag
Definition: v8-internal.h:631
@ kFirstForeignExternalPointerTag
Definition: v8-internal.h:654
@ kTemporalPlainDateTimeTag
Definition: v8-internal.h:693
@ kIcuListFormatterTag
Definition: v8-internal.h:680
@ kDisplayNamesInternalTag
Definition: v8-internal.h:697
@ kFirstManagedResourceTag
Definition: v8-internal.h:668
@ kFirstManagedExternalPointerTag
Definition: v8-internal.h:669
@ kTemporalPlainTimeTag
Definition: v8-internal.h:692
@ kIcuPluralRulesTag
Definition: v8-internal.h:686
@ kFirstEmbedderDataTag
Definition: v8-internal.h:613
@ kApiIndexedPropertyQueryCallbackTag
Definition: v8-internal.h:638
@ kIcuLocaleTag
Definition: v8-internal.h:681
@ kMessageListenerTag
Definition: v8-internal.h:664
@ kApiIndexedPropertyDeleterCallbackTag
Definition: v8-internal.h:643
@ kTemporalDurationTag
Definition: v8-internal.h:689
@ kLastInterceptorInfoExternalPointerTag
Definition: v8-internal.h:646
@ kIcuRelativeDateTimeFormatterTag
Definition: v8-internal.h:684
@ kWasmWasmStreamingTag
Definition: v8-internal.h:671
@ kNativeContextMicrotaskQueueTag
Definition: v8-internal.h:610
@ kLastMaybeReadOnlyExternalPointerTag
Definition: v8-internal.h:649
@ kLastEmbedderDataTag
Definition: v8-internal.h:614
@ kArrayBufferExtensionTag
Definition: v8-internal.h:704
@ kIcuDateIntervalFormatTag
Definition: v8-internal.h:683
@ kCFunctionInfoTag
Definition: v8-internal.h:663
@ kFirstExternalPointerTag
Definition: v8-internal.h:591
@ kApiNamedPropertyEnumeratorCallbackTag
Definition: v8-internal.h:637
@ kFunctionTemplateInfoCallbackTag
Definition: v8-internal.h:625
@ kTemporalPlainDateTag
Definition: v8-internal.h:691
const int kSmiValueSize
Definition: v8-internal.h:191
constexpr ExternalPointerTagRange kAnyForeignExternalPointerTagRange(kFirstForeignExternalPointerTag, kLastForeignExternalPointerTag)
constexpr bool SmiValuesAre32Bits()
Definition: v8-internal.h:195
TagRange< ExternalPointerTag > ExternalPointerTagRange
Definition: v8-internal.h:714
constexpr IndirectPointerHandle kNullIndirectPointerHandle
Definition: v8-internal.h:798
uintptr_t Address
Definition: v8-internal.h:38
void PerformCastCheck(T *data)
Definition: v8-internal.h:1517
void PrintFunctionCallbackInfo(void *function_callback_info)
constexpr size_t kTrustedPointerTableReservationSize
Definition: v8-internal.h:820
uint32_t ExternalPointerHandle
Definition: v8-internal.h:357
const intptr_t kSmiTagMask
Definition: v8-internal.h:74
const int kHeapObjectTagSize
Definition: v8-internal.h:60
const int kSmiMaxValue
Definition: v8-internal.h:193
constexpr bool Is64()
Definition: v8-internal.h:196
constexpr bool kAllCodeObjectsLiveInTrustedSpace
Definition: v8-internal.h:896
const int kSmiTag
Definition: v8-internal.h:72
constexpr CodePointerHandle kNullCodePointerHandle
Definition: v8-internal.h:866
Address CppHeapPointer_t
Definition: v8-internal.h:385
constexpr CppHeapPointerHandle kNullCppHeapPointerHandle
Definition: v8-internal.h:389
constexpr int kGarbageCollectionReasonMaxValue
Definition: v8-internal.h:1528
constexpr int kCodePointerTableEntrySize
Definition: v8-internal.h:880
constexpr uint32_t kCodePointerHandleMarker
Definition: v8-internal.h:875
const int kSmiMinValue
Definition: v8-internal.h:192
constexpr int MB
Definition: v8-internal.h:42
constexpr uint64_t kExternalPointerShiftedTagMask
Definition: v8-internal.h:343
constexpr uint64_t kExternalPointerMarkBit
Definition: v8-internal.h:340
Address SandboxedPointer_t
Definition: v8-internal.h:216
const int kApiTaggedSize
Definition: v8-internal.h:175
constexpr bool PointerCompressionIsEnabled()
Definition: v8-internal.h:178
Definition: libplatform.h:15
Definition: v8-internal.h:1501
static void Perform(T *data)
Definition: v8-internal.h:912
Address * next
Definition: v8-internal.h:916
int level
Definition: v8-internal.h:918
Address * limit
Definition: v8-internal.h:917
int sealed_level
Definition: v8-internal.h:919
static constexpr uint32_t kSizeInBytes
Definition: v8-internal.h:913
void Initialize()
Definition: v8-internal.h:921
typename Iterator::iterator_concept iterator_concept
Definition: v8-internal.h:1587
Definition: v8-internal.h:1583
static constexpr bool IsValidSmi(uint64_t value)
Definition: v8-internal.h:127
static constexpr bool IsValidSmi(int64_t value)
Definition: v8-internal.h:120
static constexpr bool IsValidSmi(T value)
Definition: v8-internal.h:100
static constexpr int SmiToInt(Address value)
Definition: v8-internal.h:92
static constexpr bool IsValidSmi(T value)
Definition: v8-internal.h:150
static constexpr int SmiToInt(Address value)
Definition: v8-internal.h:142
Definition: v8-internal.h:77
Definition: v8-internal.h:485
constexpr size_t Size() const
Definition: v8-internal.h:512
constexpr bool IsEmpty() const
Definition: v8-internal.h:510
Tag last
Definition: v8-internal.h:543
Tag first
Definition: v8-internal.h:542
constexpr bool operator==(const TagRange other) const
Definition: v8-internal.h:532
constexpr bool Contains(Tag tag) const
Definition: v8-internal.h:520
constexpr TagRange()
Definition: v8-internal.h:507
constexpr TagRange(Tag tag)
Definition: v8-internal.h:503
constexpr size_t hash_value() const
Definition: v8-internal.h:536
constexpr TagRange(Tag first, Tag last)
Definition: v8-internal.h:491
constexpr bool Contains(TagRange tag_range) const
Definition: v8-internal.h:528
#define V8_EXTERNAL_POINTER_TAG_COUNT
Definition: v8-internal.h:426
#define V8_EMBEDDER_DATA_TAG_COUNT
Definition: v8-internal.h:421
#define V8_EXPORT
Definition: v8config.h:854
#define V8_INLINE
Definition: v8config.h:508
#define V8_DEPRECATE_SOON(message)
Definition: v8config.h:621
#define V8_LIKELY(condition)
Definition: v8config.h:668