5#ifndef INCLUDE_V8_INTERNAL_H_
6#define INCLUDE_V8_INTERNAL_H_
39static constexpr Address kNullAddress = 0;
41constexpr int KB = 1024;
42constexpr int MB =
KB * 1024;
43constexpr int GB =
MB * 1024;
44#ifdef V8_TARGET_ARCH_X64
45constexpr size_t TB =
size_t{
GB} * 1024;
76template <
size_t tagged_ptr_size>
95 return static_cast<int32_t
>(
static_cast<uint32_t
>(value)) >> shift_bits;
98 template <
class T,
typename std::enable_if_t<std::is_
integral_v<T> &&
99 std::is_
signed_v<T>>* =
nullptr>
104 return (
static_cast<uintptr_t
>(value) -
111 typename std::enable_if_t<std::is_integral_v<T> &&
112 std::is_unsigned_v<T>>* =
nullptr>
114 static_assert(kSmiMaxValue <= std::numeric_limits<uintptr_t>::max());
121 return (
static_cast<uint64_t
>(value) -
128 static_assert(kSmiMaxValue <= std::numeric_limits<uint64_t>::max());
145 return static_cast<int>(
static_cast<intptr_t
>(value) >> shift_bits);
148 template <
class T,
typename std::enable_if_t<std::is_
integral_v<T> &&
149 std::is_
signed_v<T>>* =
nullptr>
152 return std::numeric_limits<int32_t>::min() <= value &&
153 value <= std::numeric_limits<int32_t>::max();
157 typename std::enable_if_t<std::is_integral_v<T> &&
158 std::is_unsigned_v<T>>* =
nullptr>
160 return value <= std::numeric_limits<int32_t>::max();
164#ifdef V8_COMPRESS_POINTERS
167constexpr size_t kPtrComprCageReservationSize =
size_t{1} << 32;
168constexpr size_t kPtrComprCageBaseAlignment =
size_t{1} << 32;
172 "Pointer compression can be enabled only for 64-bit architectures");
182#ifdef V8_31BIT_SMIS_ON_64BIT_ARCH
192const int kSmiMinValue =
static_cast<int>(PlatformSmiTagging::kSmiMinValue);
193const int kSmiMaxValue =
static_cast<int>(PlatformSmiTagging::kSmiMaxValue);
207#ifdef V8_ENABLE_SANDBOX
218#ifdef V8_ENABLE_SANDBOX
221#if defined(V8_TARGET_OS_ANDROID)
225constexpr size_t kSandboxSizeLog2 = 37;
226#elif defined(V8_TARGET_OS_IOS)
231constexpr size_t kSandboxSizeLog2 = 34;
234constexpr size_t kSandboxSizeLog2 = 40;
236constexpr size_t kSandboxSize = 1ULL << kSandboxSizeLog2;
243constexpr size_t kSandboxAlignment = kPtrComprCageBaseAlignment;
249constexpr uint64_t kSandboxedPointerShift = 64 - kSandboxSizeLog2;
261constexpr size_t kSandboxMinimumReservationSize = 8ULL *
GB;
263static_assert(kSandboxMinimumReservationSize > kPtrComprCageReservationSize,
264 "The minimum reservation size for a sandbox must be larger than "
265 "the pointer compression cage contained within it.");
271constexpr size_t kMaxSafeBufferSizeForSandbox = 32ULL *
GB - 1;
273constexpr size_t kBoundedSizeShift = 29;
274static_assert(1ULL << (64 - kBoundedSizeShift) ==
275 kMaxSafeBufferSizeForSandbox + 1,
276 "The maximum size of a BoundedSize must be synchronized with the "
277 "kMaxSafeBufferSizeForSandbox");
285constexpr size_t kSandboxGuardRegionSize =
286 32ULL *
GB + (kMaxSafeBufferSizeForSandbox + 1);
288static_assert((kSandboxGuardRegionSize % kSandboxAlignment) == 0,
289 "The size of the guard regions around the sandbox must be a "
290 "multiple of its required alignment.");
291static_assert(kMaxSafeBufferSizeForSandbox <= kSandboxGuardRegionSize,
292 "The maximum allowed buffer size must not be larger than the "
293 "sandbox's guard regions");
297#ifdef V8_COMPRESS_POINTERS
299#ifdef V8_TARGET_OS_ANDROID
305constexpr size_t kExternalPointerTableReservationSize = 256 *
MB;
311constexpr uint32_t kExternalPointerIndexShift = 7;
312#elif defined(V8_TARGET_OS_IOS)
317constexpr size_t kExternalPointerTableReservationSize = 128 *
MB;
318constexpr uint32_t kExternalPointerIndexShift = 8;
320constexpr size_t kExternalPointerTableReservationSize = 512 *
MB;
321constexpr uint32_t kExternalPointerIndexShift = 6;
325constexpr int kExternalPointerTableEntrySize = 8;
326constexpr int kExternalPointerTableEntrySizeLog2 = 3;
329 kExternalPointerTableReservationSize / kExternalPointerTableEntrySize;
331 "kExternalPointerTableReservationSize and "
332 "kExternalPointerIndexShift don't match");
363#ifdef V8_ENABLE_SANDBOX
383#ifdef V8_COMPRESS_POINTERS
396#ifdef V8_COMPRESS_POINTERS
400constexpr size_t kCppHeapPointerTableReservationSize =
401 kExternalPointerTableReservationSize;
402constexpr uint32_t kCppHeapPointerIndexShift = kExternalPointerIndexShift;
404constexpr int kCppHeapPointerTableEntrySize = 8;
405constexpr int kCppHeapPointerTableEntrySizeLog2 = 3;
407 kCppHeapPointerTableReservationSize / kCppHeapPointerTableEntrySize;
409 "kCppHeapPointerTableReservationSize and "
410 "kCppHeapPointerIndexShift don't match");
422#define V8_EMBEDDER_DATA_TAG_COUNT 15
427#define V8_EXTERNAL_POINTER_TAG_COUNT 40
485template <
typename Tag>
487 static_assert(std::is_enum_v<Tag> &&
488 std::is_same_v<std::underlying_type_t<Tag>, uint16_t>,
489 "Tag parameter must be an enum with base type uint16_t");
493#ifdef V8_ENABLE_CHECKS
495 if (
first >
last) __builtin_unreachable();
513 constexpr size_t Size()
const {
525 return static_cast<uint32_t
>(tag) -
static_cast<uint32_t
>(
first) <=
526 static_cast<uint32_t
>(
last) -
static_cast<uint32_t
>(
first);
538 static_assert(std::is_same_v<std::underlying_type_t<Tag>, uint16_t>);
539 return (
static_cast<size_t>(
first) << 16) |
last;
547#define SHARED_MANAGED_TAG_LIST(V) V(WasmFutexManagedObjectWaitListTag)
549#define MANAGED_TAG_LIST(V) \
550 SHARED_MANAGED_TAG_LIST(V) \
551 V(GenericManagedTag) \
552 V(WasmWasmStreamingTag) \
554 V(WasmManagedDataTag) \
555 V(WasmNativeModuleTag) \
557 V(CFunctionWithSignatureTag) \
558 V(IcuBreakIteratorTag) \
559 V(IcuListFormatterTag) \
561 V(IcuSimpleDateFormatTag) \
562 V(IcuDateIntervalFormatTag) \
563 V(IcuRelativeDateTimeFormatterTag) \
564 V(IcuLocalizedNumberFormatterTag) \
565 V(IcuPluralRulesTag) \
567 V(IcuBreakIteratorWithTextTag) \
568 V(TemporalDurationTag) \
569 V(TemporalInstantTag) \
570 V(TemporalPlainDateTag) \
571 V(TemporalPlainTimeTag) \
572 V(TemporalPlainDateTimeTag) \
573 V(TemporalPlainYearMonthTag) \
574 V(TemporalPlainMonthDayTag) \
575 V(TemporalZonedDateTimeTag) \
576 V(DisplayNamesInternalTag) \
578 V(D8ModuleEmbedderDataTag)
580#define FOREIGN_TAG_LIST(V) \
581 V(GenericForeignTag) \
582 V(ApiAccessCheckCallbackTag) \
583 V(ApiAbortScriptExecutionCallbackTag) \
584 V(SyntheticModuleTag) \
585 V(MicrotaskCallbackTag) \
586 V(MicrotaskCallbackDataTag) \
587 V(MessageListenerTag) \
588 V(WaiterQueueForeignTag) \
699#define AS_ENUM(name) k##name,
718#define ENUM_CASE(name) \
719 case ExternalPointerTag::k##name: \
726 return "Unknown tag";
732#define AS_LIST(name) ExternalPointerTag::k##name,
734#define GET_FIRST(LIST) \
736 ExternalPointerTag items[] = {LIST(AS_LIST)}; \
740#define GET_LAST(LIST) \
742 ExternalPointerTag items[] = {LIST(AS_LIST)}; \
743 return items[(sizeof(items) / sizeof(items[0])) - 1]; \
790V8_INLINE static constexpr bool IsSharedExternalPointerType(
797 return kAnySharedExternalPointerTagRange.Contains(tag_range) ||
804V8_INLINE static constexpr bool IsMaybeReadOnlyExternalPointerType(
813V8_INLINE static constexpr bool IsManagedExternalPointerType(
825V8_INLINE static constexpr bool ExternalPointerCanBeEmpty(
891 "kTrustedPointerTableReservationSize and "
892 "kTrustedPointerHandleShift don't match");
941 "kCodePointerTableReservationSize and kCodePointerHandleShift don't match");
957 "Use GetCurrentIsolate() instead, which is guaranteed to return the same "
958 "isolate since https://crrev.com/c/6458560.")
967 static constexpr uint32_t kSizeInBytes =
976 next = limit =
nullptr;
977 sealed_level = level = 0;
992 return mapword ^ kMapWordXorMask;
1006#ifdef V8_COMPRESS_POINTERS
1016#ifdef V8_ENABLE_SANDBOX
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 =
1104 static const int kIsolateCodePointerTableBaseAddressOffset =
1125#if V8_TARGET_ARCH_PPC64
1131#if V8_TARGET_ARCH_ARM64
1147#if V8_STATIC_ROOTS_BOOL
1150#define EXPORTED_STATIC_ROOTS_PTR_LIST(V) \
1151 V(UndefinedValue, 0x11) \
1152 V(NullValue, 0x2d) \
1153 V(TrueValue, 0x71) \
1154 V(FalseValue, 0x55) \
1155 V(EmptyString, 0x49) \
1158 V(TheHoleValue, kBuildDependentTheHoleValue)
1160 using Tagged_t = uint32_t;
1161 struct StaticReadOnlyRoot {
1162#ifdef V8_ENABLE_WEBASSEMBLY
1163 static constexpr Tagged_t kBuildDependentTheHoleValue = 0x2fffd;
1165 static constexpr Tagged_t kBuildDependentTheHoleValue = 0xfffd;
1168#define DEF_ROOT(name, value) static constexpr Tagged_t k##name = value;
1169 EXPORTED_STATIC_ROOTS_PTR_LIST(DEF_ROOT)
1173 static constexpr Tagged_t kStringMapLowerBound = 0;
1174 static constexpr Tagged_t kStringMapUpperBound = 0x425;
1176#define PLUSONE(...) +1
1177 static constexpr size_t kNumberOfExportedStaticRoots =
1178 2 + EXPORTED_STATIC_ROOTS_PTR_LIST(PLUSONE);
1222#ifdef V8_MAP_PACKING
1223 static const uintptr_t kMapWordMetadataMask = 0xffffULL << 48;
1225 static const uintptr_t kMapWordSignature = 0b10;
1230 static const int kMapWordXorMask = 0b11;
1235#ifdef V8_ENABLE_CHECKS
1245 return PlatformSmiTagging::SmiToInt(value);
1257 template <
typename T,
1258 typename std::enable_if_t<std::is_integral_v<T>>* =
nullptr>
1263 template <
typename T,
1264 typename std::enable_if_t<std::is_integral_v<T>>* =
nullptr>
1266 return PlatformSmiTagging::IsValidSmi(value);
1269 template <
typename T,
1270 typename std::enable_if_t<std::is_integral_v<T>>* =
nullptr>
1272 if (
V8_LIKELY(PlatformSmiTagging::IsValidSmi(value))) {
1278#if V8_STATIC_ROOTS_BOOL
1280 return static_cast<Tagged_t
>(obj) == constant;
1283 V8_INLINE static bool CheckInstanceMapRange(
Address obj, Tagged_t first_map,
1284 Tagged_t last_map) {
1286#ifdef V8_MAP_PACKING
1287 map = UnpackMapWord(map);
1289 return map >= first_map && map <= last_map;
1295#ifdef V8_MAP_PACKING
1296 map = UnpackMapWord(map);
1304#ifdef V8_MAP_PACKING
1305 map = UnpackMapWord(map);
1331 (
static_cast<unsigned>(
static_cast<unsigned>(instance_type) -
1338 return *addr &
static_cast<uint8_t
>(1U << shift);
1343 uint8_t mask =
static_cast<uint8_t
>(1U << shift);
1344 *addr =
static_cast<uint8_t
>((*addr & ~mask) | (value << shift));
1354 *addr =
static_cast<uint8_t
>((*addr & ~kNodeStateMask) | value);
1361 *
reinterpret_cast<void**
>(addr) = data;
1368 return *
reinterpret_cast<void* const*
>(addr);
1380 ++(*
reinterpret_cast<size_t*
>(addr));
1386 return reinterpret_cast<Address*
>(addr);
1390#if V8_STATIC_ROOTS_BOOL
1394#define DECOMPRESS_ROOT(name, ...) \
1395 case k##name##RootIndex: \
1396 return base + StaticReadOnlyRoot::k##name;
1397 EXPORTED_STATIC_ROOTS_PTR_LIST(DECOMPRESS_ROOT)
1398#undef DECOMPRESS_ROOT
1399#undef EXPORTED_STATIC_ROOTS_PTR_LIST
1407#ifdef V8_ENABLE_SANDBOX
1410 kIsolateExternalPointerTableOffset +
1412 return *
reinterpret_cast<Address**
>(addr);
1418 kIsolateSharedExternalPointerTableAddressOffset;
1419 addr = *
reinterpret_cast<Address*
>(addr);
1421 return *
reinterpret_cast<Address**
>(addr);
1425 template <
typename T>
1428#ifdef V8_COMPRESS_POINTERS
1435 memcpy(&r,
reinterpret_cast<void*
>(addr),
sizeof(T));
1439 return *
reinterpret_cast<const T*
>(addr);
1444#ifdef V8_COMPRESS_POINTERS
1445 uint32_t value = ReadRawField<uint32_t>(heap_object_ptr, offset);
1446 Address base = GetPtrComprCageBaseFromOnHeapAddress(heap_object_ptr);
1447 return base +
static_cast<Address>(
static_cast<uintptr_t
>(value));
1449 return ReadRawField<Address>(heap_object_ptr, offset);
1455#ifdef V8_COMPRESS_POINTERS
1456 uint32_t value = ReadRawField<uint32_t>(heap_object_ptr, offset);
1457 return static_cast<Address>(
static_cast<uintptr_t
>(value));
1459 return ReadRawField<Address>(heap_object_ptr, offset);
1468#ifdef V8_ENABLE_SANDBOX
1476 template <ExternalPo
interTagRange tag_range>
1480#ifdef V8_ENABLE_SANDBOX
1481 static_assert(!tag_range.IsEmpty());
1484 Address* table = IsSharedExternalPointerType(tag_range)
1485 ? GetSharedExternalPointerTableBase(isolate)
1486 : GetExternalPointerTableBase(isolate);
1488 ReadRawField<ExternalPointerHandle>(heap_object_ptr, offset);
1489 uint32_t index = handle >> kExternalPointerIndexShift;
1490 std::atomic<Address>* ptr =
1491 reinterpret_cast<std::atomic<Address>*
>(&table[index]);
1492 Address entry = std::atomic_load_explicit(ptr, std::memory_order_relaxed);
1495 if (
V8_LIKELY(tag_range.Contains(actual_tag))) {
1502 return ReadRawField<Address>(heap_object_ptr, offset);
1509#ifdef V8_ENABLE_SANDBOX
1512 Address* table = IsSharedExternalPointerType(tag_range)
1513 ? GetSharedExternalPointerTableBase(isolate)
1514 : GetExternalPointerTableBase(isolate);
1516 ReadRawField<ExternalPointerHandle>(heap_object_ptr, offset);
1517 uint32_t index = handle >> kExternalPointerIndexShift;
1518 std::atomic<Address>* ptr =
1519 reinterpret_cast<std::atomic<Address>*
>(&table[index]);
1520 Address entry = std::atomic_load_explicit(ptr, std::memory_order_relaxed);
1530 return ReadRawField<Address>(heap_object_ptr, offset);
1534#ifdef V8_COMPRESS_POINTERS
1536 return addr & -
static_cast<intptr_t
>(kPtrComprCageBaseAlignment);
1540 return static_cast<uint32_t
>(value);
1545 Address base = GetPtrComprCageBaseFromOnHeapAddress(heap_object_ptr);
1546 return base +
static_cast<Address>(
static_cast<uintptr_t
>(value));
1554template <
bool PerformCheck>
1572 CastCheck<std::is_base_of_v<Data, T> &&
1573 !std::is_same_v<Data, std::remove_cv_t<T>>>::Perform(data);
1588 Heap* heap()
const {
return heap_; }
1600 Address* allocate_impl(
size_t n);
1601 void deallocate_impl(
Address* p,
size_t n)
noexcept;
1612template <
typename T>
1617 template <
typename HeapOrIsolateT>
1619 template <
typename U>
1622 using std::allocator<T>::allocate;
1623 using std::allocator<T>::deallocate;
1626template <
typename Iterator>
1629template <
typename Iterator>
1631 requires {
typename Iterator::iterator_category; };
1636template <
typename Iterator>
1639template <HasIteratorConcept Iterator>
1641 using iterator_concept =
typename Iterator::iterator_concept;
1644template <
typename Iterator>
1648 typename std::iterator_traits<Iterator>::iterator_concept;
1655template <
typename Iterator,
typename ElementType =
void>
1659 std::is_void_v<ElementType> ||
1660 (std::is_convertible_v<typename std::iterator_traits<Iterator>::pointer,
1661 std::add_pointer_t<ElementType>> &&
1662 std::is_convertible_v<typename std::iterator_traits<Iterator>::reference,
1663 std::add_lvalue_reference_t<ElementType>>));
1666 typename std::iterator_traits<Iterator>::difference_type;
1668 std::conditional_t<std::is_void_v<ElementType>,
1669 typename std::iterator_traits<Iterator>::value_type,
1672 std::conditional_t<std::is_void_v<ElementType>,
1673 typename std::iterator_traits<Iterator>::pointer,
1674 std::add_pointer_t<ElementType>>;
1676 std::conditional_t<std::is_void_v<ElementType>,
1677 typename std::iterator_traits<Iterator>::reference,
1678 std::add_lvalue_reference_t<ElementType>>;
1680 typename std::iterator_traits<Iterator>::iterator_category;
1685 template <
typename OtherIterator,
typename OtherElementType>
1686 requires std::is_convertible_v<OtherIterator, Iterator>
1689 : it_(other.base()) {}
1693 if constexpr (std::is_pointer_v<Iterator>) {
1696 return it_.operator->();
1700 template <
typename OtherIterator,
typename OtherElementType>
1702 const WrappedIterator<OtherIterator, OtherElementType>& other)
1704 return it_ == other.base();
1707 template <
typename OtherIterator,
typename OtherElementType>
1711 if constexpr (std::three_way_comparable_with<Iterator, OtherIterator>) {
1712 return it_ <=> other.base();
1713 }
else if constexpr (std::totally_ordered_with<Iterator, OtherIterator>) {
1714 if (it_ < other.base()) {
1715 return std::strong_ordering::less;
1717 return (it_ > other.base()) ? std::strong_ordering::greater
1718 : std::strong_ordering::equal;
1720 if (it_ < other.base()) {
1721 return std::partial_ordering::less;
1723 if (other.base() < it_) {
1724 return std::partial_ordering::greater;
1726 return (it_ == other.base()) ? std::partial_ordering::equivalent
1727 : std::partial_ordering::unordered;
1771 template <
typename OtherIterator,
typename OtherElementType>
1775 return it_ - other.base();
1782 [[nodiscard]]
constexpr const Iterator&
base() const noexcept {
return it_; }
1799#ifdef V8_ENABLE_DIRECT_HANDLE
1800 static constexpr Address kTaggedNullAddress = 1;
1809 template <
typename T>
1817 template <
template <
typename T,
typename... Ms>
typename H,
typename T,
1820 return handle.template value<T>();
1823#ifdef V8_ENABLE_DIRECT_HANDLE
1825 template <
typename T>
1827 return reinterpret_cast<Address>(value);
1830 template <
typename T,
bool check_null = true,
typename S>
1832 if (check_null && slot ==
nullptr) {
1833 return reinterpret_cast<T*
>(kTaggedNullAddress);
1835 return *
reinterpret_cast<T**
>(slot);
1838 template <
typename T>
1843 template <
typename T>
1845 return reinterpret_cast<T*
>(repr);
1850 template <
typename T>
1855 template <
typename T,
bool check_null = true,
typename S>
1857 return reinterpret_cast<T*
>(slot);
1860 template <
typename T>
1866 template <
typename T>
1868 return reinterpret_cast<T*
>(repr);
1889 template <
typename T1,
typename T2>
1891 if (lhs.IsEmpty())
return rhs.IsEmpty();
1892 if (rhs.IsEmpty())
return false;
1893 return lhs.ptr() == rhs.ptr();
Definition: v8-isolate.h:291
Definition: v8-internal.h:1574
Definition: v8-internal.h:1873
static bool EqualHandles(const T1 &lhs, const T2 &rhs)
Definition: v8-internal.h:1886
static Address LoadMap(Address obj)
Definition: v8-internal.h:1297
static constexpr size_t kExternalAllocationSoftLimit
Definition: v8-internal.h:1216
static bool IsExternalTwoByteString(int instance_type)
Definition: v8-internal.h:1310
static const int kIsolateCageBaseOffset
Definition: v8-internal.h:1047
static const int kEmbedderDataArrayHeaderSize
Definition: v8-internal.h:1010
static const int kHeapObjectMapOffset
Definition: v8-internal.h:995
static const int kEmbedderDataSlotSize
Definition: v8-internal.h:1011
static const int kIsolateApiCallbackThunkArgumentOffset
Definition: v8-internal.h:1112
static Address ReadExternalPointerField(v8::Isolate *isolate, Address heap_object_ptr, int offset)
Definition: v8-internal.h:1473
static const int kJSAPIObjectWithEmbedderSlotsHeaderSize
Definition: v8-internal.h:1006
static constexpr bool HasHeapObjectTag(Address value)
Definition: v8-internal.h:1236
static const int kOddballType
Definition: v8-internal.h:1193
static const int kInferShouldThrowMode
Definition: v8-internal.h:1212
static const int kNewAllocationInfoOffset
Definition: v8-internal.h:1059
static Address GetRoot(v8::Isolate *isolate, int index)
Definition: v8-internal.h:1385
static const int kStringEncodingMask
Definition: v8-internal.h:1019
static const int kIsolateFastCCallCallerPcOffset
Definition: v8-internal.h:1069
static uint8_t GetNodeFlag(Address *obj, int shift)
Definition: v8-internal.h:1332
static const int kIsolateThreadLocalTopOffset
Definition: v8-internal.h:1078
static const uint32_t kNumIsolateDataSlots
Definition: v8-internal.h:1026
static const int kForeignType
Definition: v8-internal.h:1194
static const int kFirstEmbedderJSApiObjectType
Definition: v8-internal.h:1201
static const int kNumberOfBooleanFlags
Definition: v8-internal.h:1028
static uint8_t GetNodeState(Address *obj)
Definition: v8-internal.h:1343
static const int kThreadLocalTopSize
Definition: v8-internal.h:1035
static const int kIsolateRootsOffset
Definition: v8-internal.h:1118
static const int kFrameTypeApiCallExit
Definition: v8-internal.h:1134
static const int kUndefinedOddballKind
Definition: v8-internal.h:1205
static const int kMapInstanceTypeOffset
Definition: v8-internal.h:996
static constexpr Address AddressToSmi(Address value)
Definition: v8-internal.h:1244
static const int kIsolateStackGuardOffset
Definition: v8-internal.h:1048
static const int kLinearAllocationAreaSize
Definition: v8-internal.h:1034
static const int kFastCCallAlignmentPaddingSize
Definition: v8-internal.h:1066
static const int kDisallowGarbageCollectionAlign
Definition: v8-internal.h:1140
static const int kIsolateFastCCallCallerFpOffset
Definition: v8-internal.h:1072
static const int kErrorMessageParamSize
Definition: v8-internal.h:1029
static const int kSegmentedTableSegmentPoolSize
Definition: v8-internal.h:1041
static void CheckInitialized(v8::Isolate *isolate)
Definition: v8-internal.h:1230
static void UpdateNodeState(Address *obj, uint8_t value)
Definition: v8-internal.h:1348
static constexpr Address IntegralToSmi(T value)
Definition: v8-internal.h:1255
static constexpr bool IsValidSmi(T value)
Definition: v8-internal.h:1261
static const int kJSObjectType
Definition: v8-internal.h:1196
static const int kExternalEntityTableBasePointerOffset
Definition: v8-internal.h:1040
static const int kBuiltinTier0TableOffset
Definition: v8-internal.h:1057
static const int kIsolateLongTaskStatsCounterOffset
Definition: v8-internal.h:1076
static const int kNativeContextEmbedderDataOffset
Definition: v8-internal.h:1017
static const int kLastJSApiObjectType
Definition: v8-internal.h:1198
static constexpr bool CanHaveInternalField(int instance_type)
Definition: v8-internal.h:1320
static constexpr int kSPAlignmentSlotCount
Definition: v8-internal.h:1131
static const int kIsolateHandleScopeDataOffset
Definition: v8-internal.h:1080
static const int kFirstNonstringType
Definition: v8-internal.h:1192
static const int kEmptyStringRootIndex
Definition: v8-internal.h:1185
static const int kBuiltinTier0EntryTableOffset
Definition: v8-internal.h:1054
static const int kFrameTypeApiIndexedAccessorExit
Definition: v8-internal.h:1137
static const int kFixedArrayHeaderSize
Definition: v8-internal.h:1009
static const int kNullOddballKind
Definition: v8-internal.h:1206
static const int kUndefinedValueRootIndex
Definition: v8-internal.h:1180
static const int kExternalTwoByteRepresentationTag
Definition: v8-internal.h:1020
static constexpr Address IntToSmi(int value)
Definition: v8-internal.h:1249
static const int kDontThrow
Definition: v8-internal.h:1210
static void CheckInitializedImpl(v8::Isolate *isolate)
static void * GetEmbedderData(const v8::Isolate *isolate, uint32_t slot)
Definition: v8-internal.h:1360
static const int kStackGuardSize
Definition: v8-internal.h:1027
static const int kNodeStateMask
Definition: v8-internal.h:1189
static HandleScopeData * GetHandleScopeData(v8::Isolate *isolate)
Definition: v8-internal.h:1367
static const int kNodeStateIsWeakValue
Definition: v8-internal.h:1190
static const int kFirstJSApiObjectType
Definition: v8-internal.h:1197
static const int kStringResourceOffset
Definition: v8-internal.h:997
static bool IsExternalOneByteString(int instance_type)
Definition: v8-internal.h:1315
static const int kErrorMessageParamOffset
Definition: v8-internal.h:1052
static const int kFalseValueRootIndex
Definition: v8-internal.h:1184
static const int kIsolateRegexpExecVectorArgumentOffset
Definition: v8-internal.h:1114
static const int kIsolateFastApiCallTargetOffset
Definition: v8-internal.h:1074
static const int kTrueValueRootIndex
Definition: v8-internal.h:1183
static int GetInstanceType(Address obj)
Definition: v8-internal.h:1289
static const int kThrowOnError
Definition: v8-internal.h:1211
static Address ReadTaggedSignedField(Address heap_object_ptr, int offset)
Definition: v8-internal.h:1449
static const int kOddballKindOffset
Definition: v8-internal.h:1000
static const int kBuiltinTier0TableSize
Definition: v8-internal.h:1033
static const int kExternalEntityTableSize
Definition: v8-internal.h:1042
static const int kFrameTypeApiConstructExit
Definition: v8-internal.h:1135
static const int kContinuationPreservedEmbedderDataOffset
Definition: v8-internal.h:1116
static const int kLastYoungAllocationOffset
Definition: v8-internal.h:1063
static Address ReadTaggedPointerField(Address heap_object_ptr, int offset)
Definition: v8-internal.h:1438
static const int kFrameTypeApiNamedAccessorExit
Definition: v8-internal.h:1136
static const int kNullValueRootIndex
Definition: v8-internal.h:1182
static void SetEmbedderData(v8::Isolate *isolate, uint32_t slot, void *data)
Definition: v8-internal.h:1353
static Address * GetRootSlot(v8::Isolate *isolate, int index)
Definition: v8-internal.h:1379
static const int kIsolateJSDispatchTableOffset
Definition: v8-internal.h:1109
static const int kTheHoleValueRootIndex
Definition: v8-internal.h:1181
static constexpr int SmiValue(Address value)
Definition: v8-internal.h:1240
static const int kTablesAlignmentPaddingSize
Definition: v8-internal.h:1030
static const int kHandleScopeDataSize
Definition: v8-internal.h:1036
static const int kExternalOneByteRepresentationTag
Definition: v8-internal.h:1021
static const int kBuiltinTier0EntryTableSize
Definition: v8-internal.h:1032
static void UpdateNodeFlag(Address *obj, bool value, int shift)
Definition: v8-internal.h:1337
static const int kCallbackInfoDataOffset
Definition: v8-internal.h:1024
static void IncrementLongTasksStatsCounter(v8::Isolate *isolate)
Definition: v8-internal.h:1373
static const int kDisallowGarbageCollectionSize
Definition: v8-internal.h:1141
static const int kOldAllocationInfoOffset
Definition: v8-internal.h:1061
static const int kIsolateEmbedderDataOffset
Definition: v8-internal.h:1082
static T ReadRawField(Address heap_object_ptr, int offset)
Definition: v8-internal.h:1422
static v8::Isolate * GetCurrentIsolate()
static constexpr int kFrameCPSlotCount
Definition: v8-internal.h:1124
static const int kEmbedderDataSlotExternalPointerOffset
Definition: v8-internal.h:1015
static v8::Isolate * GetCurrentIsolateForSandbox()
Definition: v8-internal.h:1463
static int GetOddballKind(Address obj)
Definition: v8-internal.h:1306
static const int kNodeFlagsOffset
Definition: v8-internal.h:1188
static const int kRegExpStaticResultOffsetsVectorSize
Definition: v8-internal.h:1031
static const int kLastEmbedderJSApiObjectType
Definition: v8-internal.h:1202
static const int kVariousBooleanFlagsOffset
Definition: v8-internal.h:1050
static constexpr std::optional< Address > TryIntegralToSmi(T value)
Definition: v8-internal.h:1267
static const int kNodeClassIdOffset
Definition: v8-internal.h:1187
static const int kStringRepresentationAndEncodingMask
Definition: v8-internal.h:1018
static const int kJSObjectHeaderSize
Definition: v8-internal.h:1001
static const int kJSSpecialApiObjectType
Definition: v8-internal.h:1195
Definition: v8-internal.h:1582
StrongRootAllocatorBase(LocalIsolate *isolate)
Definition: v8-internal.h:1609
T value_type
Definition: v8-internal.h:1611
Definition: v8-internal.h:1787
static Address ValueAsAddress(const T *value)
Definition: v8-internal.h:1847
static T * ReprAsValue(InternalRepresentationType repr)
Definition: v8-internal.h:1863
internal::Address * InternalRepresentationType
Definition: v8-internal.h:1801
static T * SlotAsValue(S *slot)
Definition: v8-internal.h:1852
static T * HandleAsValue(const H< T, Ms... > &handle)
Definition: v8-internal.h:1815
static InternalRepresentationType ValueAsRepr(const T *value)
Definition: v8-internal.h:1857
static bool IsEmpty(T *value)
Definition: v8-internal.h:1806
static constexpr InternalRepresentationType kEmpty
Definition: v8-internal.h:1802
Definition: v8-internal.h:1652
constexpr WrappedIterator & operator-=(difference_type n) noexcept
Definition: v8-internal.h:1764
constexpr WrappedIterator operator--(int) noexcept
Definition: v8-internal.h:1741
constexpr WrappedIterator & operator+=(difference_type n) noexcept
Definition: v8-internal.h:1756
constexpr const Iterator & base() const noexcept
Definition: v8-internal.h:1778
std::conditional_t< std::is_void_v< ElementType >, typename std::iterator_traits< Iterator >::value_type, ElementType > value_type
Definition: v8-internal.h:1666
constexpr WrappedIterator & operator++() noexcept
Definition: v8-internal.h:1727
constexpr pointer operator->() const noexcept
Definition: v8-internal.h:1688
constexpr reference operator[](difference_type n) const noexcept
Definition: v8-internal.h:1773
typename std::iterator_traits< Iterator >::difference_type difference_type
Definition: v8-internal.h:1662
constexpr auto operator<=>(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1704
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:1674
constexpr WrappedIterator & operator--() noexcept
Definition: v8-internal.h:1737
constexpr WrappedIterator() noexcept=default
typename std::iterator_traits< Iterator >::iterator_category iterator_category
Definition: v8-internal.h:1676
constexpr reference operator*() const noexcept
Definition: v8-internal.h:1687
friend constexpr WrappedIterator operator+(difference_type n, const WrappedIterator &x) noexcept
Definition: v8-internal.h:1752
constexpr WrappedIterator operator++(int) noexcept
Definition: v8-internal.h:1731
constexpr WrappedIterator operator-(difference_type n) const noexcept
Definition: v8-internal.h:1760
std::conditional_t< std::is_void_v< ElementType >, typename std::iterator_traits< Iterator >::pointer, std::add_pointer_t< ElementType > > pointer
Definition: v8-internal.h:1670
constexpr bool operator==(const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
Definition: v8-internal.h:1697
Definition: v8-internal.h:1626
Definition: v8-internal.h:1623
const intptr_t kHeapObjectTagMask
Definition: v8-internal.h:61
constexpr uint64_t kCppHeapPointerMarkBit
Definition: v8-internal.h:392
constexpr int kCodePointerTableEntrySizeLog2
Definition: v8-internal.h:931
constexpr bool kRuntimeGeneratedCodeObjectsLiveInTrustedSpace
Definition: v8-internal.h:944
internal::Isolate * IsolateFromNeverReadOnlySpaceObject(Address obj)
constexpr uint64_t kExternalPointerTagShift
Definition: v8-internal.h:342
IndirectPointerHandle TrustedPointerHandle
Definition: v8-internal.h:865
const int kApiSystemPointerSize
Definition: v8-internal.h:51
constexpr const char * ToString(ExternalPointerTag tag)
Definition: v8-internal.h:714
constexpr bool SandboxIsEnabled()
Definition: v8-internal.h:206
const int kApiDoubleSize
Definition: v8-internal.h:52
constexpr size_t kMaxCppHeapPointers
Definition: v8-internal.h:415
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:377
const intptr_t kForwardingTagMask
Definition: v8-internal.h:69
void PrintPropertyCallbackInfo(void *property_callback_info)
constexpr ExternalPointerTagRange kAnyManagedResourceExternalPointerTag(kFirstManagedResourceTag, kLastManagedResourceTag)
IndirectPointerHandle CodePointerHandle
Definition: v8-internal.h:904
constexpr uint64_t kExternalPointerPayloadMask
Definition: v8-internal.h:349
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:343
constexpr int kCodePointerTableEntryCodeObjectOffset
Definition: v8-internal.h:940
constexpr int kTrustedPointerTableEntrySizeLog2
Definition: v8-internal.h:882
constexpr int kTrustedPointerTableEntrySize
Definition: v8-internal.h:881
constexpr uint64_t kCppHeapPointerPayloadShift
Definition: v8-internal.h:394
constexpr ExternalPointer_t kNullExternalPointer
Definition: v8-internal.h:369
Address ExternalPointer_t
Definition: v8-internal.h:366
uint32_t IndirectPointerHandle
Definition: v8-internal.h:845
constexpr CppHeapPointer_t kNullCppHeapPointer
Definition: v8-internal.h:389
const int kApiSizetSize
Definition: v8-internal.h:55
constexpr uint64_t kExternalPointerTagAndMarkbitMask
Definition: v8-internal.h:348
constexpr int kCodePointerTableEntryEntrypointOffset
Definition: v8-internal.h:939
constexpr size_t kMaxExternalPointers
Definition: v8-internal.h:337
constexpr ExternalPointerTagRange kAnySharedManagedExternalPointerTagRange(kFirstSharedManagedExternalPointerTag, kLastSharedManagedExternalPointerTag)
constexpr size_t kCodePointerTableReservationSize
Definition: v8-internal.h:909
constexpr TrustedPointerHandle kNullTrustedPointerHandle
Definition: v8-internal.h:877
const int kWeakHeapObjectTag
Definition: v8-internal.h:59
constexpr ExternalPointerHandle kNullExternalPointerHandle
Definition: v8-internal.h:370
constexpr ExternalPointerTagRange kAnyMaybeReadOnlyExternalPointerTagRange(kFirstMaybeReadOnlyExternalPointerTag, kLastMaybeReadOnlyExternalPointerTag)
constexpr ExternalPointerTag kFirstSharedManagedExternalPointerTag
Definition: v8-internal.h:772
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:884
bool ShouldThrowOnError(internal::Isolate *isolate)
constexpr uint64_t kCppHeapPointerTagShift
Definition: v8-internal.h:393
constexpr ExternalPointerTagRange kAnyInterceptorInfoExternalPointerTagRange(kFirstInterceptorInfoExternalPointerTag, kLastInterceptorInfoExternalPointerTag)
constexpr ExternalPointerTag kFirstManagedExternalPointerTag
Definition: v8-internal.h:755
constexpr int KB
Definition: v8-internal.h:41
constexpr bool kBuiltinCodeObjectsLiveInTrustedSpace
Definition: v8-internal.h:945
constexpr uint32_t kTrustedPointerHandleShift
Definition: v8-internal.h:874
constexpr uint32_t kCodePointerHandleShift
Definition: v8-internal.h:913
constexpr ExternalPointerTagRange kAnyManagedExternalPointerTagRange(kFirstManagedExternalPointerTag, kLastManagedExternalPointerTag)
const int kHeapObjectTag
Definition: v8-internal.h:58
const int kSmiShiftSize
Definition: v8-internal.h:190
constexpr size_t kMaxCodePointers
Definition: v8-internal.h:933
SmiTagging< kApiTaggedSize > PlatformSmiTagging
Definition: v8-internal.h:185
ExternalPointerTag
Definition: v8-internal.h:636
@ kApiIndexedPropertyDescriptorCallbackTag
Definition: v8-internal.h:687
@ kFirstMaybeReadOnlyExternalPointerTag
Definition: v8-internal.h:670
@ kExternalPointerEvacuationEntryTag
Definition: v8-internal.h:708
@ kFirstSharedExternalPointerTag
Definition: v8-internal.h:648
@ kApiNamedPropertyDefinerCallbackTag
Definition: v8-internal.h:681
@ kLastSharedExternalPointerTag
Definition: v8-internal.h:652
@ kApiIndexedPropertySetterCallbackTag
Definition: v8-internal.h:686
@ kLastExternalPointerTag
Definition: v8-internal.h:711
@ kLastExternalTypeTag
Definition: v8-internal.h:664
@ kApiIndexedPropertyGetterCallbackTag
Definition: v8-internal.h:685
@ kApiNamedPropertyDescriptorCallbackTag
Definition: v8-internal.h:680
@ kAccessorInfoGetterTag
Definition: v8-internal.h:672
@ kApiIndexedPropertyDefinerCallbackTag
Definition: v8-internal.h:688
@ kFirstExternalTypeTag
Definition: v8-internal.h:663
@ kExternalStringResourceTag
Definition: v8-internal.h:650
@ kAccessorInfoSetterTag
Definition: v8-internal.h:673
@ kApiNamedPropertyDeleterCallbackTag
Definition: v8-internal.h:682
@ kApiNamedPropertyGetterCallbackTag
Definition: v8-internal.h:678
@ kApiNamedPropertySetterCallbackTag
Definition: v8-internal.h:679
@ kApiIndexedPropertyIndexOfCallbackTag
Definition: v8-internal.h:691
@ kApiIndexedPropertyEnumeratorCallbackTag
Definition: v8-internal.h:690
@ kExternalPointerFreeEntryTag
Definition: v8-internal.h:709
@ kFirstInterceptorInfoExternalPointerTag
Definition: v8-internal.h:676
@ kWaiterQueueNodeTag
Definition: v8-internal.h:649
@ kExternalPointerNullTag
Definition: v8-internal.h:638
@ kExternalStringResourceDataTag
Definition: v8-internal.h:651
@ kWasmStackMemoryTag
Definition: v8-internal.h:697
@ kLastManagedResourceTag
Definition: v8-internal.h:705
@ kFastApiExternalTypeTag
Definition: v8-internal.h:669
@ kExternalPointerZappedEntryTag
Definition: v8-internal.h:707
@ kApiNamedPropertyQueryCallbackTag
Definition: v8-internal.h:677
@ kFirstEmbedderDataTag
Definition: v8-internal.h:659
@ kApiIndexedPropertyQueryCallbackTag
Definition: v8-internal.h:684
@ kApiIndexedPropertyDeleterCallbackTag
Definition: v8-internal.h:689
@ kLastInterceptorInfoExternalPointerTag
Definition: v8-internal.h:692
@ kNativeContextMicrotaskQueueTag
Definition: v8-internal.h:656
@ kLastMaybeReadOnlyExternalPointerTag
Definition: v8-internal.h:695
@ kLastEmbedderDataTag
Definition: v8-internal.h:660
@ kArrayBufferExtensionTag
Definition: v8-internal.h:704
@ kFirstExternalPointerTag
Definition: v8-internal.h:637
@ kApiNamedPropertyEnumeratorCallbackTag
Definition: v8-internal.h:683
@ kFunctionTemplateInfoCallbackTag
Definition: v8-internal.h:671
const int kSmiValueSize
Definition: v8-internal.h:191
constexpr ExternalPointerTag kLastSharedManagedExternalPointerTag
Definition: v8-internal.h:774
constexpr ExternalPointerTagRange kAnyForeignExternalPointerTagRange(kFirstForeignExternalPointerTag, kLastForeignExternalPointerTag)
constexpr bool SmiValuesAre32Bits()
Definition: v8-internal.h:195
constexpr ExternalPointerTag kLastManagedExternalPointerTag
Definition: v8-internal.h:757
TagRange< ExternalPointerTag > ExternalPointerTagRange
Definition: v8-internal.h:726
constexpr ExternalPointerTag kFirstForeignExternalPointerTag
Definition: v8-internal.h:745
constexpr IndirectPointerHandle kNullIndirectPointerHandle
Definition: v8-internal.h:848
uintptr_t Address
Definition: v8-internal.h:38
void PerformCastCheck(T *data)
Definition: v8-internal.h:1567
void PrintFunctionCallbackInfo(void *function_callback_info)
constexpr size_t kTrustedPointerTableReservationSize
Definition: v8-internal.h:870
uint32_t ExternalPointerHandle
Definition: v8-internal.h:358
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:946
const int kSmiTag
Definition: v8-internal.h:72
constexpr ExternalPointerTag kFirstManagedResourceTag
Definition: v8-internal.h:766
constexpr CodePointerHandle kNullCodePointerHandle
Definition: v8-internal.h:916
Address CppHeapPointer_t
Definition: v8-internal.h:386
constexpr CppHeapPointerHandle kNullCppHeapPointerHandle
Definition: v8-internal.h:390
constexpr int kGarbageCollectionReasonMaxValue
Definition: v8-internal.h:1578
constexpr int kCodePointerTableEntrySize
Definition: v8-internal.h:930
constexpr uint32_t kCodePointerHandleMarker
Definition: v8-internal.h:925
const int kSmiMinValue
Definition: v8-internal.h:192
constexpr int MB
Definition: v8-internal.h:42
constexpr uint64_t kExternalPointerShiftedTagMask
Definition: v8-internal.h:344
constexpr uint64_t kExternalPointerMarkBit
Definition: v8-internal.h:341
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:747
Definition: libplatform.h:15
Definition: v8-internal.h:1551
static void Perform(T *data)
Definition: v8-internal.h:962
static constexpr uint32_t kSizeInBytes
Definition: v8-internal.h:963
typename Iterator::iterator_concept iterator_concept
Definition: v8-internal.h:1637
Definition: v8-internal.h:1633
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:486
constexpr size_t Size() const
Definition: v8-internal.h:513
constexpr bool IsEmpty() const
Definition: v8-internal.h:511
Tag last
Definition: v8-internal.h:544
Tag first
Definition: v8-internal.h:543
constexpr bool operator==(const TagRange other) const
Definition: v8-internal.h:533
constexpr bool Contains(Tag tag) const
Definition: v8-internal.h:521
constexpr TagRange()
Definition: v8-internal.h:508
constexpr TagRange(Tag tag)
Definition: v8-internal.h:504
constexpr size_t hash_value() const
Definition: v8-internal.h:537
constexpr TagRange(Tag first, Tag last)
Definition: v8-internal.h:492
constexpr bool Contains(TagRange tag_range) const
Definition: v8-internal.h:529
#define FOREIGN_TAG_LIST(V)
Definition: v8-internal.h:580
#define AS_ENUM(name)
Definition: v8-internal.h:699
#define V8_EXTERNAL_POINTER_TAG_COUNT
Definition: v8-internal.h:427
#define MANAGED_TAG_LIST(V)
Definition: v8-internal.h:549
#define SHARED_MANAGED_TAG_LIST(V)
Definition: v8-internal.h:547
#define GET_FIRST(LIST)
Definition: v8-internal.h:730
#define V8_EMBEDDER_DATA_TAG_COUNT
Definition: v8-internal.h:422
#define GET_LAST(LIST)
Definition: v8-internal.h:736
#define V8_EXPORT
Definition: v8config.h:854
#define V8_INLINE
Definition: v8config.h:508
#define V8_DEPRECATE_SOON(message)
Definition: v8config.h:621
#define V8_LIKELY(condition)
Definition: v8config.h:668