5#ifndef INCLUDE_V8_INTERNAL_H_
6#define INCLUDE_V8_INTERNAL_H_
23#if __has_include(<version>)
26#if defined(__cpp_lib_three_way_comparison) && \
27 __cpp_lib_three_way_comparison >= 201711L && \
28 defined(__cpp_lib_concepts) && __cpp_lib_concepts >= 202002L
32#define V8_HAVE_SPACESHIP_OPERATOR 1
34#define V8_HAVE_SPACESHIP_OPERATOR 0
53static constexpr Address kNullAddress = 0;
55constexpr int KB = 1024;
56constexpr int MB =
KB * 1024;
57constexpr int GB =
MB * 1024;
58#ifdef V8_TARGET_ARCH_X64
59constexpr size_t TB =
size_t{
GB} * 1024;
90template <
size_t tagged_ptr_size>
109 return static_cast<int32_t
>(
static_cast<uint32_t
>(value)) >> shift_bits;
112 template <
class T,
typename std::enable_if_t<std::is_
integral_v<T> &&
113 std::is_
signed_v<T>>* =
nullptr>
118 return (
static_cast<uintptr_t
>(value) -
125 typename std::enable_if_t<std::is_integral_v<T> &&
126 std::is_unsigned_v<T>>* =
nullptr>
128 static_assert(kSmiMaxValue <= std::numeric_limits<uintptr_t>::max());
135 return (
static_cast<uint64_t
>(value) -
142 static_assert(kSmiMaxValue <= std::numeric_limits<uint64_t>::max());
159 return static_cast<int>(
static_cast<intptr_t
>(value) >> shift_bits);
162 template <
class T,
typename std::enable_if_t<std::is_
integral_v<T> &&
163 std::is_
signed_v<T>>* =
nullptr>
166 return std::numeric_limits<int32_t>::min() <= value &&
167 value <= std::numeric_limits<int32_t>::max();
171 typename std::enable_if_t<std::is_integral_v<T> &&
172 std::is_unsigned_v<T>>* =
nullptr>
174 return value <= std::numeric_limits<int32_t>::max();
178#ifdef V8_COMPRESS_POINTERS
181constexpr size_t kPtrComprCageReservationSize =
size_t{1} << 32;
182constexpr size_t kPtrComprCageBaseAlignment =
size_t{1} << 32;
186 "Pointer compression can be enabled only for 64-bit architectures");
196#ifdef V8_31BIT_SMIS_ON_64BIT_ARCH
206const int kSmiMinValue =
static_cast<int>(PlatformSmiTagging::kSmiMinValue);
207const int kSmiMaxValue =
static_cast<int>(PlatformSmiTagging::kSmiMaxValue);
221#ifdef V8_ENABLE_SANDBOX
232#ifdef V8_ENABLE_SANDBOX
235#if defined(V8_TARGET_OS_ANDROID)
239constexpr size_t kSandboxSizeLog2 = 37;
240#elif defined(V8_TARGET_OS_IOS)
245constexpr size_t kSandboxSizeLog2 = 34;
248constexpr size_t kSandboxSizeLog2 = 40;
250constexpr size_t kSandboxSize = 1ULL << kSandboxSizeLog2;
257constexpr size_t kSandboxAlignment = kPtrComprCageBaseAlignment;
263constexpr uint64_t kSandboxedPointerShift = 64 - kSandboxSizeLog2;
271constexpr size_t kSandboxGuardRegionSize = 32ULL *
GB + 4ULL *
GB;
273static_assert((kSandboxGuardRegionSize % kSandboxAlignment) == 0,
274 "The size of the guard regions around the sandbox must be a "
275 "multiple of its required alignment.");
287constexpr size_t kSandboxMinimumReservationSize = 8ULL *
GB;
289static_assert(kSandboxMinimumReservationSize > kPtrComprCageReservationSize,
290 "The minimum reservation size for a sandbox must be larger than "
291 "the pointer compression cage contained within it.");
297constexpr size_t kMaxSafeBufferSizeForSandbox = 32ULL *
GB - 1;
298static_assert(kMaxSafeBufferSizeForSandbox <= kSandboxGuardRegionSize,
299 "The maximum allowed buffer size must not be larger than the "
300 "sandbox's guard regions");
302constexpr size_t kBoundedSizeShift = 29;
303static_assert(1ULL << (64 - kBoundedSizeShift) ==
304 kMaxSafeBufferSizeForSandbox + 1,
305 "The maximum size of a BoundedSize must be synchronized with the "
306 "kMaxSafeBufferSizeForSandbox");
310#ifdef V8_COMPRESS_POINTERS
312#ifdef V8_TARGET_OS_ANDROID
318constexpr size_t kExternalPointerTableReservationSize = 256 *
MB;
324constexpr uint32_t kExternalPointerIndexShift = 7;
326constexpr size_t kExternalPointerTableReservationSize = 512 *
MB;
327constexpr uint32_t kExternalPointerIndexShift = 6;
331constexpr int kExternalPointerTableEntrySize = 8;
332constexpr int kExternalPointerTableEntrySizeLog2 = 3;
334 kExternalPointerTableReservationSize / kExternalPointerTableEntrySize;
336 "kExternalPointerTableReservationSize and "
337 "kExternalPointerIndexShift don't match");
368#ifdef V8_ENABLE_SANDBOX
388#ifdef V8_COMPRESS_POINTERS
401#ifdef V8_COMPRESS_POINTERS
405constexpr size_t kCppHeapPointerTableReservationSize =
406 kExternalPointerTableReservationSize;
407constexpr uint32_t kCppHeapPointerIndexShift = kExternalPointerIndexShift;
409constexpr int kCppHeapPointerTableEntrySize = 8;
410constexpr int kCppHeapPointerTableEntrySizeLog2 = 3;
412 kCppHeapPointerTableReservationSize / kCppHeapPointerTableEntrySize;
414 "kCppHeapPointerTableReservationSize and "
415 "kCppHeapPointerIndexShift don't match");
451template <
typename Tag>
453 static_assert(std::is_enum_v<Tag> &&
454 std::is_same_v<std::underlying_type_t<Tag>, uint16_t>,
455 "Tag parameter must be an enum with base type uint16_t");
474 constexpr size_t Size()
const {
486 return static_cast<uint32_t
>(tag) -
first <=
499 static_assert(std::is_same_v<std::underlying_type_t<Tag>, uint16_t>);
500 return (
static_cast<size_t>(
first) << 16) |
last;
677V8_INLINE static constexpr bool IsSharedExternalPointerType(
685V8_INLINE static constexpr bool IsMaybeReadOnlyExternalPointerType(
694V8_INLINE static constexpr bool IsManagedExternalPointerType(
706V8_INLINE static constexpr bool ExternalPointerCanBeEmpty(
770 "kTrustedPointerTableReservationSize and "
771 "kTrustedPointerHandleShift don't match");
819 "kCodePointerTableReservationSize and kCodePointerHandleShift don't match");
835 "Use GetCurrentIsolate() instead, which is guaranteed to return the same "
836 "isolate since https://crrev.com/c/6458560.")
852 return mapword ^ kMapWordXorMask;
859 static const int kHeapObjectMapOffset = 0;
861 static const int kStringResourceOffset =
866#ifdef V8_COMPRESS_POINTERS
867 static const int kJSAPIObjectWithEmbedderSlotsHeaderSize =
870 static const int kJSAPIObjectWithEmbedderSlotsHeaderSize =
876#ifdef V8_ENABLE_SANDBOX
877 static const int kEmbedderDataSlotExternalPointerOffset =
kApiTaggedSize;
879 static const int kEmbedderDataSlotExternalPointerOffset = 0;
882 static const int kStringRepresentationAndEncodingMask = 0x0f;
883 static const int kStringEncodingMask = 0x8;
884 static const int kExternalTwoByteRepresentationTag = 0x02;
885 static const int kExternalOneByteRepresentationTag = 0x0a;
887 static const uint32_t kNumIsolateDataSlots = 4;
889 static const int kNumberOfBooleanFlags = 6;
890 static const int kErrorMessageParamSize = 1;
891 static const int kTablesAlignmentPaddingSize = 1;
897 static const int kHandleScopeDataSize =
901 static const int kExternalPointerTableBasePointerOffset = 0;
902 static const int kSegmentedTableSegmentPoolSize = 4;
903 static const int kExternalPointerTableSize =
905 kSegmentedTableSegmentPoolSize *
sizeof(uint32_t);
906 static const int kTrustedPointerTableSize =
908 kSegmentedTableSegmentPoolSize *
sizeof(uint32_t);
909 static const int kTrustedPointerTableBasePointerOffset = 0;
912 static const int kIsolateCageBaseOffset = 0;
913 static const int kIsolateStackGuardOffset =
915 static const int kVariousBooleanFlagsOffset =
916 kIsolateStackGuardOffset + kStackGuardSize;
917 static const int kErrorMessageParamOffset =
918 kVariousBooleanFlagsOffset + kNumberOfBooleanFlags;
919 static const int kBuiltinTier0EntryTableOffset =
920 kErrorMessageParamOffset + kErrorMessageParamSize +
921 kTablesAlignmentPaddingSize + kRegExpStaticResultOffsetsVectorSize;
922 static const int kBuiltinTier0TableOffset =
923 kBuiltinTier0EntryTableOffset + kBuiltinTier0EntryTableSize;
924 static const int kNewAllocationInfoOffset =
925 kBuiltinTier0TableOffset + kBuiltinTier0TableSize;
926 static const int kOldAllocationInfoOffset =
927 kNewAllocationInfoOffset + kLinearAllocationAreaSize;
929 static const int kFastCCallAlignmentPaddingSize =
932 static const int kIsolateFastCCallCallerPcOffset =
933 kOldAllocationInfoOffset + kLinearAllocationAreaSize +
934 kFastCCallAlignmentPaddingSize;
935 static const int kIsolateFastCCallCallerFpOffset =
937 static const int kIsolateFastApiCallTargetOffset =
939 static const int kIsolateLongTaskStatsCounterOffset =
941 static const int kIsolateThreadLocalTopOffset =
943 static const int kIsolateHandleScopeDataOffset =
944 kIsolateThreadLocalTopOffset + kThreadLocalTopSize;
945 static const int kIsolateEmbedderDataOffset =
946 kIsolateHandleScopeDataOffset + kHandleScopeDataSize;
947#ifdef V8_COMPRESS_POINTERS
948 static const int kIsolateExternalPointerTableOffset =
950 static const int kIsolateSharedExternalPointerTableAddressOffset =
951 kIsolateExternalPointerTableOffset + kExternalPointerTableSize;
952 static const int kIsolateCppHeapPointerTableOffset =
954#ifdef V8_ENABLE_SANDBOX
955 static const int kIsolateTrustedCageBaseOffset =
956 kIsolateCppHeapPointerTableOffset + kExternalPointerTableSize;
957 static const int kIsolateTrustedPointerTableOffset =
959 static const int kIsolateSharedTrustedPointerTableAddressOffset =
960 kIsolateTrustedPointerTableOffset + kTrustedPointerTableSize;
961 static const int kIsolateTrustedPointerPublishingScopeOffset =
963 static const int kIsolateCodePointerTableBaseAddressOffset =
965 static const int kIsolateApiCallbackThunkArgumentOffset =
968 static const int kIsolateApiCallbackThunkArgumentOffset =
969 kIsolateCppHeapPointerTableOffset + kExternalPointerTableSize;
972 static const int kIsolateApiCallbackThunkArgumentOffset =
975 static const int kJSDispatchTableOffset =
977 static const int kIsolateRegexpExecVectorArgumentOffset =
979 static const int kContinuationPreservedEmbedderDataOffset =
981 static const int kIsolateRootsOffset =
985 static const int kDisallowGarbageCollectionAlign =
alignof(uint32_t);
986 static const int kDisallowGarbageCollectionSize =
sizeof(uint32_t);
988#if V8_STATIC_ROOTS_BOOL
991#define EXPORTED_STATIC_ROOTS_PTR_LIST(V) \
992 V(UndefinedValue, 0x11) \
995 V(FalseValue, 0x55) \
996 V(EmptyString, 0x49) \
997 V(TheHoleValue, 0x761)
999 using Tagged_t = uint32_t;
1000 struct StaticReadOnlyRoot {
1001#define DEF_ROOT(name, value) static constexpr Tagged_t k##name = value;
1002 EXPORTED_STATIC_ROOTS_PTR_LIST(DEF_ROOT)
1006 static constexpr Tagged_t kStringMapLowerBound = 0;
1007 static constexpr Tagged_t kStringMapUpperBound = 0x425;
1009#define PLUSONE(...) +1
1010 static constexpr size_t kNumberOfExportedStaticRoots =
1011 2 + EXPORTED_STATIC_ROOTS_PTR_LIST(PLUSONE);
1017 static const int kUndefinedValueRootIndex = 4;
1018 static const int kTheHoleValueRootIndex = 5;
1019 static const int kNullValueRootIndex = 6;
1020 static const int kTrueValueRootIndex = 7;
1021 static const int kFalseValueRootIndex = 8;
1022 static const int kEmptyStringRootIndex = 9;
1026 static const int kNodeStateMask = 0x3;
1027 static const int kNodeStateIsWeakValue = 2;
1029 static const int kFirstNonstringType = 0x80;
1030 static const int kOddballType = 0x83;
1031 static const int kForeignType = 0xcc;
1032 static const int kJSSpecialApiObjectType = 0x410;
1033 static const int kJSObjectType = 0x421;
1034 static const int kFirstJSApiObjectType = 0x422;
1035 static const int kLastJSApiObjectType = 0x80A;
1038 static const int kFirstEmbedderJSApiObjectType = 0;
1039 static const int kLastEmbedderJSApiObjectType =
1040 kLastJSApiObjectType - kFirstJSApiObjectType;
1042 static const int kUndefinedOddballKind = 4;
1043 static const int kNullOddballKind = 3;
1047 static const int kDontThrow = 0;
1048 static const int kThrowOnError = 1;
1049 static const int kInferShouldThrowMode = 2;
1053 static constexpr size_t kExternalAllocationSoftLimit = 64 * 1024 * 1024;
1055#ifdef V8_MAP_PACKING
1056 static const uintptr_t kMapWordMetadataMask = 0xffffULL << 48;
1058 static const uintptr_t kMapWordSignature = 0b10;
1063 static const int kMapWordXorMask = 0b11;
1068#ifdef V8_ENABLE_CHECKS
1069 CheckInitializedImpl(isolate);
1078 return PlatformSmiTagging::SmiToInt(value);
1082 return (value << (
kSmiTagSize + PlatformSmiTagging::kSmiShiftSize)) |
1087 return AddressToSmi(
static_cast<Address>(value));
1090 template <
typename T,
1091 typename std::enable_if_t<std::is_integral_v<T>>* =
nullptr>
1093 return AddressToSmi(
static_cast<Address>(value));
1096 template <
typename T,
1097 typename std::enable_if_t<std::is_integral_v<T>>* =
nullptr>
1099 return PlatformSmiTagging::IsValidSmi(value);
1102 template <
typename T,
1103 typename std::enable_if_t<std::is_integral_v<T>>* =
nullptr>
1105 if (
V8_LIKELY(PlatformSmiTagging::IsValidSmi(value))) {
1106 return {AddressToSmi(
static_cast<Address>(value))};
1111#if V8_STATIC_ROOTS_BOOL
1113 return static_cast<Tagged_t
>(obj) == constant;
1116 V8_INLINE static bool CheckInstanceMapRange(
Address obj, Tagged_t first_map,
1117 Tagged_t last_map) {
1118 auto map = ReadRawField<Tagged_t>(obj, kHeapObjectMapOffset);
1119#ifdef V8_MAP_PACKING
1120 map = UnpackMapWord(map);
1122 return map >= first_map && map <= last_map;
1127 Address map = ReadTaggedPointerField(obj, kHeapObjectMapOffset);
1128#ifdef V8_MAP_PACKING
1129 map = UnpackMapWord(map);
1131 return ReadRawField<uint16_t>(map, kMapInstanceTypeOffset);
1135 if (!HasHeapObjectTag(obj))
return kNullAddress;
1136 Address map = ReadTaggedPointerField(obj, kHeapObjectMapOffset);
1137#ifdef V8_MAP_PACKING
1138 map = UnpackMapWord(map);
1144 return SmiValue(ReadTaggedSignedField(obj, kOddballKindOffset));
1148 int representation = (instance_type & kStringRepresentationAndEncodingMask);
1149 return representation == kExternalTwoByteRepresentationTag;
1153 static_assert(kJSObjectType + 1 == kFirstJSApiObjectType);
1154 static_assert(kJSObjectType < kLastJSApiObjectType);
1155 static_assert(kFirstJSApiObjectType < kLastJSApiObjectType);
1157 return instance_type == kJSSpecialApiObjectType ||
1159 (
static_cast<unsigned>(
static_cast<unsigned>(instance_type) -
1160 static_cast<unsigned>(kJSObjectType)) <=
1161 static_cast<unsigned>(kLastJSApiObjectType - kJSObjectType));
1165 uint8_t* addr =
reinterpret_cast<uint8_t*
>(obj) + kNodeFlagsOffset;
1166 return *addr &
static_cast<uint8_t
>(1U << shift);
1170 uint8_t* addr =
reinterpret_cast<uint8_t*
>(obj) + kNodeFlagsOffset;
1171 uint8_t mask =
static_cast<uint8_t
>(1U << shift);
1172 *addr =
static_cast<uint8_t
>((*addr & ~mask) | (value << shift));
1176 uint8_t* addr =
reinterpret_cast<uint8_t*
>(obj) + kNodeFlagsOffset;
1177 return *addr & kNodeStateMask;
1181 uint8_t* addr =
reinterpret_cast<uint8_t*
>(obj) + kNodeFlagsOffset;
1182 *addr =
static_cast<uint8_t
>((*addr & ~kNodeStateMask) | value);
1189 *
reinterpret_cast<void**
>(addr) = data;
1196 return *
reinterpret_cast<void* const*
>(addr);
1201 reinterpret_cast<Address>(isolate) + kIsolateLongTaskStatsCounterOffset;
1202 ++(*
reinterpret_cast<size_t*
>(addr));
1206 Address addr =
reinterpret_cast<Address>(isolate) + kIsolateRootsOffset +
1208 return reinterpret_cast<Address*
>(addr);
1212#if V8_STATIC_ROOTS_BOOL
1214 reinterpret_cast<uintptr_t
>(isolate) + kIsolateCageBaseOffset);
1216#define DECOMPRESS_ROOT(name, ...) \
1217 case k##name##RootIndex: \
1218 return base + StaticReadOnlyRoot::k##name;
1219 EXPORTED_STATIC_ROOTS_PTR_LIST(DECOMPRESS_ROOT)
1220#undef DECOMPRESS_ROOT
1221#undef EXPORTED_STATIC_ROOTS_PTR_LIST
1226 return *GetRootSlot(isolate, index);
1229#ifdef V8_ENABLE_SANDBOX
1232 kIsolateExternalPointerTableOffset +
1233 kExternalPointerTableBasePointerOffset;
1234 return *
reinterpret_cast<Address**
>(addr);
1240 kIsolateSharedExternalPointerTableAddressOffset;
1241 addr = *
reinterpret_cast<Address*
>(addr);
1242 addr += kExternalPointerTableBasePointerOffset;
1243 return *
reinterpret_cast<Address**
>(addr);
1247 template <
typename T>
1250#ifdef V8_COMPRESS_POINTERS
1257 memcpy(&r,
reinterpret_cast<void*
>(addr),
sizeof(T));
1261 return *
reinterpret_cast<const T*
>(addr);
1266#ifdef V8_COMPRESS_POINTERS
1267 uint32_t value = ReadRawField<uint32_t>(heap_object_ptr, offset);
1268 Address base = GetPtrComprCageBaseFromOnHeapAddress(heap_object_ptr);
1269 return base +
static_cast<Address>(
static_cast<uintptr_t
>(value));
1271 return ReadRawField<Address>(heap_object_ptr, offset);
1277#ifdef V8_COMPRESS_POINTERS
1278 uint32_t value = ReadRawField<uint32_t>(heap_object_ptr, offset);
1279 return static_cast<Address>(
static_cast<uintptr_t
>(value));
1281 return ReadRawField<Address>(heap_object_ptr, offset);
1286 "Use GetCurrentIsolateForSandbox() instead, which is guaranteed to "
1287 "return the same isolate since https://crrev.com/c/6458560.")
1289#ifdef V8_ENABLE_SANDBOX
1290 return GetCurrentIsolate();
1302#ifdef V8_ENABLE_SANDBOX
1303 return GetCurrentIsolate();
1310 template <ExternalPo
interTagRange tag_range>
1314#ifdef V8_ENABLE_SANDBOX
1315 static_assert(!tag_range.IsEmpty());
1318 Address* table = IsSharedExternalPointerType(tag_range)
1319 ? GetSharedExternalPointerTableBase(isolate)
1320 : GetExternalPointerTableBase(isolate);
1322 ReadRawField<ExternalPointerHandle>(heap_object_ptr, offset);
1323 uint32_t index = handle >> kExternalPointerIndexShift;
1324 std::atomic<Address>* ptr =
1325 reinterpret_cast<std::atomic<Address>*
>(&table[index]);
1326 Address entry = std::atomic_load_explicit(ptr, std::memory_order_relaxed);
1329 if (
V8_LIKELY(tag_range.Contains(actual_tag))) {
1336 return ReadRawField<Address>(heap_object_ptr, offset);
1340#ifdef V8_COMPRESS_POINTERS
1342 return addr & -
static_cast<intptr_t
>(kPtrComprCageBaseAlignment);
1346 return static_cast<uint32_t
>(value);
1351 Address base = GetPtrComprCageBaseFromOnHeapAddress(heap_object_ptr);
1352 return base +
static_cast<Address>(
static_cast<uintptr_t
>(value));
1360template <
bool PerformCheck>
1379 !std::is_same_v<Data, std::remove_cv_t<T>>>::Perform(data);
1394 Heap*
heap()
const {
return heap_; }
1400 return a.heap_ == b.heap_;
1423template <
typename T>
1428 template <
typename HeapOrIsolateT>
1430 template <
typename U>
1433 using std::allocator<T>::allocate;
1434 using std::allocator<T>::deallocate;
1439template <
typename Iterator,
typename =
void>
1441template <
typename Iterator>
1443 Iterator, std::void_t<typename Iterator::iterator_concept>> =
true;
1445template <
typename Iterator,
typename =
void>
1447template <
typename Iterator>
1449 Iterator, std::void_t<typename Iterator::iterator_category>> =
true;
1454template <
typename Iterator,
typename =
void>
1457template <
typename Iterator>
1459 Iterator, std::enable_if_t<kHaveIteratorConcept<Iterator>>> {
1463template <
typename Iterator>
1465 Iterator, std::enable_if_t<kHaveIteratorCategory<Iterator> &&
1466 !kHaveIteratorConcept<Iterator>>> {
1472#if __has_include(<ranges>)
1473 using iterator_concept =
1474 typename std::iterator_traits<Iterator>::iterator_concept;
1482template <
typename Iterator,
typename ElementType =
void>
1486 std::is_void_v<ElementType> ||
1487 (std::is_convertible_v<typename std::iterator_traits<Iterator>::pointer,
1488 std::add_pointer_t<ElementType>> &&
1489 std::is_convertible_v<typename std::iterator_traits<Iterator>::reference,
1490 std::add_lvalue_reference_t<ElementType>>));
1493 typename std::iterator_traits<Iterator>::difference_type;
1495 std::conditional_t<std::is_void_v<ElementType>,
1496 typename std::iterator_traits<Iterator>::value_type,
1499 std::conditional_t<std::is_void_v<ElementType>,
1500 typename std::iterator_traits<Iterator>::pointer,
1501 std::add_pointer_t<ElementType>>;
1503 std::conditional_t<std::is_void_v<ElementType>,
1504 typename std::iterator_traits<Iterator>::reference,
1505 std::add_lvalue_reference_t<ElementType>>;
1507 typename std::iterator_traits<Iterator>::iterator_category;
1514 template <
typename OtherIterator,
typename OtherElementType,
1515 typename = std::enable_if_t<
1516 std::is_convertible_v<OtherIterator, Iterator>>>
1519 : it_(other.base()) {}
1523 if constexpr (std::is_pointer_v<Iterator>) {
1526 return it_.operator->();
1530 template <
typename OtherIterator,
typename OtherElementType>
1534 return it_ == other.base();
1536#if V8_HAVE_SPACESHIP_OPERATOR
1537 template <
typename OtherIterator,
typename OtherElementType>
1538 [[nodiscard]]
constexpr auto operator<=>(
1541 if constexpr (std::three_way_comparable_with<Iterator, OtherIterator>) {
1542 return it_ <=> other.base();
1543 }
else if constexpr (std::totally_ordered_with<Iterator, OtherIterator>) {
1544 if (it_ < other.base()) {
1545 return std::strong_ordering::less;
1547 return (it_ > other.base()) ? std::strong_ordering::greater
1548 : std::strong_ordering::equal;
1550 if (it_ < other.base()) {
1551 return std::partial_ordering::less;
1553 if (other.base() < it_) {
1554 return std::partial_ordering::greater;
1556 return (it_ == other.base()) ? std::partial_ordering::equivalent
1557 : std::partial_ordering::unordered;
1563 template <
typename OtherIterator,
typename OtherElementType>
1567 return it_ != other.base();
1570 template <
typename OtherIterator,
typename OtherElementType>
1574 return it_ < other.base();
1576 template <
typename OtherIterator,
typename OtherElementType>
1580 return it_ <= other.base();
1582 template <
typename OtherIterator,
typename OtherElementType>
1586 return it_ > other.base();
1588 template <
typename OtherIterator,
typename OtherElementType>
1592 return it_ >= other.base();
1636 template <
typename OtherIterator,
typename OtherElementType>
1640 return it_ - other.base();
1647 [[nodiscard]]
constexpr const Iterator&
base() const noexcept {
return it_; }
1664#ifdef V8_ENABLE_DIRECT_HANDLE
1665 static constexpr Address kTaggedNullAddress = 1;
1674 template <
typename T>
1682 template <
template <
typename T,
typename... Ms>
typename H,
typename T,
1685 return handle.template value<T>();
1688#ifdef V8_ENABLE_DIRECT_HANDLE
1690 template <
typename T>
1692 return reinterpret_cast<Address>(value);
1695 template <
typename T,
bool check_null = true,
typename S>
1697 if (check_null && slot ==
nullptr) {
1698 return reinterpret_cast<T*
>(kTaggedNullAddress);
1700 return *
reinterpret_cast<T**
>(slot);
1703 template <
typename T>
1708 template <
typename T>
1710 return reinterpret_cast<T*
>(repr);
1715 template <
typename T>
1717 return *
reinterpret_cast<const Address*
>(value);
1720 template <
typename T,
bool check_null = true,
typename S>
1722 return reinterpret_cast<T*
>(slot);
1725 template <
typename T>
1728 reinterpret_cast<const Address*
>(value));
1731 template <
typename T>
1733 return reinterpret_cast<T*
>(repr);
1754 template <
typename T1,
typename T2>
1756 if (lhs.IsEmpty())
return rhs.IsEmpty();
1757 if (rhs.IsEmpty())
return false;
1758 return lhs.ptr() == rhs.ptr();
Definition: v8-isolate.h:274
Definition: v8-internal.h:1384
Definition: v8-internal.h:1742
static bool EqualHandles(const T1 &lhs, const T2 &rhs)
Definition: v8-internal.h:1755
Definition: v8-internal.h:848
static Address LoadMap(Address obj)
Definition: v8-internal.h:1134
static bool IsExternalTwoByteString(int instance_type)
Definition: v8-internal.h:1147
static Address ReadExternalPointerField(v8::Isolate *isolate, Address heap_object_ptr, int offset)
Definition: v8-internal.h:1311
static constexpr bool HasHeapObjectTag(Address value)
Definition: v8-internal.h:1073
static Address GetRoot(v8::Isolate *isolate, int index)
Definition: v8-internal.h:1211
static uint8_t GetNodeFlag(Address *obj, int shift)
Definition: v8-internal.h:1164
static uint8_t GetNodeState(Address *obj)
Definition: v8-internal.h:1175
static constexpr Address AddressToSmi(Address value)
Definition: v8-internal.h:1081
static void CheckInitialized(v8::Isolate *isolate)
Definition: v8-internal.h:1067
static void UpdateNodeState(Address *obj, uint8_t value)
Definition: v8-internal.h:1180
static constexpr Address IntegralToSmi(T value)
Definition: v8-internal.h:1092
static constexpr bool IsValidSmi(T value)
Definition: v8-internal.h:1098
static constexpr bool CanHaveInternalField(int instance_type)
Definition: v8-internal.h:1152
static constexpr Address IntToSmi(int value)
Definition: v8-internal.h:1086
static void CheckInitializedImpl(v8::Isolate *isolate)
static void * GetEmbedderData(const v8::Isolate *isolate, uint32_t slot)
Definition: v8-internal.h:1192
static int GetInstanceType(Address obj)
Definition: v8-internal.h:1126
static Address ReadTaggedSignedField(Address heap_object_ptr, int offset)
Definition: v8-internal.h:1275
static Address ReadTaggedPointerField(Address heap_object_ptr, int offset)
Definition: v8-internal.h:1264
static void SetEmbedderData(v8::Isolate *isolate, uint32_t slot, void *data)
Definition: v8-internal.h:1185
static Address * GetRootSlot(v8::Isolate *isolate, int index)
Definition: v8-internal.h:1205
static constexpr int SmiValue(Address value)
Definition: v8-internal.h:1077
static void UpdateNodeFlag(Address *obj, bool value, int shift)
Definition: v8-internal.h:1169
static void IncrementLongTasksStatsCounter(v8::Isolate *isolate)
Definition: v8-internal.h:1199
static T ReadRawField(Address heap_object_ptr, int offset)
Definition: v8-internal.h:1248
static v8::Isolate * GetCurrentIsolate()
static v8::Isolate * GetCurrentIsolateForSandbox()
Definition: v8-internal.h:1301
static int GetOddballKind(Address obj)
Definition: v8-internal.h:1143
static constexpr std::optional< Address > TryIntegralToSmi(T value)
Definition: v8-internal.h:1104
Definition: v8-internal.h:1392
friend bool operator==(const StrongRootAllocatorBase &a, const StrongRootAllocatorBase &b)
Definition: v8-internal.h:1396
StrongRootAllocatorBase(Heap *heap)
Definition: v8-internal.h:1404
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:1394
Definition: v8-internal.h:1424
StrongRootAllocator(HeapOrIsolateT *)
Definition: v8-internal.h:1429
T value_type
Definition: v8-internal.h:1426
StrongRootAllocator(const StrongRootAllocator< U > &other) noexcept
Definition: v8-internal.h:1431
Definition: v8-internal.h:1656
static Address ValueAsAddress(const T *value)
Definition: v8-internal.h:1716
static T * ReprAsValue(InternalRepresentationType repr)
Definition: v8-internal.h:1732
internal::Address * InternalRepresentationType
Definition: v8-internal.h:1670
static T * SlotAsValue(S *slot)
Definition: v8-internal.h:1721
static T * HandleAsValue(const H< T, Ms... > &handle)
Definition: v8-internal.h:1684
static InternalRepresentationType ValueAsRepr(const T *value)
Definition: v8-internal.h:1726
static bool IsEmpty(T *value)
Definition: v8-internal.h:1675
static constexpr InternalRepresentationType kEmpty
Definition: v8-internal.h:1671
Definition: v8-internal.h:1483
constexpr WrappedIterator & operator-=(difference_type n) noexcept
Definition: v8-internal.h:1633
constexpr WrappedIterator operator--(int) noexcept
Definition: v8-internal.h:1610
constexpr WrappedIterator & operator+=(difference_type n) noexcept
Definition: v8-internal.h:1625
constexpr const Iterator & base() const noexcept
Definition: v8-internal.h:1647
std::conditional_t< std::is_void_v< ElementType >, typename std::iterator_traits< Iterator >::value_type, ElementType > value_type
Definition: v8-internal.h:1497
constexpr WrappedIterator & operator++() noexcept
Definition: v8-internal.h:1596
constexpr pointer operator->() const noexcept
Definition: v8-internal.h:1522
constexpr reference operator[](difference_type n) const noexcept
Definition: v8-internal.h:1642
typename std::iterator_traits< Iterator >::difference_type difference_type
Definition: v8-internal.h:1493
constexpr bool operator!=(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1564
constexpr bool operator>=(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1589
constexpr bool operator<(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1571
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:1505
constexpr WrappedIterator & operator--() noexcept
Definition: v8-internal.h:1606
constexpr WrappedIterator() noexcept=default
constexpr bool operator<=(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1577
constexpr WrappedIterator(const WrappedIterator< OtherIterator, OtherElementType > &other) noexcept
Definition: v8-internal.h:1517
constexpr bool operator>(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1583
typename std::iterator_traits< Iterator >::iterator_category iterator_category
Definition: v8-internal.h:1507
constexpr reference operator*() const noexcept
Definition: v8-internal.h:1521
constexpr auto operator-(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1637
friend constexpr WrappedIterator operator+(difference_type n, const WrappedIterator &x) noexcept
Definition: v8-internal.h:1621
constexpr WrappedIterator operator+(difference_type n) const noexcept
Definition: v8-internal.h:1615
constexpr WrappedIterator operator++(int) noexcept
Definition: v8-internal.h:1600
constexpr WrappedIterator operator-(difference_type n) const noexcept
Definition: v8-internal.h:1629
std::conditional_t< std::is_void_v< ElementType >, typename std::iterator_traits< Iterator >::pointer, std::add_pointer_t< ElementType > > pointer
Definition: v8-internal.h:1501
constexpr bool operator==(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1531
const intptr_t kHeapObjectTagMask
Definition: v8-internal.h:75
constexpr uint64_t kCppHeapPointerMarkBit
Definition: v8-internal.h:397
constexpr int kCodePointerTableEntrySizeLog2
Definition: v8-internal.h:814
constexpr bool kRuntimeGeneratedCodeObjectsLiveInTrustedSpace
Definition: v8-internal.h:826
internal::Isolate * IsolateFromNeverReadOnlySpaceObject(Address obj)
constexpr uint64_t kExternalPointerTagShift
Definition: v8-internal.h:347
IndirectPointerHandle TrustedPointerHandle
Definition: v8-internal.h:749
const int kApiSystemPointerSize
Definition: v8-internal.h:65
constexpr bool SandboxIsEnabled()
Definition: v8-internal.h:220
const int kApiDoubleSize
Definition: v8-internal.h:66
constexpr size_t kMaxCppHeapPointers
Definition: v8-internal.h:420
constexpr intptr_t kIntptrAllBitsSet
Definition: v8-internal.h:93
constexpr int GB
Definition: v8-internal.h:57
void VerifyHandleIsNonEmpty(bool is_empty)
const int kApiInt32Size
Definition: v8-internal.h:67
const int kForwardingTagSize
Definition: v8-internal.h:82
uint32_t CppHeapPointerHandle
Definition: v8-internal.h:382
const intptr_t kForwardingTagMask
Definition: v8-internal.h:83
void PrintPropertyCallbackInfo(void *property_callback_info)
constexpr ExternalPointerTagRange kAnyManagedResourceExternalPointerTag(kFirstManagedResourceTag, kLastManagedResourceTag)
IndirectPointerHandle CodePointerHandle
Definition: v8-internal.h:787
constexpr uint64_t kExternalPointerPayloadMask
Definition: v8-internal.h:354
const int kSmiTagSize
Definition: v8-internal.h:87
const int kApiInt64Size
Definition: v8-internal.h:68
constexpr ExternalPointerTagRange kAnyExternalPointerTagRange(kFirstExternalPointerTag, kLastExternalPointerTag)
constexpr uint64_t kExternalPointerTagMask
Definition: v8-internal.h:348
constexpr int kCodePointerTableEntryCodeObjectOffset
Definition: v8-internal.h:822
constexpr int kTrustedPointerTableEntrySizeLog2
Definition: v8-internal.h:766
constexpr int kTrustedPointerTableEntrySize
Definition: v8-internal.h:765
constexpr uint64_t kCppHeapPointerPayloadShift
Definition: v8-internal.h:399
constexpr ExternalPointer_t kNullExternalPointer
Definition: v8-internal.h:374
Address ExternalPointer_t
Definition: v8-internal.h:371
uint32_t IndirectPointerHandle
Definition: v8-internal.h:729
constexpr CppHeapPointer_t kNullCppHeapPointer
Definition: v8-internal.h:394
constexpr ExternalPointerTagRange kAnySharedExternalPointerTagRange(kFirstSharedExternalPointerTag, kLastSharedExternalPointerTag)
const int kApiSizetSize
Definition: v8-internal.h:69
constexpr uint64_t kExternalPointerTagAndMarkbitMask
Definition: v8-internal.h:353
constexpr int kCodePointerTableEntryEntrypointOffset
Definition: v8-internal.h:821
constexpr size_t kMaxExternalPointers
Definition: v8-internal.h:342
constexpr size_t kCodePointerTableReservationSize
Definition: v8-internal.h:792
constexpr TrustedPointerHandle kNullTrustedPointerHandle
Definition: v8-internal.h:761
const int kWeakHeapObjectTag
Definition: v8-internal.h:73
constexpr ExternalPointerHandle kNullExternalPointerHandle
Definition: v8-internal.h:375
constexpr ExternalPointerTagRange kAnyMaybeReadOnlyExternalPointerTagRange(kFirstMaybeReadOnlyExternalPointerTag, kLastMaybeReadOnlyExternalPointerTag)
constexpr uintptr_t kUintptrAllBitsSet
Definition: v8-internal.h:94
const int kForwardingTag
Definition: v8-internal.h:81
const intptr_t kHeapObjectReferenceTagMask
Definition: v8-internal.h:76
constexpr bool SmiValuesAre31Bits()
Definition: v8-internal.h:208
constexpr size_t kMaxTrustedPointers
Definition: v8-internal.h:767
bool ShouldThrowOnError(internal::Isolate *isolate)
constexpr uint64_t kCppHeapPointerTagShift
Definition: v8-internal.h:398
constexpr ExternalPointerTagRange kAnyInterceptorInfoExternalPointerTagRange(kFirstInterceptorInfoExternalPointerTag, kLastInterceptorInfoExternalPointerTag)
constexpr int KB
Definition: v8-internal.h:55
constexpr bool kBuiltinCodeObjectsLiveInTrustedSpace
Definition: v8-internal.h:827
constexpr uint32_t kTrustedPointerHandleShift
Definition: v8-internal.h:758
constexpr uint32_t kCodePointerHandleShift
Definition: v8-internal.h:796
constexpr ExternalPointerTagRange kAnyManagedExternalPointerTagRange(kFirstManagedExternalPointerTag, kLastManagedExternalPointerTag)
const int kHeapObjectTag
Definition: v8-internal.h:72
const int kSmiShiftSize
Definition: v8-internal.h:204
constexpr size_t kMaxCodePointers
Definition: v8-internal.h:815
constexpr bool kHaveIteratorCategory
Definition: v8-internal.h:1446
SmiTagging< kApiTaggedSize > PlatformSmiTagging
Definition: v8-internal.h:199
ExternalPointerTag
Definition: v8-internal.h:552
@ kLastForeignExternalPointerTag
Definition: v8-internal.h:642
@ kApiIndexedPropertyDescriptorCallbackTag
Definition: v8-internal.h:595
@ kGenericForeignTag
Definition: v8-internal.h:608
@ kFirstMaybeReadOnlyExternalPointerTag
Definition: v8-internal.h:578
@ kTemporalInstantTag
Definition: v8-internal.h:638
@ kExternalPointerEvacuationEntryTag
Definition: v8-internal.h:650
@ kFirstSharedExternalPointerTag
Definition: v8-internal.h:564
@ kApiNamedPropertyDefinerCallbackTag
Definition: v8-internal.h:589
@ kLastSharedExternalPointerTag
Definition: v8-internal.h:568
@ kD8WorkerTag
Definition: v8-internal.h:640
@ kApiIndexedPropertySetterCallbackTag
Definition: v8-internal.h:594
@ kWasmManagedDataTag
Definition: v8-internal.h:626
@ kLastExternalPointerTag
Definition: v8-internal.h:653
@ kIcuBreakIteratorTag
Definition: v8-internal.h:628
@ kMicrotaskCallbackDataTag
Definition: v8-internal.h:614
@ kWasmNativeModuleTag
Definition: v8-internal.h:627
@ kApiIndexedPropertyGetterCallbackTag
Definition: v8-internal.h:593
@ kApiNamedPropertyDescriptorCallbackTag
Definition: v8-internal.h:588
@ kAccessorInfoGetterTag
Definition: v8-internal.h:580
@ kIcuCollatorTag
Definition: v8-internal.h:637
@ kIcuSimpleDateFormatTag
Definition: v8-internal.h:632
@ kApiIndexedPropertyDefinerCallbackTag
Definition: v8-internal.h:596
@ kSyntheticModuleTag
Definition: v8-internal.h:612
@ kD8ModuleEmbedderDataTag
Definition: v8-internal.h:641
@ kExternalStringResourceTag
Definition: v8-internal.h:566
@ kWasmFuncDataTag
Definition: v8-internal.h:625
@ kExternalObjectValueTag
Definition: v8-internal.h:577
@ kWaiterQueueForeignTag
Definition: v8-internal.h:618
@ kAccessorInfoSetterTag
Definition: v8-internal.h:581
@ kApiNamedPropertyDeleterCallbackTag
Definition: v8-internal.h:590
@ kApiAccessCheckCallbackTag
Definition: v8-internal.h:610
@ kApiAbortScriptExecutionCallbackTag
Definition: v8-internal.h:611
@ kMicrotaskCallbackTag
Definition: v8-internal.h:613
@ kIcuLocalizedNumberFormatterTag
Definition: v8-internal.h:635
@ kApiNamedPropertyGetterCallbackTag
Definition: v8-internal.h:586
@ kApiNamedPropertySetterCallbackTag
Definition: v8-internal.h:587
@ kApiIndexedPropertyEnumeratorCallbackTag
Definition: v8-internal.h:598
@ kExternalPointerFreeEntryTag
Definition: v8-internal.h:651
@ kFirstInterceptorInfoExternalPointerTag
Definition: v8-internal.h:584
@ kCFunctionTag
Definition: v8-internal.h:615
@ kIcuUnicodeStringTag
Definition: v8-internal.h:629
@ kLastManagedExternalPointerTag
Definition: v8-internal.h:643
@ kWaiterQueueNodeTag
Definition: v8-internal.h:565
@ kGenericManagedTag
Definition: v8-internal.h:623
@ kExternalPointerNullTag
Definition: v8-internal.h:554
@ kExternalStringResourceDataTag
Definition: v8-internal.h:567
@ kWasmStackMemoryTag
Definition: v8-internal.h:604
@ kLastManagedResourceTag
Definition: v8-internal.h:647
@ kExternalPointerZappedEntryTag
Definition: v8-internal.h:649
@ kApiNamedPropertyQueryCallbackTag
Definition: v8-internal.h:585
@ kEmbedderDataSlotPayloadTag
Definition: v8-internal.h:573
@ kFirstForeignExternalPointerTag
Definition: v8-internal.h:607
@ kIcuListFormatterTag
Definition: v8-internal.h:630
@ kDisplayNamesInternalTag
Definition: v8-internal.h:639
@ kFirstManagedResourceTag
Definition: v8-internal.h:621
@ kFirstManagedExternalPointerTag
Definition: v8-internal.h:622
@ kIcuPluralRulesTag
Definition: v8-internal.h:636
@ kApiIndexedPropertyQueryCallbackTag
Definition: v8-internal.h:592
@ kIcuLocaleTag
Definition: v8-internal.h:631
@ kMessageListenerTag
Definition: v8-internal.h:617
@ kApiIndexedPropertyDeleterCallbackTag
Definition: v8-internal.h:597
@ kLastInterceptorInfoExternalPointerTag
Definition: v8-internal.h:599
@ kIcuRelativeDateTimeFormatterTag
Definition: v8-internal.h:634
@ kWasmWasmStreamingTag
Definition: v8-internal.h:624
@ kNativeContextMicrotaskQueueTag
Definition: v8-internal.h:572
@ kLastMaybeReadOnlyExternalPointerTag
Definition: v8-internal.h:602
@ kArrayBufferExtensionTag
Definition: v8-internal.h:646
@ kIcuDateIntervalFormatTag
Definition: v8-internal.h:633
@ kCFunctionInfoTag
Definition: v8-internal.h:616
@ kFirstExternalPointerTag
Definition: v8-internal.h:553
@ kApiNamedPropertyEnumeratorCallbackTag
Definition: v8-internal.h:591
@ kFunctionTemplateInfoCallbackTag
Definition: v8-internal.h:579
const int kSmiValueSize
Definition: v8-internal.h:205
constexpr ExternalPointerTagRange kAnyForeignExternalPointerTagRange(kFirstForeignExternalPointerTag, kLastForeignExternalPointerTag)
constexpr bool SmiValuesAre32Bits()
Definition: v8-internal.h:209
TagRange< ExternalPointerTag > ExternalPointerTagRange
Definition: v8-internal.h:656
constexpr IndirectPointerHandle kNullIndirectPointerHandle
Definition: v8-internal.h:732
uintptr_t Address
Definition: v8-internal.h:52
void PerformCastCheck(T *data)
Definition: v8-internal.h:1377
void PrintFunctionCallbackInfo(void *function_callback_info)
constexpr size_t kTrustedPointerTableReservationSize
Definition: v8-internal.h:754
uint32_t ExternalPointerHandle
Definition: v8-internal.h:363
const intptr_t kSmiTagMask
Definition: v8-internal.h:88
const int kHeapObjectTagSize
Definition: v8-internal.h:74
const int kSmiMaxValue
Definition: v8-internal.h:207
constexpr bool Is64()
Definition: v8-internal.h:210
constexpr bool kAllCodeObjectsLiveInTrustedSpace
Definition: v8-internal.h:828
const int kSmiTag
Definition: v8-internal.h:86
constexpr CodePointerHandle kNullCodePointerHandle
Definition: v8-internal.h:799
Address CppHeapPointer_t
Definition: v8-internal.h:391
constexpr CppHeapPointerHandle kNullCppHeapPointerHandle
Definition: v8-internal.h:395
constexpr int kGarbageCollectionReasonMaxValue
Definition: v8-internal.h:1388
constexpr int kCodePointerTableEntrySize
Definition: v8-internal.h:813
constexpr uint32_t kCodePointerHandleMarker
Definition: v8-internal.h:808
const int kSmiMinValue
Definition: v8-internal.h:206
constexpr bool kHaveIteratorConcept
Definition: v8-internal.h:1440
constexpr int MB
Definition: v8-internal.h:56
constexpr uint64_t kExternalPointerShiftedTagMask
Definition: v8-internal.h:349
constexpr uint64_t kExternalPointerMarkBit
Definition: v8-internal.h:346
Address SandboxedPointer_t
Definition: v8-internal.h:230
const int kApiTaggedSize
Definition: v8-internal.h:189
constexpr bool PointerCompressionIsEnabled()
Definition: v8-internal.h:192
Definition: libplatform.h:15
Definition: v8-internal.h:1361
static void Perform(T *data)
typename Iterator::iterator_concept iterator_concept
Definition: v8-internal.h:1460
Definition: v8-internal.h:1455
static constexpr bool IsValidSmi(uint64_t value)
Definition: v8-internal.h:141
static constexpr bool IsValidSmi(int64_t value)
Definition: v8-internal.h:134
static constexpr bool IsValidSmi(T value)
Definition: v8-internal.h:114
static constexpr int SmiToInt(Address value)
Definition: v8-internal.h:106
static constexpr bool IsValidSmi(T value)
Definition: v8-internal.h:164
static constexpr int SmiToInt(Address value)
Definition: v8-internal.h:156
Definition: v8-internal.h:91
Definition: v8-internal.h:452
constexpr size_t Size() const
Definition: v8-internal.h:474
constexpr bool IsEmpty() const
Definition: v8-internal.h:472
const Tag last
Definition: v8-internal.h:505
constexpr bool operator==(const TagRange other) const
Definition: v8-internal.h:494
constexpr bool Contains(Tag tag) const
Definition: v8-internal.h:482
const Tag first
Definition: v8-internal.h:504
constexpr TagRange()
Definition: v8-internal.h:469
constexpr TagRange(Tag tag)
Definition: v8-internal.h:465
constexpr size_t hash_value() const
Definition: v8-internal.h:498
constexpr TagRange(Tag first, Tag last)
Definition: v8-internal.h:458
constexpr bool Contains(TagRange tag_range) const
Definition: v8-internal.h:490
#define V8_EXPORT
Definition: v8config.h:800
#define V8_INLINE
Definition: v8config.h:500
#define V8_DEPRECATE_SOON(message)
Definition: v8config.h:614
#define V8_LIKELY(condition)
Definition: v8config.h:661