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_ARCH_ARM64) && defined(V8_TARGET_OS_CHROMEOS)
230constexpr size_t kSandboxSizeLog2 = 37;
231#elif defined(V8_TARGET_OS_IOS)
236constexpr size_t kSandboxSizeLog2 = 34;
237#elif defined(V8_HOST_ARCH_RISCV64)
242constexpr size_t kSandboxSizeLog2 = 37;
243#elif defined(V8_TARGET_ARCH_LOONG64)
246constexpr size_t kSandboxSizeLog2 = 37;
249constexpr size_t kSandboxSizeLog2 = 40;
251constexpr size_t kSandboxSize = 1ULL << kSandboxSizeLog2;
258constexpr size_t kSandboxAlignment = kPtrComprCageBaseAlignment;
264constexpr uint64_t kSandboxedPointerShift = 64 - kSandboxSizeLog2;
276constexpr size_t kSandboxMinimumReservationSize = 8ULL *
GB;
278static_assert(kSandboxMinimumReservationSize > kPtrComprCageReservationSize,
279 "The minimum reservation size for a sandbox must be larger than "
280 "the pointer compression cage contained within it.");
286constexpr size_t kMaxSafeBufferSizeForSandbox = 32ULL *
GB - 1;
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");
293constexpr size_t kBoundedSizeMask = (1ULL << (64 - kBoundedSizeShift)) - 1;
301constexpr size_t kSandboxGuardRegionSize =
302 32ULL *
GB + (kMaxSafeBufferSizeForSandbox + 1);
304static_assert((kSandboxGuardRegionSize % kSandboxAlignment) == 0,
305 "The size of the guard regions around the sandbox must be a "
306 "multiple of its required alignment.");
307static_assert(kMaxSafeBufferSizeForSandbox <= kSandboxGuardRegionSize,
308 "The maximum allowed buffer size must not be larger than the "
309 "sandbox's guard regions");
311#if defined(V8_TARGET_OS_ANDROID)
313constexpr size_t kAdditionalTrailingGuardRegionSize = 0;
314#elif defined(V8_TARGET_ARCH_ARM64) && defined(V8_TARGET_OS_CHROMEOS)
316constexpr size_t kAdditionalTrailingGuardRegionSize = 0;
317#elif defined(V8_TARGET_ARCH_LOONG64)
320constexpr size_t kAdditionalTrailingGuardRegionSize = 0;
324constexpr size_t kAdditionalTrailingGuardRegionSize =
325 288ULL *
GB - kSandboxGuardRegionSize;
328constexpr bool kRequiresTypedArrayAccessMasks =
329 kAdditionalTrailingGuardRegionSize == 0;
333#ifdef V8_COMPRESS_POINTERS
335#ifdef V8_TARGET_OS_ANDROID
341constexpr size_t kExternalPointerTableReservationSize = 256 *
MB;
347constexpr uint32_t kExternalPointerIndexShift = 7;
348#elif defined(V8_TARGET_OS_IOS)
353constexpr size_t kExternalPointerTableReservationSize = 128 *
MB;
354constexpr uint32_t kExternalPointerIndexShift = 8;
356constexpr size_t kExternalPointerTableReservationSize = 512 *
MB;
357constexpr uint32_t kExternalPointerIndexShift = 6;
361constexpr int kExternalPointerTableEntrySize = 8;
362constexpr int kExternalPointerTableEntrySizeLog2 = 3;
365 kExternalPointerTableReservationSize / kExternalPointerTableEntrySize;
367 "kExternalPointerTableReservationSize and "
368 "kExternalPointerIndexShift don't match");
399#ifdef V8_ENABLE_SANDBOX
419#ifdef V8_COMPRESS_POINTERS
435#ifdef V8_COMPRESS_POINTERS
439constexpr size_t kCppHeapPointerTableReservationSize =
440 kExternalPointerTableReservationSize;
441constexpr uint32_t kCppHeapPointerIndexShift = kExternalPointerIndexShift;
443constexpr int kCppHeapPointerTableEntrySize = 8;
444constexpr int kCppHeapPointerTableEntrySizeLog2 = 3;
446 kCppHeapPointerTableReservationSize / kCppHeapPointerTableEntrySize;
448 "kCppHeapPointerTableReservationSize and "
449 "kCppHeapPointerIndexShift don't match");
461#define V8_EMBEDDER_DATA_TAG_COUNT 15
466#define V8_EXTERNAL_POINTER_TAG_COUNT 40
527template <
typename Tag>
529 static_assert(std::is_enum_v<Tag> &&
530 std::is_same_v<std::underlying_type_t<Tag>, uint16_t>,
531 "Tag parameter must be an enum with base type uint16_t");
535#ifdef V8_ENABLE_CHECKS
537 if (
first >
last) __builtin_unreachable();
555 constexpr size_t Size()
const {
567 return static_cast<uint32_t
>(tag) -
static_cast<uint32_t
>(
first) <=
568 static_cast<uint32_t
>(
last) -
static_cast<uint32_t
>(
first);
580 static_assert(std::is_same_v<std::underlying_type_t<Tag>, uint16_t>);
581 return (
static_cast<size_t>(
first) << 16) |
last;
612#define SHARED_MANAGED_TAG_LIST(V) V(WasmFutexManagedObjectWaitListTag)
614#define MANAGED_TAG_LIST(V) \
615 SHARED_MANAGED_TAG_LIST(V) \
616 V(IcuBreakIteratorTag) \
617 V(IcuListFormatterTag) \
619 V(IcuSimpleDateFormatTag) \
620 V(IcuDateIntervalFormatTag) \
621 V(IcuRelativeDateTimeFormatterTag) \
622 V(IcuLocalizedNumberFormatterTag) \
623 V(IcuPluralRulesTag) \
626#define FOREIGN_TAG_LIST(V) \
627 V(GenericForeignTag) \
628 V(ApiAccessCheckCallbackTag) \
629 V(ApiAbortScriptExecutionCallbackTag) \
630 V(ApiTemporalHostSystemUTCEpochNanosecondsCallbackTag) \
632 V(SyntheticModuleTag) \
633 V(MicrotaskCallbackTag) \
634 V(MicrotaskCallbackDataTag) \
635 V(MessageListenerTag) \
636 V(WaiterQueueForeignTag) \
748#define AS_ENUM(name) k##name,
767#define ENUM_CASE(name) \
768 case ExternalPointerTag::k##name: \
775 return "Unknown tag";
781#define AS_LIST(name) ExternalPointerTag::k##name,
783#define GET_FIRST(LIST) \
785 ExternalPointerTag items[] = {LIST(AS_LIST)}; \
789#define GET_LAST(LIST) \
791 ExternalPointerTag items[] = {LIST(AS_LIST)}; \
792 return items[(sizeof(items) / sizeof(items[0])) - 1]; \
839V8_INLINE static constexpr bool IsSharedExternalPointerType(
846 return kAnySharedExternalPointerTagRange.Contains(tag_range) ||
853V8_INLINE static constexpr bool IsMaybeReadOnlyExternalPointerType(
862V8_INLINE static constexpr bool IsManagedExternalPointerType(
874V8_INLINE static constexpr bool ExternalPointerCanBeEmpty(
940 "kTrustedPointerTableReservationSize and "
941 "kTrustedPointerHandleShift don't match");
959 "Use GetCurrentIsolate() instead, which is guaranteed to return the same "
960 "isolate since https://crrev.com/c/6458560.")
969 static constexpr uint32_t kSizeInBytes =
978 next = limit =
nullptr;
979 sealed_level = level = 0;
994 return mapword ^ kMapWordXorMask;
1008#ifdef V8_COMPRESS_POINTERS
1088#ifdef V8_COMPRESS_POINTERS
1089 static const int kIsolateExternalPointerTableOffset =
1091 static const int kIsolateSharedExternalPointerTableAddressOffset =
1093 static const int kIsolateCppHeapPointerTableOffset =
1095#ifdef V8_ENABLE_SANDBOX
1096 static const int kIsolateTrustedCageBaseOffset =
1098 static const int kIsolateTrustedPointerTableOffset =
1100 static const int kIsolateSharedTrustedPointerTableAddressOffset =
1102 static const int kIsolateTrustedPointerPublishingScopeOffset =
1127#if V8_TARGET_ARCH_PPC64
1133#if V8_TARGET_ARCH_ARM64
1149#if V8_STATIC_ROOTS_BOOL
1152#define EXPORTED_STATIC_ROOTS_PTR_LIST(V) \
1153 V(UndefinedValue, 0x11) \
1154 V(NullValue, 0x2d) \
1155 V(TrueValue, 0x71) \
1156 V(FalseValue, 0x55) \
1157 V(EmptyString, 0x49) \
1160 V(TheHoleValue, kBuildDependentTheHoleValue)
1162 using Tagged_t = uint32_t;
1163 struct StaticReadOnlyRoot {
1164#ifdef V8_ENABLE_WEBASSEMBLY
1165 static constexpr Tagged_t kBuildDependentTheHoleValue = 0x2fffd;
1167 static constexpr Tagged_t kBuildDependentTheHoleValue = 0xfffd;
1170#define DEF_ROOT(name, value) static constexpr Tagged_t k##name = value;
1171 EXPORTED_STATIC_ROOTS_PTR_LIST(DEF_ROOT)
1175 static constexpr Tagged_t kStringMapLowerBound = 0;
1176 static constexpr Tagged_t kStringMapUpperBound = 0x425;
1178#define PLUSONE(...) +1
1179 static constexpr size_t kNumberOfExportedStaticRoots =
1180 2 + EXPORTED_STATIC_ROOTS_PTR_LIST(PLUSONE);
1224#ifdef V8_MAP_PACKING
1225 static const uintptr_t kMapWordMetadataMask = 0xffffULL << 48;
1227 static const uintptr_t kMapWordSignature = 0b10;
1232 static const int kMapWordXorMask = 0b11;
1237#ifdef V8_ENABLE_CHECKS
1247 return PlatformSmiTagging::SmiToInt(value);
1259 template <
typename T,
1260 typename std::enable_if_t<std::is_integral_v<T>>* =
nullptr>
1265 template <
typename T,
1266 typename std::enable_if_t<std::is_integral_v<T>>* =
nullptr>
1268 return PlatformSmiTagging::IsValidSmi(value);
1271 template <
typename T,
1272 typename std::enable_if_t<std::is_integral_v<T>>* =
nullptr>
1274 if (
V8_LIKELY(PlatformSmiTagging::IsValidSmi(value))) {
1280#if V8_STATIC_ROOTS_BOOL
1282 return static_cast<Tagged_t
>(obj) == constant;
1285 V8_INLINE static bool CheckInstanceMapRange(
Address obj, Tagged_t first_map,
1286 Tagged_t last_map) {
1288#ifdef V8_MAP_PACKING
1289 map = UnpackMapWord(map);
1291 return map >= first_map && map <= last_map;
1297#ifdef V8_MAP_PACKING
1298 map = UnpackMapWord(map);
1306#ifdef V8_MAP_PACKING
1307 map = UnpackMapWord(map);
1333 (
static_cast<unsigned>(
static_cast<unsigned>(instance_type) -
1340 return *addr &
static_cast<uint8_t
>(1U << shift);
1345 uint8_t mask =
static_cast<uint8_t
>(1U << shift);
1346 *addr =
static_cast<uint8_t
>((*addr & ~mask) | (value << shift));
1356 *addr =
static_cast<uint8_t
>((*addr & ~kNodeStateMask) | value);
1363 *
reinterpret_cast<void**
>(addr) = data;
1370 return *
reinterpret_cast<void* const*
>(addr);
1382 ++(*
reinterpret_cast<size_t*
>(addr));
1388 return reinterpret_cast<Address*
>(addr);
1392#if V8_STATIC_ROOTS_BOOL
1396#define DECOMPRESS_ROOT(name, ...) \
1397 case k##name##RootIndex: \
1398 return base + StaticReadOnlyRoot::k##name;
1399 EXPORTED_STATIC_ROOTS_PTR_LIST(DECOMPRESS_ROOT)
1400#undef DECOMPRESS_ROOT
1401#undef EXPORTED_STATIC_ROOTS_PTR_LIST
1409#ifdef V8_ENABLE_SANDBOX
1412 kIsolateExternalPointerTableOffset +
1414 return *
reinterpret_cast<Address**
>(addr);
1420 kIsolateSharedExternalPointerTableAddressOffset;
1421 addr = *
reinterpret_cast<Address*
>(addr);
1423 return *
reinterpret_cast<Address**
>(addr);
1427 template <
typename T>
1430#ifdef V8_COMPRESS_POINTERS
1437 memcpy(&r,
reinterpret_cast<void*
>(addr),
sizeof(T));
1441 return *
reinterpret_cast<const T*
>(addr);
1446#ifdef V8_COMPRESS_POINTERS
1447 uint32_t value = ReadRawField<uint32_t>(heap_object_ptr, offset);
1448 Address base = GetPtrComprCageBaseFromOnHeapAddress(heap_object_ptr);
1449 return base +
static_cast<Address>(
static_cast<uintptr_t
>(value));
1451 return ReadRawField<Address>(heap_object_ptr, offset);
1457#ifdef V8_COMPRESS_POINTERS
1458 uint32_t value = ReadRawField<uint32_t>(heap_object_ptr, offset);
1459 return static_cast<Address>(
static_cast<uintptr_t
>(value));
1461 return ReadRawField<Address>(heap_object_ptr, offset);
1470#ifdef V8_ENABLE_SANDBOX
1478 template <ExternalPo
interTagRange tag_range>
1482#ifdef V8_ENABLE_SANDBOX
1483 static_assert(!tag_range.IsEmpty());
1486 Address* table = IsSharedExternalPointerType(tag_range)
1487 ? GetSharedExternalPointerTableBase(isolate)
1488 : GetExternalPointerTableBase(isolate);
1490 ReadRawField<ExternalPointerHandle>(heap_object_ptr, offset);
1491 uint32_t index = handle >> kExternalPointerIndexShift;
1492 std::atomic<Address>* ptr =
1493 reinterpret_cast<std::atomic<Address>*
>(&table[index]);
1494 Address entry = std::atomic_load_explicit(ptr, std::memory_order_relaxed);
1498 if (
V8_LIKELY(tag_range.Contains(actual_tag))) {
1505 return ReadRawField<Address>(heap_object_ptr, offset);
1512#ifdef V8_ENABLE_SANDBOX
1515 Address* table = IsSharedExternalPointerType(tag_range)
1516 ? GetSharedExternalPointerTableBase(isolate)
1517 : GetExternalPointerTableBase(isolate);
1519 ReadRawField<ExternalPointerHandle>(heap_object_ptr, offset);
1520 uint32_t index = handle >> kExternalPointerIndexShift;
1521 std::atomic<Address>* ptr =
1522 reinterpret_cast<std::atomic<Address>*
>(&table[index]);
1523 Address entry = std::atomic_load_explicit(ptr, std::memory_order_relaxed);
1535 return ReadRawField<Address>(heap_object_ptr, offset);
1539#ifdef V8_COMPRESS_POINTERS
1541 return addr & -
static_cast<intptr_t
>(kPtrComprCageBaseAlignment);
1545 return static_cast<uint32_t
>(value);
1550 Address base = GetPtrComprCageBaseFromOnHeapAddress(heap_object_ptr);
1551 return base +
static_cast<Address>(
static_cast<uintptr_t
>(value));
1559template <
bool PerformCheck>
1577 CastCheck<std::is_base_of_v<Data, T> &&
1578 !std::is_same_v<Data, std::remove_cv_t<T>>>::Perform(data);
1593 Heap* heap()
const {
return heap_; }
1605 Address* allocate_impl(
size_t n);
1606 void deallocate_impl(
Address* p,
size_t n)
noexcept;
1617template <
typename T>
1622 template <
typename HeapOrIsolateT>
1624 template <
typename U>
1627 using std::allocator<T>::allocate;
1628 using std::allocator<T>::deallocate;
1631template <
typename Iterator>
1634template <
typename Iterator>
1636 requires {
typename Iterator::iterator_category; };
1641template <
typename Iterator>
1644template <HasIteratorConcept Iterator>
1646 using iterator_concept =
typename Iterator::iterator_concept;
1649template <
typename Iterator>
1653 typename std::iterator_traits<Iterator>::iterator_concept;
1656template <
typename T>
1658 using iterator_concept = std::contiguous_iterator_tag;
1665template <
typename Iterator,
typename ElementType =
void>
1669 std::is_void_v<ElementType> ||
1670 (std::is_convertible_v<typename std::iterator_traits<Iterator>::pointer,
1671 std::add_pointer_t<ElementType>> &&
1672 std::is_convertible_v<typename std::iterator_traits<Iterator>::reference,
1673 std::add_lvalue_reference_t<ElementType>>));
1676 typename std::iterator_traits<Iterator>::difference_type;
1678 std::conditional_t<std::is_void_v<ElementType>,
1679 typename std::iterator_traits<Iterator>::value_type,
1682 std::conditional_t<std::is_void_v<ElementType>,
1683 typename std::iterator_traits<Iterator>::pointer,
1684 std::add_pointer_t<ElementType>>;
1686 std::conditional_t<std::is_void_v<ElementType>,
1687 typename std::iterator_traits<Iterator>::reference,
1688 std::add_lvalue_reference_t<ElementType>>;
1690 typename std::iterator_traits<Iterator>::iterator_category;
1695 template <
typename OtherIterator,
typename OtherElementType>
1696 requires std::is_convertible_v<OtherIterator, Iterator>
1699 : it_(other.base()) {}
1703 if constexpr (std::is_pointer_v<Iterator>) {
1706 return it_.operator->();
1710 template <
typename OtherIterator,
typename OtherElementType>
1712 const WrappedIterator<OtherIterator, OtherElementType>& other)
1714 return it_ == other.base();
1717 template <
typename OtherIterator,
typename OtherElementType>
1721 if constexpr (std::three_way_comparable_with<Iterator, OtherIterator>) {
1722 return it_ <=> other.base();
1723 }
else if constexpr (std::totally_ordered_with<Iterator, OtherIterator>) {
1724 if (it_ < other.base()) {
1725 return std::strong_ordering::less;
1727 return (it_ > other.base()) ? std::strong_ordering::greater
1728 : std::strong_ordering::equal;
1730 if (it_ < other.base()) {
1731 return std::partial_ordering::less;
1733 if (other.base() < it_) {
1734 return std::partial_ordering::greater;
1736 return (it_ == other.base()) ? std::partial_ordering::equivalent
1737 : std::partial_ordering::unordered;
1781 template <
typename OtherIterator,
typename OtherElementType>
1785 return it_ - other.base();
1792 [[nodiscard]]
constexpr const Iterator&
base() const noexcept {
return it_; }
1809#ifdef V8_ENABLE_DIRECT_HANDLE
1810 static constexpr Address kTaggedNullAddress = 1;
1819 template <
typename T>
1827 template <
template <
typename T,
typename... Ms>
typename H,
typename T,
1830 return handle.template value<T>();
1833#ifdef V8_ENABLE_DIRECT_HANDLE
1835 template <
typename T>
1837 return reinterpret_cast<Address>(value);
1840 template <
typename T,
bool check_null = true,
typename S>
1842 if (check_null && slot ==
nullptr) {
1843 return reinterpret_cast<T*
>(kTaggedNullAddress);
1845 return *
reinterpret_cast<T**
>(slot);
1848 template <
typename T>
1853 template <
typename T>
1855 return reinterpret_cast<T*
>(repr);
1860 template <
typename T>
1865 template <
typename T,
bool check_null = true,
typename S>
1867 return reinterpret_cast<T*
>(slot);
1870 template <
typename T>
1876 template <
typename T>
1878 return reinterpret_cast<T*
>(repr);
1899 template <
typename T1,
typename T2>
1901 if (lhs.IsEmpty())
return rhs.IsEmpty();
1902 if (rhs.IsEmpty())
return false;
1903 return lhs.ptr() == rhs.ptr();
Definition: v8-isolate.h:298
Definition: v8-internal.h:1579
Definition: v8-internal.h:1883
static bool EqualHandles(const T1 &lhs, const T2 &rhs)
Definition: v8-internal.h:1896
static Address LoadMap(Address obj)
Definition: v8-internal.h:1299
static constexpr size_t kExternalAllocationSoftLimit
Definition: v8-internal.h:1218
static bool IsExternalTwoByteString(int instance_type)
Definition: v8-internal.h:1312
static const int kIsolateCageBaseOffset
Definition: v8-internal.h:1045
static const int kEmbedderDataArrayHeaderSize
Definition: v8-internal.h:1012
static const int kHeapObjectMapOffset
Definition: v8-internal.h:997
static const int kEmbedderDataSlotSize
Definition: v8-internal.h:1013
static const int kIsolateApiCallbackThunkArgumentOffset
Definition: v8-internal.h:1110
static Address ReadExternalPointerField(v8::Isolate *isolate, Address heap_object_ptr, int offset)
Definition: v8-internal.h:1475
static const int kJSAPIObjectWithEmbedderSlotsHeaderSize
Definition: v8-internal.h:1008
static constexpr bool HasHeapObjectTag(Address value)
Definition: v8-internal.h:1238
static const int kIsolateHandleScopeImplementerOffset
Definition: v8-internal.h:1080
static const int kOddballType
Definition: v8-internal.h:1195
static const int kInferShouldThrowMode
Definition: v8-internal.h:1214
static const int kNewAllocationInfoOffset
Definition: v8-internal.h:1057
static Address GetRoot(v8::Isolate *isolate, int index)
Definition: v8-internal.h:1387
static const int kStringEncodingMask
Definition: v8-internal.h:1017
static const int kIsolateFastCCallCallerPcOffset
Definition: v8-internal.h:1067
static uint8_t GetNodeFlag(Address *obj, int shift)
Definition: v8-internal.h:1334
static const int kIsolateThreadLocalTopOffset
Definition: v8-internal.h:1076
static const uint32_t kNumIsolateDataSlots
Definition: v8-internal.h:1024
static const int kForeignType
Definition: v8-internal.h:1196
static const int kFirstEmbedderJSApiObjectType
Definition: v8-internal.h:1203
static const int kNumberOfBooleanFlags
Definition: v8-internal.h:1026
static uint8_t GetNodeState(Address *obj)
Definition: v8-internal.h:1345
static const int kThreadLocalTopSize
Definition: v8-internal.h:1033
static const int kIsolateRootsOffset
Definition: v8-internal.h:1120
static const int kFrameTypeApiCallExit
Definition: v8-internal.h:1136
static const int kUndefinedOddballKind
Definition: v8-internal.h:1207
static const int kMapInstanceTypeOffset
Definition: v8-internal.h:998
static constexpr Address AddressToSmi(Address value)
Definition: v8-internal.h:1246
static const int kIsolateStackGuardOffset
Definition: v8-internal.h:1046
static const int kLinearAllocationAreaSize
Definition: v8-internal.h:1032
static const int kFastCCallAlignmentPaddingSize
Definition: v8-internal.h:1064
static const int kDisallowGarbageCollectionAlign
Definition: v8-internal.h:1142
static const int kIsolateFastCCallCallerFpOffset
Definition: v8-internal.h:1070
static const int kErrorMessageParamSize
Definition: v8-internal.h:1027
static void CheckInitialized(v8::Isolate *isolate)
Definition: v8-internal.h:1232
static void UpdateNodeState(Address *obj, uint8_t value)
Definition: v8-internal.h:1350
static constexpr Address IntegralToSmi(T value)
Definition: v8-internal.h:1257
static constexpr bool IsValidSmi(T value)
Definition: v8-internal.h:1263
static const int kJSObjectType
Definition: v8-internal.h:1198
static const int kExternalEntityTableBasePointerOffset
Definition: v8-internal.h:1041
static const int kBuiltinTier0TableOffset
Definition: v8-internal.h:1055
static const int kIsolateLongTaskStatsCounterOffset
Definition: v8-internal.h:1074
static const int kNativeContextEmbedderDataOffset
Definition: v8-internal.h:1015
static const int kLastJSApiObjectType
Definition: v8-internal.h:1200
static constexpr bool CanHaveInternalField(int instance_type)
Definition: v8-internal.h:1322
static constexpr int kSPAlignmentSlotCount
Definition: v8-internal.h:1133
static const int kIsolateHandleScopeDataOffset
Definition: v8-internal.h:1078
static const int kFirstNonstringType
Definition: v8-internal.h:1194
static const int kEmptyStringRootIndex
Definition: v8-internal.h:1187
static const int kBuiltinTier0EntryTableOffset
Definition: v8-internal.h:1052
static const int kFrameTypeApiIndexedAccessorExit
Definition: v8-internal.h:1139
static const int kFixedArrayHeaderSize
Definition: v8-internal.h:1011
static const int kNullOddballKind
Definition: v8-internal.h:1208
static const int kUndefinedValueRootIndex
Definition: v8-internal.h:1182
static const int kExternalTwoByteRepresentationTag
Definition: v8-internal.h:1018
static constexpr Address IntToSmi(int value)
Definition: v8-internal.h:1251
static const int kDontThrow
Definition: v8-internal.h:1212
static void CheckInitializedImpl(v8::Isolate *isolate)
static void * GetEmbedderData(const v8::Isolate *isolate, uint32_t slot)
Definition: v8-internal.h:1362
static const int kStackGuardSize
Definition: v8-internal.h:1025
static const int kNodeStateMask
Definition: v8-internal.h:1191
static HandleScopeData * GetHandleScopeData(v8::Isolate *isolate)
Definition: v8-internal.h:1369
static const int kEmbedderDataSlotCppHeapPointerOffset
Definition: v8-internal.h:1014
static const int kNodeStateIsWeakValue
Definition: v8-internal.h:1192
static const int kFirstJSApiObjectType
Definition: v8-internal.h:1199
static const int kStringResourceOffset
Definition: v8-internal.h:999
static bool IsExternalOneByteString(int instance_type)
Definition: v8-internal.h:1317
static const int kErrorMessageParamOffset
Definition: v8-internal.h:1050
static const int kCurrentMicrotaskNativeContextOffset
Definition: v8-internal.h:1118
static const int kFalseValueRootIndex
Definition: v8-internal.h:1186
static const int kIsolateRegexpExecVectorArgumentOffset
Definition: v8-internal.h:1112
static const int kIsolateFastApiCallTargetOffset
Definition: v8-internal.h:1072
static const int kTrueValueRootIndex
Definition: v8-internal.h:1185
static int GetInstanceType(Address obj)
Definition: v8-internal.h:1291
static const int kThrowOnError
Definition: v8-internal.h:1213
static Address ReadTaggedSignedField(Address heap_object_ptr, int offset)
Definition: v8-internal.h:1451
static const int kOddballKindOffset
Definition: v8-internal.h:1002
static const int kBuiltinTier0TableSize
Definition: v8-internal.h:1031
static const int kExternalEntityTableSize
Definition: v8-internal.h:1042
static const int kFrameTypeApiConstructExit
Definition: v8-internal.h:1137
static const int kContinuationPreservedEmbedderDataOffset
Definition: v8-internal.h:1114
static const int kHandleScopeImplementerSize
Definition: v8-internal.h:1036
static const int kLastYoungAllocationOffset
Definition: v8-internal.h:1061
static const int kCurrentMicrotaskQueueOffset
Definition: v8-internal.h:1116
static Address ReadTaggedPointerField(Address heap_object_ptr, int offset)
Definition: v8-internal.h:1440
static const int kFrameTypeApiNamedAccessorExit
Definition: v8-internal.h:1138
static const int kNullValueRootIndex
Definition: v8-internal.h:1184
static void SetEmbedderData(v8::Isolate *isolate, uint32_t slot, void *data)
Definition: v8-internal.h:1355
static Address * GetRootSlot(v8::Isolate *isolate, int index)
Definition: v8-internal.h:1381
static const int kIsolateJSDispatchTableOffset
Definition: v8-internal.h:1107
static const int kTheHoleValueRootIndex
Definition: v8-internal.h:1183
static constexpr int SmiValue(Address value)
Definition: v8-internal.h:1242
static const int kTablesAlignmentPaddingSize
Definition: v8-internal.h:1028
static const int kHandleScopeDataSize
Definition: v8-internal.h:1034
static const int kExternalOneByteRepresentationTag
Definition: v8-internal.h:1019
static const int kBuiltinTier0EntryTableSize
Definition: v8-internal.h:1030
static void UpdateNodeFlag(Address *obj, bool value, int shift)
Definition: v8-internal.h:1339
static const int kCallbackInfoDataOffset
Definition: v8-internal.h:1022
static void IncrementLongTasksStatsCounter(v8::Isolate *isolate)
Definition: v8-internal.h:1375
static const int kDisallowGarbageCollectionSize
Definition: v8-internal.h:1143
static const int kOldAllocationInfoOffset
Definition: v8-internal.h:1059
static const int kIsolateEmbedderDataOffset
Definition: v8-internal.h:1082
static T ReadRawField(Address heap_object_ptr, int offset)
Definition: v8-internal.h:1424
static v8::Isolate * GetCurrentIsolate()
static constexpr int kFrameCPSlotCount
Definition: v8-internal.h:1126
static v8::Isolate * GetCurrentIsolateForSandbox()
Definition: v8-internal.h:1465
static int GetOddballKind(Address obj)
Definition: v8-internal.h:1308
static const int kNodeFlagsOffset
Definition: v8-internal.h:1190
static const int kRegExpStaticResultOffsetsVectorSize
Definition: v8-internal.h:1029
static const int kLastEmbedderJSApiObjectType
Definition: v8-internal.h:1204
static const int kVariousBooleanFlagsOffset
Definition: v8-internal.h:1048
static constexpr std::optional< Address > TryIntegralToSmi(T value)
Definition: v8-internal.h:1269
static const int kNodeClassIdOffset
Definition: v8-internal.h:1189
static const int kStringRepresentationAndEncodingMask
Definition: v8-internal.h:1016
static const int kJSObjectHeaderSize
Definition: v8-internal.h:1003
static const int kJSSpecialApiObjectType
Definition: v8-internal.h:1197
Definition: v8-internal.h:1587
StrongRootAllocatorBase(LocalIsolate *isolate)
Definition: v8-internal.h:1614
T value_type
Definition: v8-internal.h:1616
Definition: v8-internal.h:1797
static Address ValueAsAddress(const T *value)
Definition: v8-internal.h:1857
static T * ReprAsValue(InternalRepresentationType repr)
Definition: v8-internal.h:1873
internal::Address * InternalRepresentationType
Definition: v8-internal.h:1811
static T * SlotAsValue(S *slot)
Definition: v8-internal.h:1862
static T * HandleAsValue(const H< T, Ms... > &handle)
Definition: v8-internal.h:1825
static InternalRepresentationType ValueAsRepr(const T *value)
Definition: v8-internal.h:1867
static bool IsEmpty(T *value)
Definition: v8-internal.h:1816
static constexpr InternalRepresentationType kEmpty
Definition: v8-internal.h:1812
Definition: v8-internal.h:1662
constexpr WrappedIterator & operator-=(difference_type n) noexcept
Definition: v8-internal.h:1774
constexpr WrappedIterator operator--(int) noexcept
Definition: v8-internal.h:1751
constexpr WrappedIterator & operator+=(difference_type n) noexcept
Definition: v8-internal.h:1766
constexpr const Iterator & base() const noexcept
Definition: v8-internal.h:1788
std::conditional_t< std::is_void_v< ElementType >, typename std::iterator_traits< Iterator >::value_type, ElementType > value_type
Definition: v8-internal.h:1676
constexpr WrappedIterator & operator++() noexcept
Definition: v8-internal.h:1737
constexpr pointer operator->() const noexcept
Definition: v8-internal.h:1698
constexpr reference operator[](difference_type n) const noexcept
Definition: v8-internal.h:1783
typename std::iterator_traits< Iterator >::difference_type difference_type
Definition: v8-internal.h:1672
constexpr auto operator<=>(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1714
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:1684
constexpr WrappedIterator & operator--() noexcept
Definition: v8-internal.h:1747
constexpr WrappedIterator() noexcept=default
typename std::iterator_traits< Iterator >::iterator_category iterator_category
Definition: v8-internal.h:1686
constexpr reference operator*() const noexcept
Definition: v8-internal.h:1697
friend constexpr WrappedIterator operator+(difference_type n, const WrappedIterator &x) noexcept
Definition: v8-internal.h:1762
constexpr WrappedIterator operator++(int) noexcept
Definition: v8-internal.h:1741
constexpr WrappedIterator operator-(difference_type n) const noexcept
Definition: v8-internal.h:1770
std::conditional_t< std::is_void_v< ElementType >, typename std::iterator_traits< Iterator >::pointer, std::add_pointer_t< ElementType > > pointer
Definition: v8-internal.h:1680
constexpr bool operator==(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1707
Definition: v8-internal.h:1631
Definition: v8-internal.h:1628
const intptr_t kHeapObjectTagMask
Definition: v8-internal.h:61
constexpr uint64_t kCppHeapPointerMarkBit
Definition: v8-internal.h:428
constexpr bool kRuntimeGeneratedCodeObjectsLiveInTrustedSpace
Definition: v8-internal.h:946
internal::Isolate * IsolateFromNeverReadOnlySpaceObject(Address obj)
constexpr uint64_t kExternalPointerTagShift
Definition: v8-internal.h:378
IndirectPointerHandle TrustedPointerHandle
Definition: v8-internal.h:914
const int kApiSystemPointerSize
Definition: v8-internal.h:51
constexpr const char * ToString(ExternalPointerTag tag)
Definition: v8-internal.h:763
constexpr bool SandboxIsEnabled()
Definition: v8-internal.h:206
const int kApiDoubleSize
Definition: v8-internal.h:52
constexpr size_t kMaxCppHeapPointers
Definition: v8-internal.h:454
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:413
const intptr_t kForwardingTagMask
Definition: v8-internal.h:69
void PrintPropertyCallbackInfo(void *property_callback_info)
constexpr ExternalPointerTagRange kAnyManagedResourceExternalPointerTag(kFirstManagedResourceTag, kLastManagedResourceTag)
constexpr uint64_t kExternalPointerPayloadMask
Definition: v8-internal.h:385
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:379
constexpr uint64_t kCppHeapPointerTagMask
Definition: v8-internal.h:431
constexpr int kTrustedPointerTableEntrySizeLog2
Definition: v8-internal.h:931
constexpr int kTrustedPointerTableEntrySize
Definition: v8-internal.h:930
constexpr uint64_t kCppHeapPointerPayloadShift
Definition: v8-internal.h:430
constexpr ExternalPointer_t kNullExternalPointer
Definition: v8-internal.h:405
Address ExternalPointer_t
Definition: v8-internal.h:402
uint32_t IndirectPointerHandle
Definition: v8-internal.h:894
constexpr CppHeapPointer_t kNullCppHeapPointer
Definition: v8-internal.h:425
const int kApiSizetSize
Definition: v8-internal.h:55
constexpr uint64_t kExternalPointerTagAndMarkbitMask
Definition: v8-internal.h:384
constexpr size_t kMaxExternalPointers
Definition: v8-internal.h:373
constexpr ExternalPointerTagRange kAnySharedManagedExternalPointerTagRange(kFirstSharedManagedExternalPointerTag, kLastSharedManagedExternalPointerTag)
constexpr size_t kWasmCodePointerTableReservationSize
Definition: v8-internal.h:942
constexpr TrustedPointerHandle kNullTrustedPointerHandle
Definition: v8-internal.h:926
const int kWeakHeapObjectTag
Definition: v8-internal.h:59
constexpr ExternalPointerHandle kNullExternalPointerHandle
Definition: v8-internal.h:406
constexpr ExternalPointerTagRange kAnyMaybeReadOnlyExternalPointerTagRange(kFirstMaybeReadOnlyExternalPointerTag, kLastMaybeReadOnlyExternalPointerTag)
constexpr ExternalPointerTag kFirstSharedManagedExternalPointerTag
Definition: v8-internal.h:821
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:933
bool ShouldThrowOnError(internal::Isolate *isolate)
constexpr uint64_t kCppHeapPointerTagShift
Definition: v8-internal.h:429
constexpr ExternalPointerTagRange kAnyInterceptorInfoExternalPointerTagRange(kFirstInterceptorInfoExternalPointerTag, kLastInterceptorInfoExternalPointerTag)
constexpr ExternalPointerTag kFirstManagedExternalPointerTag
Definition: v8-internal.h:804
constexpr int KB
Definition: v8-internal.h:41
constexpr bool kBuiltinCodeObjectsLiveInTrustedSpace
Definition: v8-internal.h:947
constexpr uint32_t kTrustedPointerHandleShift
Definition: v8-internal.h:923
constexpr ExternalPointerTagRange kAnyManagedExternalPointerTagRange(kFirstManagedExternalPointerTag, kLastManagedExternalPointerTag)
const int kHeapObjectTag
Definition: v8-internal.h:58
const int kSmiShiftSize
Definition: v8-internal.h:190
SmiTagging< kApiTaggedSize > PlatformSmiTagging
Definition: v8-internal.h:185
ExternalPointerTag
Definition: v8-internal.h:684
@ kApiIndexedPropertyDescriptorCallbackTag
Definition: v8-internal.h:735
@ kFirstMaybeReadOnlyExternalPointerTag
Definition: v8-internal.h:718
@ kExternalPointerEvacuationEntryTag
Definition: v8-internal.h:757
@ kFirstSharedExternalPointerTag
Definition: v8-internal.h:696
@ kApiNamedPropertyDefinerCallbackTag
Definition: v8-internal.h:729
@ kLastSharedExternalPointerTag
Definition: v8-internal.h:700
@ kApiIndexedPropertySetterCallbackTag
Definition: v8-internal.h:734
@ kLastExternalPointerTag
Definition: v8-internal.h:760
@ kLastExternalTypeTag
Definition: v8-internal.h:712
@ kApiIndexedPropertyGetterCallbackTag
Definition: v8-internal.h:733
@ kApiNamedPropertyDescriptorCallbackTag
Definition: v8-internal.h:728
@ kAccessorInfoGetterTag
Definition: v8-internal.h:720
@ kApiIndexedPropertyDefinerCallbackTag
Definition: v8-internal.h:736
@ kFirstExternalTypeTag
Definition: v8-internal.h:711
@ kExternalStringResourceTag
Definition: v8-internal.h:698
@ kAccessorInfoSetterTag
Definition: v8-internal.h:721
@ kApiNamedPropertyDeleterCallbackTag
Definition: v8-internal.h:730
@ kApiNamedPropertyGetterCallbackTag
Definition: v8-internal.h:726
@ kApiNamedPropertySetterCallbackTag
Definition: v8-internal.h:727
@ kApiIndexedPropertyIndexOfCallbackTag
Definition: v8-internal.h:739
@ kApiIndexedPropertyEnumeratorCallbackTag
Definition: v8-internal.h:738
@ kExternalPointerFreeEntryTag
Definition: v8-internal.h:758
@ kFirstInterceptorInfoExternalPointerTag
Definition: v8-internal.h:724
@ kWaiterQueueNodeTag
Definition: v8-internal.h:697
@ kExternalPointerNullTag
Definition: v8-internal.h:686
@ kExternalStringResourceDataTag
Definition: v8-internal.h:699
@ kWasmStackMemoryTag
Definition: v8-internal.h:746
@ kLastManagedResourceTag
Definition: v8-internal.h:754
@ kFastApiExternalTypeTag
Definition: v8-internal.h:717
@ kExternalPointerZappedEntryTag
Definition: v8-internal.h:756
@ kApiNamedPropertyQueryCallbackTag
Definition: v8-internal.h:725
@ kFirstEmbedderDataTag
Definition: v8-internal.h:707
@ kApiIndexedPropertyQueryCallbackTag
Definition: v8-internal.h:732
@ kApiIndexedPropertyDeleterCallbackTag
Definition: v8-internal.h:737
@ kLastInterceptorInfoExternalPointerTag
Definition: v8-internal.h:741
@ kNativeContextMicrotaskQueueTag
Definition: v8-internal.h:704
@ kLastMaybeReadOnlyExternalPointerTag
Definition: v8-internal.h:744
@ kLastEmbedderDataTag
Definition: v8-internal.h:708
@ kArrayBufferExtensionTag
Definition: v8-internal.h:753
@ kFirstExternalPointerTag
Definition: v8-internal.h:685
@ kApiNamedPropertyEnumeratorCallbackTag
Definition: v8-internal.h:731
@ kFunctionTemplateInfoCallbackTag
Definition: v8-internal.h:719
@ kApiIndexedPropertyIterableToListCallbackTag
Definition: v8-internal.h:740
const int kSmiValueSize
Definition: v8-internal.h:191
constexpr ExternalPointerTag kLastSharedManagedExternalPointerTag
Definition: v8-internal.h:823
constexpr ExternalPointerTagRange kAnyForeignExternalPointerTagRange(kFirstForeignExternalPointerTag, kLastForeignExternalPointerTag)
constexpr bool SmiValuesAre32Bits()
Definition: v8-internal.h:195
constexpr ExternalPointerTag kLastManagedExternalPointerTag
Definition: v8-internal.h:806
TagRange< ExternalPointerTag > ExternalPointerTagRange
Definition: v8-internal.h:775
constexpr ExternalPointerTag kFirstForeignExternalPointerTag
Definition: v8-internal.h:794
constexpr IndirectPointerHandle kNullIndirectPointerHandle
Definition: v8-internal.h:897
uintptr_t Address
Definition: v8-internal.h:38
void PerformCastCheck(T *data)
Definition: v8-internal.h:1572
void PrintFunctionCallbackInfo(void *function_callback_info)
constexpr size_t kTrustedPointerTableReservationSize
Definition: v8-internal.h:919
uint32_t ExternalPointerHandle
Definition: v8-internal.h:394
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:948
const int kSmiTag
Definition: v8-internal.h:72
constexpr ExternalPointerTag kFirstManagedResourceTag
Definition: v8-internal.h:815
Address CppHeapPointer_t
Definition: v8-internal.h:422
constexpr CppHeapPointerHandle kNullCppHeapPointerHandle
Definition: v8-internal.h:426
constexpr int kGarbageCollectionReasonMaxValue
Definition: v8-internal.h:1583
const int kSmiMinValue
Definition: v8-internal.h:192
ManagedTypeId
Definition: v8-internal.h:589
@ kIcuBreakIteratorWithText
@ kTemporalPlainYearMonth
constexpr int MB
Definition: v8-internal.h:42
constexpr uint64_t kExternalPointerShiftedTagMask
Definition: v8-internal.h:380
constexpr uint64_t kExternalPointerMarkBit
Definition: v8-internal.h:377
Address SandboxedPointer_t
Definition: v8-internal.h:216
const int kApiTaggedSize
Definition: v8-internal.h:175
constexpr bool PointerCompressionIsEnabled()
Definition: v8-internal.h:178
constexpr ExternalPointerTag kLastForeignExternalPointerTag
Definition: v8-internal.h:796
Definition: libplatform.h:15
Definition: v8-internal.h:1556
static void Perform(T *data)
Definition: v8-internal.h:964
static constexpr uint32_t kSizeInBytes
Definition: v8-internal.h:965
typename Iterator::iterator_concept iterator_concept
Definition: v8-internal.h:1642
Definition: v8-internal.h:1638
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:528
constexpr size_t Size() const
Definition: v8-internal.h:555
constexpr bool IsEmpty() const
Definition: v8-internal.h:553
Tag last
Definition: v8-internal.h:586
Tag first
Definition: v8-internal.h:585
constexpr bool operator==(const TagRange other) const
Definition: v8-internal.h:575
constexpr bool Contains(Tag tag) const
Definition: v8-internal.h:563
constexpr TagRange()
Definition: v8-internal.h:550
constexpr TagRange(Tag tag)
Definition: v8-internal.h:546
constexpr size_t hash_value() const
Definition: v8-internal.h:579
constexpr TagRange(Tag first, Tag last)
Definition: v8-internal.h:534
constexpr bool Contains(TagRange tag_range) const
Definition: v8-internal.h:571
#define FOREIGN_TAG_LIST(V)
Definition: v8-internal.h:626
#define AS_ENUM(name)
Definition: v8-internal.h:748
#define V8_EXTERNAL_POINTER_TAG_COUNT
Definition: v8-internal.h:466
#define MANAGED_TAG_LIST(V)
Definition: v8-internal.h:614
#define SHARED_MANAGED_TAG_LIST(V)
Definition: v8-internal.h:612
#define GET_FIRST(LIST)
Definition: v8-internal.h:779
#define V8_EMBEDDER_DATA_TAG_COUNT
Definition: v8-internal.h:461
#define GET_LAST(LIST)
Definition: v8-internal.h:785
#define V8_EXPORT
Definition: v8config.h:874
#define V8_INLINE
Definition: v8config.h:518
#define V8_DEPRECATE_SOON(message)
Definition: v8config.h:631
#define V8_LIKELY(condition)
Definition: v8config.h:678