![]() |
v8 14.1.146 (node 25.0.0)
V8 is Google's open source JavaScript engine
|
#include <v8-internal.h>
Public Member Functions | |
| V8_DEPRECATED ("Use GetCurrentIsolateForSandbox() instead, which is guaranteed to " "return the same isolate since https://crrev.com/c/6458560.") V8_INLINE static v8 | |
Static Public Member Functions | |
| static V8_EXPORT void | CheckInitializedImpl (v8::Isolate *isolate) |
| static V8_INLINE void | CheckInitialized (v8::Isolate *isolate) |
| static V8_INLINE constexpr bool | HasHeapObjectTag (Address value) |
| static V8_INLINE constexpr int | SmiValue (Address value) |
| static V8_INLINE constexpr Address | AddressToSmi (Address value) |
| static V8_INLINE constexpr Address | IntToSmi (int value) |
| template<typename T , typename std::enable_if_t< std::is_integral_v< T > > * = nullptr> | |
| static V8_INLINE constexpr Address | IntegralToSmi (T value) |
| template<typename T , typename std::enable_if_t< std::is_integral_v< T > > * = nullptr> | |
| static V8_INLINE constexpr bool | IsValidSmi (T value) |
| template<typename T , typename std::enable_if_t< std::is_integral_v< T > > * = nullptr> | |
| static constexpr std::optional< Address > | TryIntegralToSmi (T value) |
| static V8_INLINE int | GetInstanceType (Address obj) |
| static V8_INLINE Address | LoadMap (Address obj) |
| static V8_INLINE int | GetOddballKind (Address obj) |
| static V8_INLINE bool | IsExternalTwoByteString (int instance_type) |
| static V8_INLINE constexpr bool | CanHaveInternalField (int instance_type) |
| static V8_INLINE uint8_t | GetNodeFlag (Address *obj, int shift) |
| static V8_INLINE void | UpdateNodeFlag (Address *obj, bool value, int shift) |
| static V8_INLINE uint8_t | GetNodeState (Address *obj) |
| static V8_INLINE void | UpdateNodeState (Address *obj, uint8_t value) |
| static V8_INLINE void | SetEmbedderData (v8::Isolate *isolate, uint32_t slot, void *data) |
| static V8_INLINE void * | GetEmbedderData (const v8::Isolate *isolate, uint32_t slot) |
| static V8_INLINE HandleScopeData * | GetHandleScopeData (v8::Isolate *isolate) |
| static V8_INLINE void | IncrementLongTasksStatsCounter (v8::Isolate *isolate) |
| static V8_INLINE Address * | GetRootSlot (v8::Isolate *isolate, int index) |
| static V8_INLINE Address | GetRoot (v8::Isolate *isolate, int index) |
| template<typename T > | |
| static V8_INLINE T | ReadRawField (Address heap_object_ptr, int offset) |
| static V8_INLINE Address | ReadTaggedPointerField (Address heap_object_ptr, int offset) |
| static V8_INLINE Address | ReadTaggedSignedField (Address heap_object_ptr, int offset) |
| static V8_EXPORT v8::Isolate * | GetCurrentIsolate () |
| static V8_INLINE v8::Isolate * | GetCurrentIsolateForSandbox () |
| template<ExternalPointerTagRange tag_range> | |
| static V8_INLINE Address | ReadExternalPointerField (v8::Isolate *isolate, Address heap_object_ptr, int offset) |
This class exports constants and functionality from within v8 that is necessary to implement inline functions in the v8 api. Don't depend on functions and constants defined here.
Definition at line 883 of file v8-internal.h.
Definition at line 1134 of file v8-internal.h.
References SmiTagging< 8 >::kSmiShiftSize, v8::internal::kSmiTag, and v8::internal::kSmiTagSize.
Referenced by Internals::IntegralToSmi(), Internals::IntToSmi(), and Internals::TryIntegralToSmi().
|
inlinestaticconstexpr |
Definition at line 1205 of file v8-internal.h.
References Internals::kFirstJSApiObjectType, Internals::kJSObjectType, Internals::kJSSpecialApiObjectType, and Internals::kLastJSApiObjectType.
Referenced by Object::GetAlignedPointerFromInternalField(), Object::GetAlignedPointerFromInternalField(), and Object::GetInternalField().
|
inlinestatic |
Definition at line 1120 of file v8-internal.h.
Referenced by String::Empty().
|
static |
|
static |
Referenced by Context::GetEmbedderData(), and Object::GetInternalField().
|
inlinestatic |
Definition at line 1360 of file v8-internal.h.
Referenced by Context::GetAlignedPointerFromEmbedderData(), Object::GetAlignedPointerFromInternalField(), String::GetExternalStringResource(), and String::GetExternalStringResourceBase().
|
inlinestatic |
Definition at line 1245 of file v8-internal.h.
References v8::internal::kApiSystemPointerSize, and Internals::kIsolateEmbedderDataOffset.
Referenced by Isolate::GetData().
|
inlinestatic |
Definition at line 1252 of file v8-internal.h.
References Internals::kIsolateHandleScopeDataOffset.
Referenced by HandleScope::CreateHandle(), HandleScope::Initialize(), and HandleScope::~HandleScope().
Definition at line 1179 of file v8-internal.h.
References Internals::kHeapObjectMapOffset, Internals::kMapInstanceTypeOffset, and Internals::ReadTaggedPointerField().
Referenced by Object::GetAlignedPointerFromInternalField(), Object::GetAlignedPointerFromInternalField(), String::GetExternalStringResource(), String::GetExternalStringResourceBase(), String::GetExternalStringResourceBase(), and Object::GetInternalField().
Definition at line 1217 of file v8-internal.h.
References Internals::kNodeFlagsOffset.
Definition at line 1228 of file v8-internal.h.
References Internals::kNodeFlagsOffset, and Internals::kNodeStateMask.
Referenced by PersistentBase< T >::IsWeak().
Definition at line 1196 of file v8-internal.h.
References Internals::kOddballKindOffset, Internals::ReadTaggedSignedField(), and Internals::SmiValue().
|
inlinestatic |
Definition at line 1270 of file v8-internal.h.
References Internals::GetRootSlot().
Referenced by ReturnValue< T >::Set(), ReturnValue< T >::SetEmptyString(), ReturnValue< T >::SetFalse(), ReturnValue< T >::SetNull(), and ReturnValue< T >::SetUndefined().
|
inlinestatic |
Definition at line 1264 of file v8-internal.h.
References v8::internal::kApiSystemPointerSize, and Internals::kIsolateRootsOffset.
Referenced by String::Empty(), and Internals::GetRoot().
Definition at line 1126 of file v8-internal.h.
References v8::internal::kHeapObjectTag, and v8::internal::kHeapObjectTagMask.
Referenced by PropertyCallbackInfo< T >::HolderV2(), and Internals::LoadMap().
|
inlinestatic |
Definition at line 1258 of file v8-internal.h.
References Internals::kIsolateLongTaskStatsCounterOffset.
Referenced by LongTaskStats::Reset().
|
inlinestaticconstexpr |
Definition at line 1145 of file v8-internal.h.
References Internals::AddressToSmi().
Definition at line 1139 of file v8-internal.h.
References Internals::AddressToSmi().
|
inlinestatic |
Definition at line 1200 of file v8-internal.h.
References Internals::kExternalTwoByteRepresentationTag, and Internals::kStringRepresentationAndEncodingMask.
Referenced by String::GetExternalStringResource().
|
inlinestaticconstexpr |
Definition at line 1151 of file v8-internal.h.
Definition at line 1187 of file v8-internal.h.
References Internals::HasHeapObjectTag(), Internals::kHeapObjectMapOffset, and Internals::ReadTaggedPointerField().
Referenced by TypecheckWitness::Matches().
|
inlinestatic |
Definition at line 1370 of file v8-internal.h.
|
inlinestatic |
Definition at line 1307 of file v8-internal.h.
References v8::internal::kHeapObjectTag.
|
inlinestatic |
Definition at line 1323 of file v8-internal.h.
Referenced by Context::GetAlignedPointerFromEmbedderData(), Context::GetAlignedPointerFromEmbedderData(), Context::GetEmbedderData(), Internals::GetInstanceType(), and Internals::LoadMap().
Definition at line 1334 of file v8-internal.h.
Referenced by Internals::GetOddballKind().
|
inlinestatic |
Definition at line 1238 of file v8-internal.h.
References v8::internal::kApiSystemPointerSize, and Internals::kIsolateEmbedderDataOffset.
Referenced by Isolate::SetData().
Definition at line 1130 of file v8-internal.h.
References SmiTagging< 8 >::SmiToInt().
Referenced by Internals::GetOddballKind().
|
inlinestaticconstexpr |
Definition at line 1157 of file v8-internal.h.
References Internals::AddressToSmi().
Definition at line 1222 of file v8-internal.h.
References Internals::kNodeFlagsOffset.
Definition at line 1233 of file v8-internal.h.
References Internals::kNodeFlagsOffset, and Internals::kNodeStateMask.
|
inline |
Definition at line 1344 of file v8-internal.h.
|
static |
Definition at line 954 of file v8-internal.h.
|
static |
Definition at line 928 of file v8-internal.h.
|
static |
Definition at line 957 of file v8-internal.h.
|
static |
Definition at line 929 of file v8-internal.h.
|
static |
Definition at line 1016 of file v8-internal.h.
|
static |
Definition at line 1022 of file v8-internal.h.
|
static |
Definition at line 1023 of file v8-internal.h.
|
static |
Definition at line 1100 of file v8-internal.h.
Referenced by PropertyCallbackInfo< T >::ShouldThrowOnError().
|
static |
Definition at line 909 of file v8-internal.h.
Referenced by Context::GetAlignedPointerFromEmbedderData(), Context::GetAlignedPointerFromEmbedderData(), and Context::GetEmbedderData().
|
static |
Definition at line 914 of file v8-internal.h.
Referenced by Context::GetAlignedPointerFromEmbedderData(), Context::GetAlignedPointerFromEmbedderData(), Object::GetAlignedPointerFromInternalField(), and Object::GetAlignedPointerFromInternalField().
|
static |
Definition at line 910 of file v8-internal.h.
Referenced by Context::GetAlignedPointerFromEmbedderData(), Context::GetAlignedPointerFromEmbedderData(), Object::GetAlignedPointerFromInternalField(), Object::GetAlignedPointerFromInternalField(), Context::GetEmbedderData(), and Object::GetInternalField().
|
static |
Definition at line 1075 of file v8-internal.h.
Referenced by String::Empty(), and ReturnValue< T >::SetEmptyString().
|
static |
Definition at line 952 of file v8-internal.h.
|
static |
Definition at line 925 of file v8-internal.h.
|
staticconstexpr |
Definition at line 1106 of file v8-internal.h.
|
static |
Definition at line 920 of file v8-internal.h.
Referenced by String::GetExternalStringResourceBase(), and String::GetExternalStringResourceBase().
|
static |
Definition at line 936 of file v8-internal.h.
|
static |
Definition at line 938 of file v8-internal.h.
|
static |
Definition at line 919 of file v8-internal.h.
Referenced by String::GetExternalStringResourceBase(), String::GetExternalStringResourceBase(), and Internals::IsExternalTwoByteString().
|
static |
Definition at line 1074 of file v8-internal.h.
Referenced by ReturnValue< T >::Set(), and ReturnValue< T >::SetFalse().
|
static |
Definition at line 966 of file v8-internal.h.
|
static |
Definition at line 1091 of file v8-internal.h.
|
static |
Definition at line 1087 of file v8-internal.h.
Referenced by Internals::CanHaveInternalField().
|
static |
Definition at line 1082 of file v8-internal.h.
|
static |
Definition at line 908 of file v8-internal.h.
|
static |
Definition at line 1084 of file v8-internal.h.
|
static |
Definition at line 932 of file v8-internal.h.
|
static |
Definition at line 894 of file v8-internal.h.
Referenced by Internals::GetInstanceType(), and Internals::LoadMap().
|
static |
Definition at line 1102 of file v8-internal.h.
Referenced by PropertyCallbackInfo< T >::ShouldThrowOnError().
|
static |
Definition at line 1009 of file v8-internal.h.
|
static |
Definition at line 947 of file v8-internal.h.
|
static |
Definition at line 982 of file v8-internal.h.
Referenced by Internals::GetEmbedderData(), and Internals::SetEmbedderData().
|
static |
Definition at line 974 of file v8-internal.h.
|
static |
Definition at line 972 of file v8-internal.h.
|
static |
Definition at line 969 of file v8-internal.h.
|
static |
Definition at line 980 of file v8-internal.h.
Referenced by Internals::GetHandleScopeData().
|
static |
Definition at line 976 of file v8-internal.h.
Referenced by Internals::IncrementLongTasksStatsCounter().
|
static |
Definition at line 1014 of file v8-internal.h.
|
static |
Definition at line 1018 of file v8-internal.h.
Referenced by Internals::GetRootSlot().
|
static |
Definition at line 948 of file v8-internal.h.
|
static |
Definition at line 978 of file v8-internal.h.
|
static |
Definition at line 905 of file v8-internal.h.
Referenced by Object::GetAlignedPointerFromInternalField(), Object::GetAlignedPointerFromInternalField(), and Object::GetInternalField().
|
static |
Definition at line 1012 of file v8-internal.h.
|
static |
Definition at line 900 of file v8-internal.h.
Referenced by Object::Unwrap(), Object::Unwrap(), Object::Unwrap(), Object::Unwrap(), Object::Unwrap(), and Object::Unwrap().
|
static |
Definition at line 1086 of file v8-internal.h.
Referenced by Internals::CanHaveInternalField().
|
static |
Definition at line 1085 of file v8-internal.h.
Referenced by Internals::CanHaveInternalField().
|
static |
Definition at line 1092 of file v8-internal.h.
|
static |
Definition at line 1088 of file v8-internal.h.
Referenced by Internals::CanHaveInternalField().
|
static |
Definition at line 963 of file v8-internal.h.
|
static |
Definition at line 930 of file v8-internal.h.
|
static |
Definition at line 895 of file v8-internal.h.
Referenced by Internals::GetInstanceType().
|
static |
Definition at line 916 of file v8-internal.h.
Referenced by Context::GetAlignedPointerFromEmbedderData(), Context::GetAlignedPointerFromEmbedderData(), and Context::GetEmbedderData().
|
static |
Definition at line 959 of file v8-internal.h.
|
static |
Definition at line 1077 of file v8-internal.h.
Referenced by PersistentBase< T >::SetWrapperClassId(), and PersistentBase< T >::WrapperClassId().
|
static |
Definition at line 1078 of file v8-internal.h.
Referenced by Internals::GetNodeFlag(), Internals::GetNodeState(), Internals::UpdateNodeFlag(), and Internals::UpdateNodeState().
|
static |
Definition at line 1080 of file v8-internal.h.
Referenced by PersistentBase< T >::IsWeak().
|
static |
Definition at line 1079 of file v8-internal.h.
Referenced by Internals::GetNodeState(), and Internals::UpdateNodeState().
|
static |
Definition at line 1096 of file v8-internal.h.
|
static |
Definition at line 1072 of file v8-internal.h.
Referenced by ReturnValue< T >::SetNull().
|
static |
Definition at line 924 of file v8-internal.h.
|
static |
Definition at line 922 of file v8-internal.h.
Referenced by Isolate::GetNumberOfDataSlots().
|
static |
Definition at line 899 of file v8-internal.h.
Referenced by Internals::GetOddballKind().
|
static |
Definition at line 1083 of file v8-internal.h.
|
static |
Definition at line 961 of file v8-internal.h.
|
static |
Definition at line 927 of file v8-internal.h.
|
static |
Definition at line 937 of file v8-internal.h.
|
static |
Definition at line 923 of file v8-internal.h.
|
static |
Definition at line 918 of file v8-internal.h.
Referenced by String::GetExternalStringResourceBase(), and String::GetExternalStringResourceBase().
|
static |
Definition at line 917 of file v8-internal.h.
Referenced by String::GetExternalStringResourceBase(), String::GetExternalStringResourceBase(), and Internals::IsExternalTwoByteString().
|
static |
Definition at line 896 of file v8-internal.h.
Referenced by String::GetExternalStringResource(), String::GetExternalStringResourceBase(), and String::GetExternalStringResourceBase().
|
static |
Definition at line 926 of file v8-internal.h.
|
static |
Definition at line 1071 of file v8-internal.h.
|
static |
Definition at line 931 of file v8-internal.h.
|
static |
Definition at line 1101 of file v8-internal.h.
|
static |
Definition at line 1073 of file v8-internal.h.
Referenced by ReturnValue< T >::Set().
|
static |
Definition at line 944 of file v8-internal.h.
|
static |
Definition at line 941 of file v8-internal.h.
|
static |
Definition at line 1095 of file v8-internal.h.
|
static |
Definition at line 1070 of file v8-internal.h.
Referenced by ReturnValue< T >::SetUndefined().
|
static |
Definition at line 950 of file v8-internal.h.