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");
427#define V8_EMBEDDER_DATA_TAG_COUNT 15
456template <
typename Tag>
458 static_assert(std::is_enum_v<Tag> &&
459 std::is_same_v<std::underlying_type_t<Tag>, uint16_t>,
460 "Tag parameter must be an enum with base type uint16_t");
479 constexpr size_t Size()
const {
491 return static_cast<uint32_t
>(tag) -
first <=
504 static_assert(std::is_same_v<std::underlying_type_t<Tag>, uint16_t>);
505 return (
static_cast<size_t>(
first) << 16) |
last;
692V8_INLINE static constexpr bool IsSharedExternalPointerType(
700V8_INLINE static constexpr bool IsMaybeReadOnlyExternalPointerType(
709V8_INLINE static constexpr bool IsManagedExternalPointerType(
721V8_INLINE static constexpr bool ExternalPointerCanBeEmpty(
786 "kTrustedPointerTableReservationSize and "
787 "kTrustedPointerHandleShift don't match");
835 "kCodePointerTableReservationSize and kCodePointerHandleShift don't match");
851 "Use GetCurrentIsolate() instead, which is guaranteed to return the same "
852 "isolate since https://crrev.com/c/6458560.")
861 static constexpr uint32_t kSizeInBytes =
870 next = limit =
nullptr;
871 sealed_level = level = 0;
886 return mapword ^ kMapWordXorMask;
900#ifdef V8_COMPRESS_POINTERS
910#ifdef V8_ENABLE_SANDBOX
983#ifdef V8_COMPRESS_POINTERS
984 static const int kIsolateExternalPointerTableOffset =
986 static const int kIsolateSharedExternalPointerTableAddressOffset =
988 static const int kIsolateCppHeapPointerTableOffset =
990#ifdef V8_ENABLE_SANDBOX
991 static const int kIsolateTrustedCageBaseOffset =
993 static const int kIsolateTrustedPointerTableOffset =
995 static const int kIsolateSharedTrustedPointerTableAddressOffset =
997 static const int kIsolateTrustedPointerPublishingScopeOffset =
999 static const int kIsolateCodePointerTableBaseAddressOffset =
1024#if V8_STATIC_ROOTS_BOOL
1027#define EXPORTED_STATIC_ROOTS_PTR_LIST(V) \
1028 V(UndefinedValue, 0x11) \
1029 V(NullValue, 0x2d) \
1030 V(TrueValue, 0x71) \
1031 V(FalseValue, 0x55) \
1032 V(EmptyString, 0x49) \
1035 V(TheHoleValue, kBuildDependentTheHoleValue)
1037 using Tagged_t = uint32_t;
1038 struct StaticReadOnlyRoot {
1039#ifdef V8_ENABLE_WEBASSEMBLY
1040 static constexpr Tagged_t kBuildDependentTheHoleValue = 0x20001;
1042#ifdef V8_INTL_SUPPORT
1043 static constexpr Tagged_t kBuildDependentTheHoleValue = 0x6559;
1045 static constexpr Tagged_t kBuildDependentTheHoleValue = 0x58bd;
1049#define DEF_ROOT(name, value) static constexpr Tagged_t k##name = value;
1050 EXPORTED_STATIC_ROOTS_PTR_LIST(DEF_ROOT)
1054 static constexpr Tagged_t kStringMapLowerBound = 0;
1055 static constexpr Tagged_t kStringMapUpperBound = 0x425;
1057#define PLUSONE(...) +1
1058 static constexpr size_t kNumberOfExportedStaticRoots =
1059 2 + EXPORTED_STATIC_ROOTS_PTR_LIST(PLUSONE);
1103#ifdef V8_MAP_PACKING
1104 static const uintptr_t kMapWordMetadataMask = 0xffffULL << 48;
1106 static const uintptr_t kMapWordSignature = 0b10;
1111 static const int kMapWordXorMask = 0b11;
1116#ifdef V8_ENABLE_CHECKS
1126 return PlatformSmiTagging::SmiToInt(value);
1130 return (value << (
kSmiTagSize + PlatformSmiTagging::kSmiShiftSize)) |
1138 template <
typename T,
1139 typename std::enable_if_t<std::is_integral_v<T>>* =
nullptr>
1144 template <
typename T,
1145 typename std::enable_if_t<std::is_integral_v<T>>* =
nullptr>
1147 return PlatformSmiTagging::IsValidSmi(value);
1150 template <
typename T,
1151 typename std::enable_if_t<std::is_integral_v<T>>* =
nullptr>
1153 if (
V8_LIKELY(PlatformSmiTagging::IsValidSmi(value))) {
1159#if V8_STATIC_ROOTS_BOOL
1161 return static_cast<Tagged_t
>(obj) == constant;
1164 V8_INLINE static bool CheckInstanceMapRange(
Address obj, Tagged_t first_map,
1165 Tagged_t last_map) {
1167#ifdef V8_MAP_PACKING
1168 map = UnpackMapWord(map);
1170 return map >= first_map && map <= last_map;
1176#ifdef V8_MAP_PACKING
1177 map = UnpackMapWord(map);
1185#ifdef V8_MAP_PACKING
1186 map = UnpackMapWord(map);
1207 (
static_cast<unsigned>(
static_cast<unsigned>(instance_type) -
1214 return *addr &
static_cast<uint8_t
>(1U << shift);
1219 uint8_t mask =
static_cast<uint8_t
>(1U << shift);
1220 *addr =
static_cast<uint8_t
>((*addr & ~mask) | (value << shift));
1230 *addr =
static_cast<uint8_t
>((*addr & ~kNodeStateMask) | value);
1237 *
reinterpret_cast<void**
>(addr) = data;
1244 return *
reinterpret_cast<void* const*
>(addr);
1256 ++(*
reinterpret_cast<size_t*
>(addr));
1262 return reinterpret_cast<Address*
>(addr);
1266#if V8_STATIC_ROOTS_BOOL
1270#define DECOMPRESS_ROOT(name, ...) \
1271 case k##name##RootIndex: \
1272 return base + StaticReadOnlyRoot::k##name;
1273 EXPORTED_STATIC_ROOTS_PTR_LIST(DECOMPRESS_ROOT)
1274#undef DECOMPRESS_ROOT
1275#undef EXPORTED_STATIC_ROOTS_PTR_LIST
1283#ifdef V8_ENABLE_SANDBOX
1286 kIsolateExternalPointerTableOffset +
1288 return *
reinterpret_cast<Address**
>(addr);
1294 kIsolateSharedExternalPointerTableAddressOffset;
1295 addr = *
reinterpret_cast<Address*
>(addr);
1297 return *
reinterpret_cast<Address**
>(addr);
1301 template <
typename T>
1304#ifdef V8_COMPRESS_POINTERS
1311 memcpy(&r,
reinterpret_cast<void*
>(addr),
sizeof(T));
1315 return *
reinterpret_cast<const T*
>(addr);
1320#ifdef V8_COMPRESS_POINTERS
1321 uint32_t value = ReadRawField<uint32_t>(heap_object_ptr, offset);
1322 Address base = GetPtrComprCageBaseFromOnHeapAddress(heap_object_ptr);
1323 return base +
static_cast<Address>(
static_cast<uintptr_t
>(value));
1325 return ReadRawField<Address>(heap_object_ptr, offset);
1331#ifdef V8_COMPRESS_POINTERS
1332 uint32_t value = ReadRawField<uint32_t>(heap_object_ptr, offset);
1333 return static_cast<Address>(
static_cast<uintptr_t
>(value));
1335 return ReadRawField<Address>(heap_object_ptr, offset);
1344#ifdef V8_ENABLE_SANDBOX
1352 template <ExternalPo
interTagRange tag_range>
1356#ifdef V8_ENABLE_SANDBOX
1357 static_assert(!tag_range.IsEmpty());
1360 Address* table = IsSharedExternalPointerType(tag_range)
1361 ? GetSharedExternalPointerTableBase(isolate)
1362 : GetExternalPointerTableBase(isolate);
1364 ReadRawField<ExternalPointerHandle>(heap_object_ptr, offset);
1365 uint32_t index = handle >> kExternalPointerIndexShift;
1366 std::atomic<Address>* ptr =
1367 reinterpret_cast<std::atomic<Address>*
>(&table[index]);
1368 Address entry = std::atomic_load_explicit(ptr, std::memory_order_relaxed);
1371 if (
V8_LIKELY(tag_range.Contains(actual_tag))) {
1378 return ReadRawField<Address>(heap_object_ptr, offset);
1385#ifdef V8_ENABLE_SANDBOX
1388 Address* table = IsSharedExternalPointerType(tag_range)
1389 ? GetSharedExternalPointerTableBase(isolate)
1390 : GetExternalPointerTableBase(isolate);
1392 ReadRawField<ExternalPointerHandle>(heap_object_ptr, offset);
1393 uint32_t index = handle >> kExternalPointerIndexShift;
1394 std::atomic<Address>* ptr =
1395 reinterpret_cast<std::atomic<Address>*
>(&table[index]);
1396 Address entry = std::atomic_load_explicit(ptr, std::memory_order_relaxed);
1406 return ReadRawField<Address>(heap_object_ptr, offset);
1410#ifdef V8_COMPRESS_POINTERS
1412 return addr & -
static_cast<intptr_t
>(kPtrComprCageBaseAlignment);
1416 return static_cast<uint32_t
>(value);
1421 Address base = GetPtrComprCageBaseFromOnHeapAddress(heap_object_ptr);
1422 return base +
static_cast<Address>(
static_cast<uintptr_t
>(value));
1430template <
bool PerformCheck>
1449 !std::is_same_v<Data, std::remove_cv_t<T>>>::Perform(data);
1464 Heap*
heap()
const {
return heap_; }
1470 return a.heap_ == b.heap_;
1493template <
typename T>
1498 template <
typename HeapOrIsolateT>
1500 template <
typename U>
1503 using std::allocator<T>::allocate;
1504 using std::allocator<T>::deallocate;
1509template <
typename Iterator,
typename =
void>
1511template <
typename Iterator>
1513 Iterator, std::void_t<typename Iterator::iterator_concept>> =
true;
1515template <
typename Iterator,
typename =
void>
1517template <
typename Iterator>
1519 Iterator, std::void_t<typename Iterator::iterator_category>> =
true;
1524template <
typename Iterator,
typename =
void>
1527template <
typename Iterator>
1529 Iterator, std::enable_if_t<kHaveIteratorConcept<Iterator>>> {
1533template <
typename Iterator>
1535 Iterator, std::enable_if_t<kHaveIteratorCategory<Iterator> &&
1536 !kHaveIteratorConcept<Iterator>>> {
1542#if __has_include(<ranges>)
1543 using iterator_concept =
1544 typename std::iterator_traits<Iterator>::iterator_concept;
1552template <
typename Iterator,
typename ElementType =
void>
1556 std::is_void_v<ElementType> ||
1557 (std::is_convertible_v<typename std::iterator_traits<Iterator>::pointer,
1558 std::add_pointer_t<ElementType>> &&
1559 std::is_convertible_v<typename std::iterator_traits<Iterator>::reference,
1560 std::add_lvalue_reference_t<ElementType>>));
1563 typename std::iterator_traits<Iterator>::difference_type;
1565 std::conditional_t<std::is_void_v<ElementType>,
1566 typename std::iterator_traits<Iterator>::value_type,
1569 std::conditional_t<std::is_void_v<ElementType>,
1570 typename std::iterator_traits<Iterator>::pointer,
1571 std::add_pointer_t<ElementType>>;
1573 std::conditional_t<std::is_void_v<ElementType>,
1574 typename std::iterator_traits<Iterator>::reference,
1575 std::add_lvalue_reference_t<ElementType>>;
1577 typename std::iterator_traits<Iterator>::iterator_category;
1584 template <
typename OtherIterator,
typename OtherElementType,
1585 typename = std::enable_if_t<
1586 std::is_convertible_v<OtherIterator, Iterator>>>
1589 : it_(other.base()) {}
1593 if constexpr (std::is_pointer_v<Iterator>) {
1596 return it_.operator->();
1600 template <
typename OtherIterator,
typename OtherElementType>
1604 return it_ == other.base();
1606#if V8_HAVE_SPACESHIP_OPERATOR
1607 template <
typename OtherIterator,
typename OtherElementType>
1608 [[nodiscard]]
constexpr auto operator<=>(
1611 if constexpr (std::three_way_comparable_with<Iterator, OtherIterator>) {
1612 return it_ <=> other.base();
1613 }
else if constexpr (std::totally_ordered_with<Iterator, OtherIterator>) {
1614 if (it_ < other.base()) {
1615 return std::strong_ordering::less;
1617 return (it_ > other.base()) ? std::strong_ordering::greater
1618 : std::strong_ordering::equal;
1620 if (it_ < other.base()) {
1621 return std::partial_ordering::less;
1623 if (other.base() < it_) {
1624 return std::partial_ordering::greater;
1626 return (it_ == other.base()) ? std::partial_ordering::equivalent
1627 : std::partial_ordering::unordered;
1633 template <
typename OtherIterator,
typename OtherElementType>
1637 return it_ != other.base();
1640 template <
typename OtherIterator,
typename OtherElementType>
1644 return it_ < other.base();
1646 template <
typename OtherIterator,
typename OtherElementType>
1650 return it_ <= other.base();
1652 template <
typename OtherIterator,
typename OtherElementType>
1656 return it_ > other.base();
1658 template <
typename OtherIterator,
typename OtherElementType>
1662 return it_ >= other.base();
1706 template <
typename OtherIterator,
typename OtherElementType>
1710 return it_ - other.base();
1717 [[nodiscard]]
constexpr const Iterator&
base() const noexcept {
return it_; }
1734#ifdef V8_ENABLE_DIRECT_HANDLE
1735 static constexpr Address kTaggedNullAddress = 1;
1744 template <
typename T>
1752 template <
template <
typename T,
typename... Ms>
typename H,
typename T,
1755 return handle.template value<T>();
1758#ifdef V8_ENABLE_DIRECT_HANDLE
1760 template <
typename T>
1762 return reinterpret_cast<Address>(value);
1765 template <
typename T,
bool check_null = true,
typename S>
1767 if (check_null && slot ==
nullptr) {
1768 return reinterpret_cast<T*
>(kTaggedNullAddress);
1770 return *
reinterpret_cast<T**
>(slot);
1773 template <
typename T>
1778 template <
typename T>
1780 return reinterpret_cast<T*
>(repr);
1785 template <
typename T>
1787 return *
reinterpret_cast<const Address*
>(value);
1790 template <
typename T,
bool check_null = true,
typename S>
1792 return reinterpret_cast<T*
>(slot);
1795 template <
typename T>
1798 reinterpret_cast<const Address*
>(value));
1801 template <
typename T>
1803 return reinterpret_cast<T*
>(repr);
1824 template <
typename T1,
typename T2>
1826 if (lhs.IsEmpty())
return rhs.IsEmpty();
1827 if (rhs.IsEmpty())
return false;
1828 return lhs.ptr() == rhs.ptr();
Definition: v8-isolate.h:290
Definition: v8-internal.h:1454
Definition: v8-internal.h:1812
static bool EqualHandles(const T1 &lhs, const T2 &rhs)
Definition: v8-internal.h:1825
Definition: v8-internal.h:882
static Address LoadMap(Address obj)
Definition: v8-internal.h:1182
static constexpr size_t kExternalAllocationSoftLimit
Definition: v8-internal.h:1101
static bool IsExternalTwoByteString(int instance_type)
Definition: v8-internal.h:1195
static const int kIsolateCageBaseOffset
Definition: v8-internal.h:946
static const int kEmbedderDataArrayHeaderSize
Definition: v8-internal.h:908
static const int kHeapObjectMapOffset
Definition: v8-internal.h:893
static const int kEmbedderDataSlotSize
Definition: v8-internal.h:909
static const int kIsolateApiCallbackThunkArgumentOffset
Definition: v8-internal.h:1008
static Address ReadExternalPointerField(v8::Isolate *isolate, Address heap_object_ptr, int offset)
Definition: v8-internal.h:1353
static const int kJSAPIObjectWithEmbedderSlotsHeaderSize
Definition: v8-internal.h:904
static constexpr bool HasHeapObjectTag(Address value)
Definition: v8-internal.h:1121
static Address ReadExternalPointerField(v8::Isolate *isolate, Address heap_object_ptr, int offset, ExternalPointerTagRange tag_range)
Definition: v8-internal.h:1382
static const int kOddballType
Definition: v8-internal.h:1078
static const int kInferShouldThrowMode
Definition: v8-internal.h:1097
static const int kNewAllocationInfoOffset
Definition: v8-internal.h:958
static Address GetRoot(v8::Isolate *isolate, int index)
Definition: v8-internal.h:1265
static const int kStringEncodingMask
Definition: v8-internal.h:917
static const int kIsolateFastCCallCallerPcOffset
Definition: v8-internal.h:968
static uint8_t GetNodeFlag(Address *obj, int shift)
Definition: v8-internal.h:1212
static const int kIsolateThreadLocalTopOffset
Definition: v8-internal.h:977
static const uint32_t kNumIsolateDataSlots
Definition: v8-internal.h:921
static const int kForeignType
Definition: v8-internal.h:1079
static const int kJSDispatchTableOffset
Definition: v8-internal.h:1011
static const int kFirstEmbedderJSApiObjectType
Definition: v8-internal.h:1086
static const int kNumberOfBooleanFlags
Definition: v8-internal.h:923
static uint8_t GetNodeState(Address *obj)
Definition: v8-internal.h:1223
static const int kThreadLocalTopSize
Definition: v8-internal.h:930
static const int kIsolateRootsOffset
Definition: v8-internal.h:1017
static const int kExternalPointerTableSize
Definition: v8-internal.h:937
static const int kUndefinedOddballKind
Definition: v8-internal.h:1090
static const int kMapInstanceTypeOffset
Definition: v8-internal.h:894
static constexpr Address AddressToSmi(Address value)
Definition: v8-internal.h:1129
static const int kIsolateStackGuardOffset
Definition: v8-internal.h:947
static const int kLinearAllocationAreaSize
Definition: v8-internal.h:929
static const int kFastCCallAlignmentPaddingSize
Definition: v8-internal.h:965
static const int kDisallowGarbageCollectionAlign
Definition: v8-internal.h:1021
static const int kIsolateFastCCallCallerFpOffset
Definition: v8-internal.h:971
static const int kErrorMessageParamSize
Definition: v8-internal.h:924
static const int kSegmentedTableSegmentPoolSize
Definition: v8-internal.h:936
static void CheckInitialized(v8::Isolate *isolate)
Definition: v8-internal.h:1115
static void UpdateNodeState(Address *obj, uint8_t value)
Definition: v8-internal.h:1228
static constexpr Address IntegralToSmi(T value)
Definition: v8-internal.h:1140
static constexpr bool IsValidSmi(T value)
Definition: v8-internal.h:1146
static const int kJSObjectType
Definition: v8-internal.h:1081
static const int kBuiltinTier0TableOffset
Definition: v8-internal.h:956
static const int kIsolateLongTaskStatsCounterOffset
Definition: v8-internal.h:975
static const int kNativeContextEmbedderDataOffset
Definition: v8-internal.h:915
static const int kLastJSApiObjectType
Definition: v8-internal.h:1083
static constexpr bool CanHaveInternalField(int instance_type)
Definition: v8-internal.h:1200
static const int kIsolateHandleScopeDataOffset
Definition: v8-internal.h:979
static const int kFirstNonstringType
Definition: v8-internal.h:1077
static const int kEmptyStringRootIndex
Definition: v8-internal.h:1070
static const int kBuiltinTier0EntryTableOffset
Definition: v8-internal.h:953
static const int kFixedArrayHeaderSize
Definition: v8-internal.h:907
static const int kNullOddballKind
Definition: v8-internal.h:1091
static const int kUndefinedValueRootIndex
Definition: v8-internal.h:1065
static const int kExternalTwoByteRepresentationTag
Definition: v8-internal.h:918
static constexpr Address IntToSmi(int value)
Definition: v8-internal.h:1134
static const int kDontThrow
Definition: v8-internal.h:1095
static void CheckInitializedImpl(v8::Isolate *isolate)
static void * GetEmbedderData(const v8::Isolate *isolate, uint32_t slot)
Definition: v8-internal.h:1240
static const int kStackGuardSize
Definition: v8-internal.h:922
static const int kNodeStateMask
Definition: v8-internal.h:1074
static HandleScopeData * GetHandleScopeData(v8::Isolate *isolate)
Definition: v8-internal.h:1247
static const int kNodeStateIsWeakValue
Definition: v8-internal.h:1075
static const int kFirstJSApiObjectType
Definition: v8-internal.h:1082
static const int kStringResourceOffset
Definition: v8-internal.h:895
static const int kErrorMessageParamOffset
Definition: v8-internal.h:951
static const int kExternalPointerTableBasePointerOffset
Definition: v8-internal.h:935
static const int kFalseValueRootIndex
Definition: v8-internal.h:1069
static const int kIsolateRegexpExecVectorArgumentOffset
Definition: v8-internal.h:1013
static const int kIsolateFastApiCallTargetOffset
Definition: v8-internal.h:973
static const int kTrueValueRootIndex
Definition: v8-internal.h:1068
static int GetInstanceType(Address obj)
Definition: v8-internal.h:1174
static const int kThrowOnError
Definition: v8-internal.h:1096
static Address ReadTaggedSignedField(Address heap_object_ptr, int offset)
Definition: v8-internal.h:1329
static const int kOddballKindOffset
Definition: v8-internal.h:898
static const int kBuiltinTier0TableSize
Definition: v8-internal.h:928
static const int kContinuationPreservedEmbedderDataOffset
Definition: v8-internal.h:1015
static const int kLastYoungAllocationOffset
Definition: v8-internal.h:962
static Address ReadTaggedPointerField(Address heap_object_ptr, int offset)
Definition: v8-internal.h:1318
static const int kNullValueRootIndex
Definition: v8-internal.h:1067
static void SetEmbedderData(v8::Isolate *isolate, uint32_t slot, void *data)
Definition: v8-internal.h:1233
static Address * GetRootSlot(v8::Isolate *isolate, int index)
Definition: v8-internal.h:1259
static const int kTrustedPointerTableSize
Definition: v8-internal.h:940
static const int kTheHoleValueRootIndex
Definition: v8-internal.h:1066
static constexpr int SmiValue(Address value)
Definition: v8-internal.h:1125
static const int kTablesAlignmentPaddingSize
Definition: v8-internal.h:925
static const int kHandleScopeDataSize
Definition: v8-internal.h:931
static const int kExternalOneByteRepresentationTag
Definition: v8-internal.h:919
static const int kBuiltinTier0EntryTableSize
Definition: v8-internal.h:927
static void UpdateNodeFlag(Address *obj, bool value, int shift)
Definition: v8-internal.h:1217
static void IncrementLongTasksStatsCounter(v8::Isolate *isolate)
Definition: v8-internal.h:1253
static const int kDisallowGarbageCollectionSize
Definition: v8-internal.h:1022
static const int kOldAllocationInfoOffset
Definition: v8-internal.h:960
static const int kIsolateEmbedderDataOffset
Definition: v8-internal.h:981
static T ReadRawField(Address heap_object_ptr, int offset)
Definition: v8-internal.h:1302
static v8::Isolate * GetCurrentIsolate()
static const int kEmbedderDataSlotExternalPointerOffset
Definition: v8-internal.h:913
static v8::Isolate * GetCurrentIsolateForSandbox()
Definition: v8-internal.h:1343
static int GetOddballKind(Address obj)
Definition: v8-internal.h:1191
static const int kNodeFlagsOffset
Definition: v8-internal.h:1073
static const int kTrustedPointerTableBasePointerOffset
Definition: v8-internal.h:943
static const int kRegExpStaticResultOffsetsVectorSize
Definition: v8-internal.h:926
static const int kLastEmbedderJSApiObjectType
Definition: v8-internal.h:1087
static const int kVariousBooleanFlagsOffset
Definition: v8-internal.h:949
static constexpr std::optional< Address > TryIntegralToSmi(T value)
Definition: v8-internal.h:1152
static const int kNodeClassIdOffset
Definition: v8-internal.h:1072
static const int kStringRepresentationAndEncodingMask
Definition: v8-internal.h:916
static const int kJSObjectHeaderSize
Definition: v8-internal.h:899
static const int kJSSpecialApiObjectType
Definition: v8-internal.h:1080
Definition: v8-internal.h:1462
friend bool operator==(const StrongRootAllocatorBase &a, const StrongRootAllocatorBase &b)
Definition: v8-internal.h:1466
StrongRootAllocatorBase(Heap *heap)
Definition: v8-internal.h:1474
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:1464
Definition: v8-internal.h:1494
StrongRootAllocator(HeapOrIsolateT *)
Definition: v8-internal.h:1499
T value_type
Definition: v8-internal.h:1496
StrongRootAllocator(const StrongRootAllocator< U > &other) noexcept
Definition: v8-internal.h:1501
Definition: v8-internal.h:1726
static Address ValueAsAddress(const T *value)
Definition: v8-internal.h:1786
static T * ReprAsValue(InternalRepresentationType repr)
Definition: v8-internal.h:1802
internal::Address * InternalRepresentationType
Definition: v8-internal.h:1740
static T * SlotAsValue(S *slot)
Definition: v8-internal.h:1791
static T * HandleAsValue(const H< T, Ms... > &handle)
Definition: v8-internal.h:1754
static InternalRepresentationType ValueAsRepr(const T *value)
Definition: v8-internal.h:1796
static bool IsEmpty(T *value)
Definition: v8-internal.h:1745
static constexpr InternalRepresentationType kEmpty
Definition: v8-internal.h:1741
Definition: v8-internal.h:1553
constexpr WrappedIterator & operator-=(difference_type n) noexcept
Definition: v8-internal.h:1703
constexpr WrappedIterator operator--(int) noexcept
Definition: v8-internal.h:1680
constexpr WrappedIterator & operator+=(difference_type n) noexcept
Definition: v8-internal.h:1695
constexpr const Iterator & base() const noexcept
Definition: v8-internal.h:1717
std::conditional_t< std::is_void_v< ElementType >, typename std::iterator_traits< Iterator >::value_type, ElementType > value_type
Definition: v8-internal.h:1567
constexpr WrappedIterator & operator++() noexcept
Definition: v8-internal.h:1666
constexpr pointer operator->() const noexcept
Definition: v8-internal.h:1592
constexpr reference operator[](difference_type n) const noexcept
Definition: v8-internal.h:1712
typename std::iterator_traits< Iterator >::difference_type difference_type
Definition: v8-internal.h:1563
constexpr bool operator!=(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1634
constexpr bool operator>=(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1659
constexpr bool operator<(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1641
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:1575
constexpr WrappedIterator & operator--() noexcept
Definition: v8-internal.h:1676
constexpr WrappedIterator() noexcept=default
constexpr bool operator<=(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1647
constexpr WrappedIterator(const WrappedIterator< OtherIterator, OtherElementType > &other) noexcept
Definition: v8-internal.h:1587
constexpr bool operator>(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1653
typename std::iterator_traits< Iterator >::iterator_category iterator_category
Definition: v8-internal.h:1577
constexpr reference operator*() const noexcept
Definition: v8-internal.h:1591
constexpr auto operator-(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1707
friend constexpr WrappedIterator operator+(difference_type n, const WrappedIterator &x) noexcept
Definition: v8-internal.h:1691
constexpr WrappedIterator operator+(difference_type n) const noexcept
Definition: v8-internal.h:1685
constexpr WrappedIterator operator++(int) noexcept
Definition: v8-internal.h:1670
constexpr WrappedIterator operator-(difference_type n) const noexcept
Definition: v8-internal.h:1699
std::conditional_t< std::is_void_v< ElementType >, typename std::iterator_traits< Iterator >::pointer, std::add_pointer_t< ElementType > > pointer
Definition: v8-internal.h:1571
constexpr bool operator==(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1601
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:830
constexpr bool kRuntimeGeneratedCodeObjectsLiveInTrustedSpace
Definition: v8-internal.h:842
internal::Isolate * IsolateFromNeverReadOnlySpaceObject(Address obj)
constexpr uint64_t kExternalPointerTagShift
Definition: v8-internal.h:347
IndirectPointerHandle TrustedPointerHandle
Definition: v8-internal.h:765
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:803
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:838
constexpr int kTrustedPointerTableEntrySizeLog2
Definition: v8-internal.h:782
constexpr int kTrustedPointerTableEntrySize
Definition: v8-internal.h:781
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:745
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:837
constexpr size_t kMaxExternalPointers
Definition: v8-internal.h:342
constexpr size_t kCodePointerTableReservationSize
Definition: v8-internal.h:808
constexpr TrustedPointerHandle kNullTrustedPointerHandle
Definition: v8-internal.h:777
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:783
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:843
constexpr uint32_t kTrustedPointerHandleShift
Definition: v8-internal.h:774
constexpr uint32_t kCodePointerHandleShift
Definition: v8-internal.h:812
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:831
constexpr bool kHaveIteratorCategory
Definition: v8-internal.h:1516
SmiTagging< kApiTaggedSize > PlatformSmiTagging
Definition: v8-internal.h:199
ExternalPointerTag
Definition: v8-internal.h:557
@ kLastForeignExternalPointerTag
Definition: v8-internal.h:657
@ kApiIndexedPropertyDescriptorCallbackTag
Definition: v8-internal.h:603
@ kGenericForeignTag
Definition: v8-internal.h:616
@ kFirstMaybeReadOnlyExternalPointerTag
Definition: v8-internal.h:586
@ kTemporalInstantTag
Definition: v8-internal.h:647
@ kTemporalPlainYearMonthTag
Definition: v8-internal.h:651
@ kExternalPointerEvacuationEntryTag
Definition: v8-internal.h:665
@ kFirstSharedExternalPointerTag
Definition: v8-internal.h:569
@ kApiNamedPropertyDefinerCallbackTag
Definition: v8-internal.h:597
@ kLastSharedExternalPointerTag
Definition: v8-internal.h:573
@ kD8WorkerTag
Definition: v8-internal.h:655
@ kApiIndexedPropertySetterCallbackTag
Definition: v8-internal.h:602
@ kWasmManagedDataTag
Definition: v8-internal.h:634
@ kLastExternalPointerTag
Definition: v8-internal.h:668
@ kIcuBreakIteratorTag
Definition: v8-internal.h:636
@ kMicrotaskCallbackDataTag
Definition: v8-internal.h:622
@ kWasmNativeModuleTag
Definition: v8-internal.h:635
@ kApiIndexedPropertyGetterCallbackTag
Definition: v8-internal.h:601
@ kApiNamedPropertyDescriptorCallbackTag
Definition: v8-internal.h:596
@ kAccessorInfoGetterTag
Definition: v8-internal.h:588
@ kTemporalPlainMonthDayTag
Definition: v8-internal.h:652
@ kIcuCollatorTag
Definition: v8-internal.h:645
@ kIcuSimpleDateFormatTag
Definition: v8-internal.h:640
@ kApiIndexedPropertyDefinerCallbackTag
Definition: v8-internal.h:604
@ kSyntheticModuleTag
Definition: v8-internal.h:620
@ kD8ModuleEmbedderDataTag
Definition: v8-internal.h:656
@ kExternalStringResourceTag
Definition: v8-internal.h:571
@ kWasmFuncDataTag
Definition: v8-internal.h:633
@ kExternalObjectValueTag
Definition: v8-internal.h:585
@ kWaiterQueueForeignTag
Definition: v8-internal.h:626
@ kAccessorInfoSetterTag
Definition: v8-internal.h:589
@ kApiNamedPropertyDeleterCallbackTag
Definition: v8-internal.h:598
@ kApiAccessCheckCallbackTag
Definition: v8-internal.h:618
@ kApiAbortScriptExecutionCallbackTag
Definition: v8-internal.h:619
@ kMicrotaskCallbackTag
Definition: v8-internal.h:621
@ kIcuLocalizedNumberFormatterTag
Definition: v8-internal.h:643
@ kApiNamedPropertyGetterCallbackTag
Definition: v8-internal.h:594
@ kApiNamedPropertySetterCallbackTag
Definition: v8-internal.h:595
@ kApiIndexedPropertyEnumeratorCallbackTag
Definition: v8-internal.h:606
@ kExternalPointerFreeEntryTag
Definition: v8-internal.h:666
@ kFirstInterceptorInfoExternalPointerTag
Definition: v8-internal.h:592
@ kCFunctionTag
Definition: v8-internal.h:623
@ kIcuUnicodeStringTag
Definition: v8-internal.h:637
@ kLastManagedExternalPointerTag
Definition: v8-internal.h:658
@ kWaiterQueueNodeTag
Definition: v8-internal.h:570
@ kGenericManagedTag
Definition: v8-internal.h:631
@ kExternalPointerNullTag
Definition: v8-internal.h:559
@ kExternalStringResourceDataTag
Definition: v8-internal.h:572
@ kTemporalZonedDateTimeTag
Definition: v8-internal.h:653
@ kWasmStackMemoryTag
Definition: v8-internal.h:612
@ kLastManagedResourceTag
Definition: v8-internal.h:662
@ kExternalPointerZappedEntryTag
Definition: v8-internal.h:664
@ kApiNamedPropertyQueryCallbackTag
Definition: v8-internal.h:593
@ kFirstForeignExternalPointerTag
Definition: v8-internal.h:615
@ kTemporalPlainDateTimeTag
Definition: v8-internal.h:650
@ kIcuListFormatterTag
Definition: v8-internal.h:638
@ kDisplayNamesInternalTag
Definition: v8-internal.h:654
@ kFirstManagedResourceTag
Definition: v8-internal.h:629
@ kFirstManagedExternalPointerTag
Definition: v8-internal.h:630
@ kTemporalPlainTimeTag
Definition: v8-internal.h:649
@ kIcuPluralRulesTag
Definition: v8-internal.h:644
@ kFirstEmbedderDataTag
Definition: v8-internal.h:580
@ kApiIndexedPropertyQueryCallbackTag
Definition: v8-internal.h:600
@ kIcuLocaleTag
Definition: v8-internal.h:639
@ kMessageListenerTag
Definition: v8-internal.h:625
@ kApiIndexedPropertyDeleterCallbackTag
Definition: v8-internal.h:605
@ kTemporalDurationTag
Definition: v8-internal.h:646
@ kLastInterceptorInfoExternalPointerTag
Definition: v8-internal.h:607
@ kIcuRelativeDateTimeFormatterTag
Definition: v8-internal.h:642
@ kWasmWasmStreamingTag
Definition: v8-internal.h:632
@ kNativeContextMicrotaskQueueTag
Definition: v8-internal.h:577
@ kLastMaybeReadOnlyExternalPointerTag
Definition: v8-internal.h:610
@ kLastEmbedderDataTag
Definition: v8-internal.h:581
@ kArrayBufferExtensionTag
Definition: v8-internal.h:661
@ kIcuDateIntervalFormatTag
Definition: v8-internal.h:641
@ kCFunctionInfoTag
Definition: v8-internal.h:624
@ kFirstExternalPointerTag
Definition: v8-internal.h:558
@ kApiNamedPropertyEnumeratorCallbackTag
Definition: v8-internal.h:599
@ kFunctionTemplateInfoCallbackTag
Definition: v8-internal.h:587
@ kTemporalPlainDateTag
Definition: v8-internal.h:648
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:671
constexpr IndirectPointerHandle kNullIndirectPointerHandle
Definition: v8-internal.h:748
uintptr_t Address
Definition: v8-internal.h:52
void PerformCastCheck(T *data)
Definition: v8-internal.h:1447
void PrintFunctionCallbackInfo(void *function_callback_info)
constexpr size_t kTrustedPointerTableReservationSize
Definition: v8-internal.h:770
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:844
const int kSmiTag
Definition: v8-internal.h:86
constexpr CodePointerHandle kNullCodePointerHandle
Definition: v8-internal.h:815
Address CppHeapPointer_t
Definition: v8-internal.h:391
constexpr CppHeapPointerHandle kNullCppHeapPointerHandle
Definition: v8-internal.h:395
constexpr int kGarbageCollectionReasonMaxValue
Definition: v8-internal.h:1458
constexpr int kCodePointerTableEntrySize
Definition: v8-internal.h:829
constexpr uint32_t kCodePointerHandleMarker
Definition: v8-internal.h:824
const int kSmiMinValue
Definition: v8-internal.h:206
constexpr bool kHaveIteratorConcept
Definition: v8-internal.h:1510
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:1431
static void Perform(T *data)
Definition: v8-internal.h:860
Address * next
Definition: v8-internal.h:864
int level
Definition: v8-internal.h:866
Address * limit
Definition: v8-internal.h:865
int sealed_level
Definition: v8-internal.h:867
static constexpr uint32_t kSizeInBytes
Definition: v8-internal.h:861
void Initialize()
Definition: v8-internal.h:869
typename Iterator::iterator_concept iterator_concept
Definition: v8-internal.h:1530
Definition: v8-internal.h:1525
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:457
constexpr size_t Size() const
Definition: v8-internal.h:479
constexpr bool IsEmpty() const
Definition: v8-internal.h:477
const Tag last
Definition: v8-internal.h:510
constexpr bool operator==(const TagRange other) const
Definition: v8-internal.h:499
constexpr bool Contains(Tag tag) const
Definition: v8-internal.h:487
const Tag first
Definition: v8-internal.h:509
constexpr TagRange()
Definition: v8-internal.h:474
constexpr TagRange(Tag tag)
Definition: v8-internal.h:470
constexpr size_t hash_value() const
Definition: v8-internal.h:503
constexpr TagRange(Tag first, Tag last)
Definition: v8-internal.h:463
constexpr bool Contains(TagRange tag_range) const
Definition: v8-internal.h:495
#define V8_EMBEDDER_DATA_TAG_COUNT
Definition: v8-internal.h:427
#define V8_EXPORT
Definition: v8config.h:855
#define V8_INLINE
Definition: v8config.h:508
#define V8_DEPRECATE_SOON(message)
Definition: v8config.h:622
#define V8_LIKELY(condition)
Definition: v8config.h:669