V8 Enumerations
All 93 V8 and v8_inspector TypeScript enums generated from upstream V8 C++ headers
All 93 enumerations exported by @browser-ports/v8-wasm (and available on the v8 namespace), generated directly from upstream V8 C++ headers.
AccessType
Access type specification.
Upstream C++: v8::AccessType (v8-callbacks.h)
| Member | Value | Description |
|---|---|---|
ACCESS_DELETE | 3 | — |
ACCESS_GET | 0 | — |
ACCESS_HAS | 2 | — |
ACCESS_KEYS | 4 | — |
ACCESS_SET | 1 | — |
ActivityControlControlOption
Upstream V8 C++ enum v8::ActivityControl::ControlOption (v8-profiler.h).
| Member | Value | Description |
|---|---|---|
kAbort | 1 | — |
kContinue | 0 | — |
ArrayBufferAllocatorAllocationMode
ArrayBuffer allocation mode. kNormal is a malloc/free style allocation, while kReservation is for larger allocations with the ability to set access permissions.
Upstream C++: v8::ArrayBuffer::Allocator::AllocationMode (v8-array-buffer.h)
| Member | Value | Description |
|---|---|---|
kNormal | 0 | ArrayBuffer allocation mode. kNormal is a malloc/free style allocation, while kReservation is for larger allocations with the ability to set access permissions. |
kReservation | 1 | ArrayBuffer allocation mode. kNormal is a malloc/free style allocation, while kReservation is for larger allocations with the ability to set access permissions. |
ArrayBufferCreationMode
Upstream V8 C++ enum v8::ArrayBufferCreationMode (v8-array-buffer.h).
| Member | Value | Description |
|---|---|---|
kExternalized | 1 | — |
kInternalized | 0 | — |
ArrayCallbackResult
Upstream V8 C++ enum v8::Array::CallbackResult (v8-container.h).
| Member | Value | Description |
|---|---|---|
kBreak | 1 | — |
kContinue | 2 | — |
kException | 0 | — |
BackingStoreInitializationMode
Upstream V8 C++ enum v8::BackingStoreInitializationMode (v8-array-buffer.h).
| Member | Value | Description |
|---|---|---|
kUninitialized | 1 | — |
kZeroInitialized | 0 | — |
BackingStoreOnFailureMode
Upstream V8 C++ enum v8::BackingStoreOnFailureMode (v8-array-buffer.h).
| Member | Value | Description |
|---|---|---|
kOutOfMemory | 1 | — |
kReturnNull | 0 | — |
BlockingType
BlockingType indicates the likelihood that a blocking call will actually block.
Upstream C++: v8::BlockingType (v8-platform.h)
| Member | Value | Description |
|---|---|---|
kMayBlock | 0 | The call might block (e.g. file I/O that might hit in memory cache). |
kWillBlock | 1 | The call will definitely block (e.g. cache already checked and now pinging server synchronously). |
CodeEventType
Note that this enum may be extended in the future. Please include a default case if this enum is used in a switch statement.
Upstream C++: v8::CodeEventType (v8-profiler.h)
| Member | Value | Description |
|---|---|---|
kBuiltinType | 1 | — |
kBytecodeHandlerType | 7 | — |
kCallbackType | 2 | — |
kEvalType | 3 | — |
kFunctionType | 4 | — |
kHandlerType | 6 | — |
kInterpretedFunctionType | 5 | — |
kLazyCompileType | 8 | — |
kRegExpType | 9 | — |
kRelocationType | 12 | — |
kScriptType | 10 | — |
kStubType | 11 | — |
kUnknownType | 0 | — |
ConstructorBehavior
Upstream V8 C++ enum v8::ConstructorBehavior (v8-template.h).
| Member | Value | Description |
|---|---|---|
kAllow | 1 | — |
kThrow | 0 | — |
ContextDependants
Signal for dependants of contexts. Useful for
ContextDisposedNotification() to implement different strategies.
Upstream C++: v8::ContextDependants (v8-isolate.h)
| Member | Value | Description |
|---|---|---|
kNoDependants | 0 | Context has no dependants. These are usually top-level contexts. |
kSomeDependants | 1 | Context has some dependants, i.e., it may depend on other contexts. This is usually the case for inner contexts. |
ContextEmbedderDataFields
The field at kDebugIdIndex used to be reserved for the inspector. It now serves no purpose.
Upstream C++: v8::Context::EmbedderDataFields (v8-context.h)
| Member | Value | Description |
|---|---|---|
kDebugIdIndex | 0 | The field at kDebugIdIndex used to be reserved for the inspector. It now serves no purpose. |
CppHeapPointerTag
A pointer tag used for wrapping and unwrapping CppHeap pointers as used
with JS API wrapper objects that rely on Object.Wrap() and
Object.Unwrap().
The CppHeapPointers use a range-based type checking scheme, where on access to a pointer, the actual type of the pointer is checked to be within a specified range of types. This allows supporting type hierarchies, where a type check for a supertype must succeed for any subtype.
The tag is currently in practice limited to 15 bits since it needs to fit together with a marking bit into the unused parts of a pointer.
Upstream C++: v8::CppHeapPointerTag (v8-sandbox.h)
| Member | Value | Description |
|---|---|---|
kCppGCManagedTag | 9 | — |
kDefaultTag | 11 | Embedders that use the sandbox should use specific tags for each type. |
kEvacuationEntryTag | 14 | — |
kFirstObjectWrappableTag | 2 | — |
kFirstTag | 0 | — |
kFirstV8InternalTag | 3 | — |
kFreeEntryTag | 15 | — |
kInspectorTaskInfoTag | 6 | — |
kInspectorV8ConsoleTag | 5 | — |
kLastObjectWrappableTag | 12 | — |
kLastTag | 16 | The tags are limited to 15 bits, so the last tag is 0x7fff. |
kLastV8InternalTag | 10 | — |
kMicrotaskQueueTag | 7 | — |
kNullTag | 1 | — |
kTagForTesting | 4 | V8-internal Oilpan objects that use Object.Wrap() should go here. |
kWasmMemoryMapDescriptorTag | 8 | — |
kZappedEntryTag | 13 | — |
CpuProfileNodeSourceType
An annotation hinting at the source of a CpuProfileNode.
Upstream C++: v8::CpuProfileNode::SourceType (v8-profiler.h)
| Member | Value | Description |
|---|---|---|
kBuiltin | 1 | Native scripts and provided builtins. |
kCallback | 2 | Callbacks into native code. |
kInternal | 3 | VM-internal functions or state. |
kScript | 0 | User-supplied script with associated resource information. |
kUnresolved | 4 | A node that failed to symbolize. |
CpuProfileSerializationFormat
Upstream V8 C++ enum v8::CpuProfile::SerializationFormat (v8-profiler.h).
| Member | Value | Description |
|---|---|---|
kJSON | 0 | See format description near 'Serialize' method. |
CpuProfileSource
Identifies which component initiated CPU profiling for proper attribution.
Upstream C++: v8::CpuProfileSource (v8-profiler.h)
| Member | Value | Description |
|---|---|---|
kInspector | 1 | Profiling initiated via the DevTools Inspector protocol. |
kInternal | 3 | Profiling initiated internally by V8 (e.g., tracing CPU profiler). |
kSelfProfiling | 2 | Profiling initiated by the embedder (e.g., Blink) via self-profiling API. |
kUnspecified | 0 | Default value when no explicit source is specified. |
CpuProfilingLoggingMode
Upstream V8 C++ enum v8::CpuProfilingLoggingMode (v8-profiler.h).
| Member | Value | Description |
|---|---|---|
kEagerLogging | 1 | Enables logging for the lifetime of the CpuProfiler. Calls to StartRecording are faster, at the expense of runtime overhead. |
kLazyLogging | 0 | Enables logging when a profile is active, and disables logging when all profiles are detached. |
CpuProfilingMode
Upstream V8 C++ enum v8::CpuProfilingMode (v8-profiler.h).
| Member | Value | Description |
|---|---|---|
kCallerLineNumbers | 1 | In the resulting CpuProfile tree, nodes are separated based on the line number of their callsite in their parent. |
kLeafNodeLineNumbers | 0 | In the resulting CpuProfile tree, intermediate nodes in a stack trace (from the root to a leaf) will have line numbers that point to the start line of the function, rather than the line of the callsite of the child. |
CpuProfilingNamingMode
Determines how names are derived for functions sampled.
Upstream C++: v8::CpuProfilingNamingMode (v8-profiler.h)
| Member | Value | Description |
|---|---|---|
kDebugNaming | 1 | Use more verbose naming for functions without names, inferred from scope where possible. |
kStandardNaming | 0 | Use the immediate name of functions at compilation time. |
CpuProfilingStatus
Enum for returning profiling status. Once StartProfiling is called, we want to return to clients whether the profiling was able to start correctly, or return a descriptive error.
Upstream C++: v8::CpuProfilingStatus (v8-profiler.h)
| Member | Value | Description |
|---|---|---|
kAlreadyStarted | 1 | — |
kErrorTooManyProfilers | 2 | — |
kStarted | 0 | — |
CrashKeyId
--- Crashkeys Callback ---
Upstream C++: v8::CrashKeyId (v8-callbacks.h)
| Member | Value | Description |
|---|---|---|
kCodeRangeBaseAddress | 4 | — |
kCodeSpaceFirstPageAddress | 5 | — |
kDumpType | 6 | — |
kIsolateAddress | 0 | — |
kMapSpaceFirstPageAddress | 2 | — |
kOldSpaceFirstPageAddress | 3 | — |
kReadonlySpaceFirstPageAddress | 1 | — |
kSnapshotChecksumCalculated | 7 | — |
kSnapshotChecksumExpected | 8 | — |
CrashKeySize
Upstream V8 C++ enum v8::CrashKeySize (v8-callbacks.h).
| Member | Value | Description |
|---|---|---|
Size1024 | 3 | — |
Size256 | 2 | — |
Size32 | 0 | — |
Size64 | 1 | — |
EmbedderGraphNodeDetachedness
Detachedness specifies whether an object is attached or detached from the main application state. While unkown in general, there may be objects that specifically know their state. V8 passes this information along in the snapshot. Users of the snapshot may use it to annotate the object graph.
Upstream C++: v8::EmbedderGraph::Node::Detachedness (v8-profiler.h)
| Member | Value | Description |
|---|---|---|
kAttached | 1 | — |
kDetached | 2 | — |
kUnknown | 0 | — |
EmbedderStateTag
A StateTag represents a possible state of the embedder.
Upstream C++: v8::EmbedderStateTag (v8-embedder-state-scope.h)
| Member | Value | Description |
|---|---|---|
EMPTY | 0 | reserved |
OTHER | 1 | — |
ExceptionContext
This is a part of experimental Api and might be changed without further notice. Do not use it.
Upstream C++: v8::ExceptionContext (v8-exception.h)
| Member | Value | Description |
|---|---|---|
kAttributeGet | 3 | — |
kAttributeSet | 4 | — |
kConstructor | 1 | — |
kIndexedDefiner | 9 | — |
kIndexedDeleter | 10 | — |
kIndexedDescriptor | 7 | — |
kIndexedGetter | 6 | — |
kIndexedQuery | 5 | — |
kIndexedSetter | 8 | — |
kNamedDefiner | 15 | — |
kNamedDeleter | 16 | — |
kNamedDescriptor | 13 | — |
kNamedEnumerator | 17 | — |
kNamedGetter | 12 | — |
kNamedQuery | 11 | — |
kNamedSetter | 14 | — |
kOperation | 2 | — |
kUnknown | 0 | — |
GCCallbackFlags
GCCallbackFlags is used to notify additional information about the GC callback.
- kGCCallbackFlagConstructRetainedObjectInfos: The GC callback is for constructing retained object infos.
- kGCCallbackFlagForced: The GC callback is for a forced GC for testing.
- kGCCallbackFlagSynchronousPhantomCallbackProcessing: The GC callback is called synchronously without getting posted to an idle task.
- kGCCallbackFlagCollectAllAvailableGarbage: The GC callback is called in a phase where V8 is trying to collect all available garbage (e.g., handling a low memory notification).
- kGCCallbackScheduleIdleGarbageCollection: The GC callback is called to trigger an idle garbage collection.
Upstream C++: v8::GCCallbackFlags (v8-callbacks.h)
| Member | Value | Description |
|---|---|---|
kGCCallbackFlagCollectAllAvailableGarbage | 4 | — |
kGCCallbackFlagCollectAllExternalMemory | 5 | — |
kGCCallbackFlagConstructRetainedObjectInfos | 1 | — |
kGCCallbackFlagForced | 2 | — |
kGCCallbackFlagLastResort | 7 | — |
kGCCallbackFlagSynchronousPhantomCallbackProcessing | 3 | — |
kGCCallbackScheduleIdleGarbageCollection | 6 | — |
kNoGCCallbackFlags | 0 | — |
GCType
Applications can register callback functions which will be called before and after certain garbage collection operations. Allocations are not allowed in the callback functions, you therefore cannot manipulate objects (set or delete properties for example) since it is possible such operations will result in the allocation of objects. TODO(v8:12612): Deprecate kGCTypeMinorMarkSweep after updating blink.
Upstream C++: v8::GCType (v8-callbacks.h)
| Member | Value | Description |
|---|---|---|
kGCTypeAll | 5 | — |
kGCTypeIncrementalMarking | 3 | — |
kGCTypeMarkSweepCompact | 2 | — |
kGCTypeMinorMarkSweep | 1 | — |
kGCTypeProcessWeakCallbacks | 4 | — |
kGCTypeScavenge | 0 | — |
HeapGraphEdgeType
Upstream V8 C++ enum v8::HeapGraphEdge::Type (v8-profiler.h).
| Member | Value | Description |
|---|---|---|
kContextVariable | 0 | A variable from a function context. |
kElement | 1 | An element of an array. |
kHidden | 4 | thus, its name isn't a real property name (e.g. parts of a ConsString). |
kInternal | 3 | A link that can't be accessed from JS, |
kProperty | 2 | A named object property. |
kShortcut | 5 | calculation, but may be hidden from user. |
kWeak | 6 | sizes calculation. |
HeapGraphNodeType
Upstream V8 C++ enum v8::HeapGraphNode::Type (v8-profiler.h).
| Member | Value | Description |
|---|---|---|
kArray | 1 | An array of elements. |
kBigInt | 13 | BigInt. |
kClosure | 5 | Function closure. |
kCode | 4 | Compiled code. |
kConsString | 10 | snapshot items together. |
kHeapNumber | 7 | Number stored in the heap. |
kHidden | 0 | Hidden node, may be filtered when shown to user. |
kNative | 8 | Native object (not from V8 heap). |
kObject | 3 | A JS object (except for arrays and strings). |
kObjectShape | 14 | Internal data used for tracking the shapes (or |
kRegExp | 6 | RegExp. |
kSlicedString | 11 | Sliced string. A fragment of another string. |
kString | 2 | A string. |
kSymbol | 12 | A Symbol (ES6). |
kSynthetic | 9 | Synthetic object, usually used for grouping |
HeapProfilerHeapSnapshotMode
Upstream V8 C++ enum v8::HeapProfiler::HeapSnapshotMode (v8-profiler.h).
| Member | Value | Description |
|---|---|---|
kExposeInternals | 1 | Heap snapshot is exposing internals that may be useful for experts. |
kRegular | 0 | Heap snapshot for regular developers. |
HeapProfilerNumericsMode
Upstream V8 C++ enum v8::HeapProfiler::NumericsMode (v8-profiler.h).
| Member | Value | Description |
|---|---|---|
kExposeNumericValues | 1 | Numeric values are exposed in artificial fields. |
kHideNumericValues | 0 | Numeric values are hidden as they are values of the corresponding objects. |
HeapProfilerSamplingFlags
Upstream V8 C++ enum v8::HeapProfiler::SamplingFlags (v8-profiler.h).
| Member | Value | Description |
|---|---|---|
kSamplingForceGC | 1 | — |
kSamplingIncludeObjectsCollectedByMajorGC | 2 | — |
kSamplingIncludeObjectsCollectedByMinorGC | 3 | — |
kSamplingNoFlags | 0 | — |
HeapSnapshotSerializationFormat
Upstream V8 C++ enum v8::HeapSnapshot::SerializationFormat (v8-profiler.h).
| Member | Value | Description |
|---|---|---|
kJSON | 0 | See format description near 'Serialize' method. |
IdleTaskSupport
Upstream V8 C++ enum v8::platform::IdleTaskSupport (libplatform.h).
| Member | Value | Description |
|---|---|---|
kDisabled | 0 | — |
kEnabled | 1 | — |
IndexFilter
kIncludesIndices allows for integer indices to be collected, while kSkipIndices will exclude integer indices from being collected.
Upstream C++: v8::IndexFilter (v8-object.h)
| Member | Value | Description |
|---|---|---|
kIncludeIndices | 0 | kIncludesIndices allows for integer indices to be collected, while kSkipIndices will exclude integer indices from being collected. |
kSkipIndices | 1 | kIncludesIndices allows for integer indices to be collected, while kSkipIndices will exclude integer indices from being collected. |
InProcessStackDumping
Upstream V8 C++ enum v8::platform::InProcessStackDumping (libplatform.h).
| Member | Value | Description |
|---|---|---|
kDisabled | 0 | — |
kEnabled | 1 | — |
IntegrityLevel
Integrity level for objects.
Upstream C++: v8::IntegrityLevel (v8-object.h)
| Member | Value | Description |
|---|---|---|
kFrozen | 0 | Integrity level for objects. |
kSealed | 1 | Integrity level for objects. |
Intercepted
Interceptor callbacks use this value to indicate whether the request was intercepted or not.
The values for constants and type are chosen this way for better performance.
Upstream C++: v8::Intercepted (v8-template.h)
| Member | Value | Description |
|---|---|---|
kNo | 0 | Interceptor callbacks use this value to indicate whether the request was intercepted or not. The values for constants and type are chosen this way for better performance. |
kYes | 1 | Interceptor callbacks use this value to indicate whether the request was intercepted or not. The values for constants and type are chosen this way for better performance. |
InternalExternalPointerTypeTag
Upstream V8 C++ enum v8::InternalExternalPointerTypeTag (v8-external.h).
| Member | Value | Description |
|---|---|---|
kDictionaryValueTag | 1 | — |
kFirstInternalExternalPointerTypeTag | 0 | — |
kLastInternalExternalPointerTypeTag | 2 | — |
Intrinsic
Upstream V8 C++ enum v8::Intrinsic (v8-template.h).
| Member | Value | Description |
|---|---|---|
kArrayProto_entries | 0 | — |
kArrayProto_forEach | 1 | — |
kArrayProto_keys | 2 | — |
kArrayProto_values | 3 | — |
kArrayPrototype | 4 | — |
kAsyncIteratorPrototype | 5 | — |
kErrorPrototype | 6 | — |
kIteratorPrototype | 7 | — |
kMapIteratorPrototype | 8 | — |
kObjProto_valueOf | 9 | — |
kSetIteratorPrototype | 10 | — |
IsolateGarbageCollectionType
Types of garbage collections that can be requested via RequestGarbageCollectionForTesting.
Upstream C++: v8::Isolate::GarbageCollectionType (v8-isolate.h)
| Member | Value | Description |
|---|---|---|
kFullGarbageCollection | 0 | — |
kMinorGarbageCollection | 1 | — |
IsolateMessageErrorLevel
Upstream V8 C++ enum v8::Isolate::MessageErrorLevel (v8-isolate.h).
| Member | Value | Description |
|---|---|---|
kMessageAll | 5 | — |
kMessageDebug | 1 | — |
kMessageError | 3 | — |
kMessageInfo | 2 | — |
kMessageLog | 0 | — |
kMessageWarning | 4 | — |
IsolatePriority
The different priorities that an isolate can have.
Upstream C++: v8::Isolate::Priority (v8-isolate.h)
| Member | Value | Description |
|---|---|---|
kBestEffort | 0 | The isolate does not relate to content that is currently important to the user. Lowest priority. |
kUserBlocking | 2 | The isolate contributes to content that is of the utmost importance to the user, like visible content in the focused window. Highest priority. |
kUserVisible | 1 | The isolate contributes to content that is visible to the user, like a visible iframe that's not interacted directly with. High priority. |
IsolateTimeZoneDetection
Time zone redetection indicator for DateTimeConfigurationChangeNotification.
kSkip indicates V8 that the notification should not trigger redetecting host time zone. kRedetect indicates V8 that host time zone should be redetected, and used to set the default time zone.
The host time zone detection may require file system access or similar operations unlikely to be available inside a sandbox. If v8 is run inside a sandbox, the host time zone has to be detected outside the sandbox before calling DateTimeConfigurationChangeNotification function.
Upstream C++: v8::Isolate::TimeZoneDetection (v8-isolate.h)
| Member | Value | Description |
|---|---|---|
kRedetect | 1 | Time zone redetection indicator for DateTimeConfigurationChangeNotification. kSkip indicates V8 that the notification should not trigger redetecting host time zone. kRedetect indicates V8 that host time zone should be redetected, and used to set the default time zone. The host time zone detection may require file system access or similar operations unlikely to be available inside a sandbox. If v8 is run inside a sandbox, the host time zone has to be detected outside the sandbox before calling DateTimeConfigurationChangeNotification function. |
kSkip | 0 | Time zone redetection indicator for DateTimeConfigurationChangeNotification. kSkip indicates V8 that the notification should not trigger redetecting host time zone. kRedetect indicates V8 that host time zone should be redetected, and used to set the default time zone. The host time zone detection may require file system access or similar operations unlikely to be available inside a sandbox. If v8 is run inside a sandbox, the host time zone has to be detected outside the sandbox before calling DateTimeConfigurationChangeNotification function. |
IsolateUseCounterFeature
Features reported via the SetUseCounterCallback callback. Do not change
assigned numbers of existing items; add new features to the end of this
list.
Dead features can be marked V8_DEPRECATE_SOON, then V8_DEPRECATED, and
then finally be renamed to kOBSOLETE_... to stop embedders from using
them.
Upstream C++: v8::Isolate::UseCounterFeature (v8-isolate.h)
| Member | Value | Description |
|---|---|---|
kArrayBufferTransfer | 154 | — |
kArrayByCopy | 147 | — |
kArrayFindLast | 152 | — |
kArrayFromAsync | 148 | — |
kArrayGroup | 153 | — |
kArrayInstanceConstructorModified | 28 | — |
kArrayPrototypeConstructorModified | 26 | — |
kArrayPrototypeHasElements | 83 | — |
kArraySpeciesModified | 25 | — |
kAssigmentExpressionLHSIsCallInSloppy | 36 | — |
kAssigmentExpressionLHSIsCallInStrict | 37 | — |
kAsyncStackTaggingCreateTaskCall | 116 | — |
kAtomicsPause | 170 | — |
kAtomicsWaitAsync | 156 | — |
kAttemptOverrideReadOnlyOnPrototypeSloppy | 69 | — |
kAttemptOverrideReadOnlyOnPrototypeStrict | 70 | — |
kBreakIterator | 1 | — |
kBreakIteratorTypeLine | 89 | — |
kBreakIteratorTypeWord | 88 | — |
kCallSiteAPIGetFunctionSloppyCall | 76 | — |
kCallSiteAPIGetThisSloppyCall | 77 | — |
kCollator | 54 | — |
kCompileHintsMagicAll | 123 | — |
kConsoleContext | 143 | — |
kDateTimeFormat | 56 | — |
kDateTimeFormatDateTimeStyle | 87 | — |
kDateTimeFormatRange | 86 | — |
kDateToLocaleDateString | 67 | — |
kDateToLocaleString | 66 | — |
kDateToLocaleTimeString | 68 | — |
kDecimalWithLeadingZeroInStrictMode | 32 | — |
kDefineGetterOrSetterWouldThrow | 34 | — |
kDeoptimizerDisableSpeculation | 47 | — |
kDisplayNames | 81 | — |
kDocumentAllLegacyCall | 141 | — |
kDocumentAllLegacyConstruct | 142 | — |
kDurationFormat | 117 | — |
kErrorCaptureStackTrace | 43 | — |
kErrorIsError | 162 | — |
kErrorPrepareStackTrace | 44 | — |
kErrorStackTraceLimit | 45 | — |
kExplicitResourceManagement | 166 | — |
kExtendingNonExtensibleWithPrivate | 157 | — |
kFloat16Array | 165 | — |
kForcedGC | 7 | — |
kForInInitializer | 23 | — |
kFunctionConstructorReturnedUndefined | 35 | — |
kFunctionPrototypeArguments | 113 | — |
kFunctionPrototypeCaller | 114 | — |
kFunctionTokenOffsetTooLongForToString | 49 | — |
kGrowableSharedArrayBuffer | 146 | — |
kHoleyArrayReadthrough | 185 | — |
kHtmlComment | 21 | — |
kHtmlCommentInExternalScript | 20 | — |
kHtmlWrapperMethods | 181 | — |
kIndexAccessor | 42 | — |
kInvalidatedArrayBufferDetachingProtector | 90 | — |
kInvalidatedArrayBufferMutableProtector | 184 | — |
kInvalidatedArrayConstructorProtector | 91 | — |
kInvalidatedArrayIteratorLookupChainProtector | 92 | — |
kInvalidatedArraySpeciesLookupChainProtector | 93 | — |
kInvalidatedIsConcatSpreadableLookupChainProtector | 94 | — |
kInvalidatedMapIteratorLookupChainProtector | 95 | — |
kInvalidatedMegaDOMProtector | 112 | — |
kInvalidatedNoDateTimeConfigurationChangeProtector | 174 | — |
kInvalidatedNoElementsProtector | 96 | — |
kInvalidatedNoProfilingProtector | 124 | — |
kInvalidatedNoUndetectableObjectsProtector | 132 | — |
kInvalidatedNumberStringNotRegexpLikeProtector | 118 | — |
kInvalidatedPromiseHookProtector | 97 | — |
kInvalidatedPromiseResolveLookupChainProtector | 98 | — |
kInvalidatedPromiseSpeciesLookupChainProtector | 99 | — |
kInvalidatedPromiseThenLookupChainProtector | 100 | — |
kInvalidatedRegExpSpeciesLookupChainProtector | 101 | — |
kInvalidatedSetIteratorLookupChainProtector | 102 | — |
kInvalidatedStringIteratorLookupChainProtector | 103 | — |
kInvalidatedStringLengthOverflowLookupChainProtector | 104 | — |
kInvalidatedStringWrapperToPrimitiveProtector | 140 | — |
kInvalidatedTypedArrayLengthLookupChainProtector | 163 | — |
kInvalidatedTypedArraySpeciesLookupChainProtector | 105 | — |
kIteratorMethods | 149 | — |
kLegacyDateParser | 33 | — |
kListFormat | 60 | — |
kLocale | 59 | — |
kLocaleInfoFunctions | 122 | — |
kLocaleInfoObsoletedGetters | 121 | — |
kLogicalAssignment | 172 | — |
kModuleNamespaceMissingDefaultWithStarExport | 187 | — |
kNullishCoalescing | 173 | — |
kNumberFormat | 55 | — |
kNumberFormatStyleUnit | 85 | — |
kNumberToLocaleString | 65 | — |
kObjectPrototypeHasElements | 84 | — |
kOBSOLETE_ArrayInstanceProtoModified | 27 | — |
kOBSOLETE_ArrayProtectorDirtied | 24 | — |
kOBSOLETE_ArrayPrototypeSortJSArrayModifiedPrototype | 48 | — |
kOBSOLETE_AtomicsNotify | 52 | — |
kOBSOLETE_AtomicsWake | 53 | — |
kOBSOLETE_ConstructorNonUndefinedPrimitiveReturn | 39 | — |
kOBSOLETE_DateGetTimezoneOffset | 74 | — |
kOBSOLETE_ImportAssertionDeprecatedSyntax | 120 | — |
kOBSOLETE_IntlPattern | 15 | — |
kOBSOLETE_IntlResolved | 16 | — |
kOBSOLETE_IntlV8Parse | 14 | — |
kOBSOLETE_LabeledExpressionStatement | 40 | — |
kOBSOLETE_LegacyConst | 2 | — |
kOBSOLETE_LegacyFunctionDeclaration | 29 | — |
kOBSOLETE_LineOrParagraphSeparatorAsLineTerminator | 41 | — |
kOBSOLETE_MarkDequeOverflow | 3 | — |
kOBSOLETE_ObjectObserve | 6 | — |
kOBSOLETE_OptimizedFunctionWithOneShotBytecode | 71 | — |
kOBSOLETE_PromiseAccept | 18 | — |
kOBSOLETE_PromiseChain | 17 | — |
kOBSOLETE_PromiseDefer | 19 | — |
kOBSOLETE_RegExpMatchAllWithNonGlobalRegExp | 78 | — |
kOBSOLETE_RegExpPrototypeOldFlagGetter | 31 | — |
kOBSOLETE_RegExpPrototypeSourceGetter | 30 | — |
kOBSOLETE_RegExpUnicodeSetIncompatibilitiesWithUnicodeMode | 119 | — |
kOBSOLETE_SlotsBufferOverflow | 5 | — |
kOBSOLETE_StoreBufferOverflow | 4 | — |
kOBSOLETE_StringToLocaleUpperCase | 63 | — |
kOBSOLETE_StrongMode | 10 | — |
kOBSOLETE_WasmResizableBuffers | 183 | — |
kPluralRules | 57 | — |
kPromiseAny | 150 | — |
kPromiseConstructorReturnedUndefined | 38 | — |
kPromiseTry | 158 | — |
kPromiseWithResolvers | 155 | — |
kRegExpCompile | 177 | — |
kRegExpCustomSpecies | 189 | — |
kRegExpEscape | 164 | — |
kRegExpExecCalledOnSlowRegExp | 79 | — |
kRegExpMatcherFlagsMismatch | 188 | — |
kRegExpMatchIsFalseishOnJSRegExp | 73 | — |
kRegExpMatchIsTrueishOnNonJSRegExp | 72 | — |
kRegExpPrototypeStickyGetter | 11 | — |
kRegExpPrototypeToString | 12 | — |
kRegExpPrototypeUnicodeGetter | 13 | — |
kRegExpReplaceCalledOnSlowRegExp | 80 | — |
kRegExpStaticProperties | 178 | — |
kRegExpStaticPropertiesWithLastMatch | 179 | — |
kRelativeTimeFormat | 58 | — |
kResizableArrayBuffer | 145 | — |
kSegmenter | 61 | — |
kSetMethods | 151 | — |
kSharedArrayBufferConstructed | 82 | — |
kSloppyMode | 8 | — |
kSloppyModeBlockScopedFunctionRedefinition | 22 | — |
kSourceMappingUrlMagicCommentAtSign | 129 | — |
kStrictMode | 9 | — |
kStringLocaleCompare | 62 | — |
kStringNormalize | 75 | — |
kStringReplaceAll | 159 | — |
kStringToLocaleLowerCase | 64 | — |
kStringWellFormed | 160 | — |
kTemporalObject | 130 | — |
kTopLevelAwait | 171 | — |
kTurboFanOsrCompileStarted | 115 | — |
kUint8ArrayToFromBase64AndHex | 169 | — |
kUseAsm | 0 | — |
kUseCounterFeatureCount | 190 | If you add new values here, you'll also need to update Chromium's: web_feature.mojom, use_counter_callback.cc, and enums.xml. V8 changes to this list need to be landed first, then changes on the Chromium side. |
kVarRedeclaredCatchBinding | 107 | — |
kWasmBranchHinting | 167 | — |
kWasmBulkMemory | 109 | — |
kWasmCustomDescriptors | 182 | — |
kWasmExceptionHandling | 111 | — |
kWasmExnRef | 138 | — |
kWasmExtendedConst | 135 | — |
kWasmGC | 127 | — |
kWasmGCAllocation | 186 | — |
kWasmImportedStrings | 128 | — |
kWasmImportedStringsUtf8 | 144 | — |
kWasmJavaScriptPromiseIntegration | 133 | — |
kWasmMemory64 | 125 | — |
kWasmModuleCompilation | 131 | — |
kWasmMultiMemory | 126 | — |
kWasmMultiValue | 110 | — |
kWasmMutableGlobals | 168 | — |
kWasmNonTrappingFloatToInt | 175 | — |
kWasmRefTypes | 108 | — |
kWasmRelaxedSimd | 136 | — |
kWasmReturnCall | 134 | — |
kWasmSharedMemory | 50 | — |
kWasmSignExtensionOps | 176 | — |
kWasmSimdOpcodes | 106 | — |
kWasmThreadOpcodes | 51 | — |
kWasmTypedFuncRef | 139 | — |
kWasmTypeReflection | 137 | — |
kWeakReferences | 161 | — |
kWebAssemblyInstantiation | 46 | — |
kWithStatement | 180 | — |
JitCodeEventCodeType
There are three different kinds of CodeType, one for JIT code generated
by the optimizing compiler, one for byte code generated for the
interpreter, and one for code generated from Wasm. For JIT_CODE and
WASM_CODE, code_start points to the beginning of jitted assembly code,
while for BYTE_CODE events, code_start points to the first bytecode of
the interpreted function.
Upstream C++: v8::JitCodeEvent::CodeType (v8-callbacks.h)
| Member | Value | Description |
|---|---|---|
BYTE_CODE | 0 | There are three different kinds of CodeType, one for JIT code generated by the optimizing compiler, one for byte code generated for the interpreter, and one for code generated from Wasm. For JIT_CODE and WASM_CODE, code_start points to the beginning of jitted assembly code, while for BYTE_CODE events, code_start points to the first bytecode of the interpreted function. |
JIT_CODE | 1 | There are three different kinds of CodeType, one for JIT code generated by the optimizing compiler, one for byte code generated for the interpreter, and one for code generated from Wasm. For JIT_CODE and WASM_CODE, code_start points to the beginning of jitted assembly code, while for BYTE_CODE events, code_start points to the first bytecode of the interpreted function. |
WASM_CODE | 2 | There are three different kinds of CodeType, one for JIT code generated by the optimizing compiler, one for byte code generated for the interpreter, and one for code generated from Wasm. For JIT_CODE and WASM_CODE, code_start points to the beginning of jitted assembly code, while for BYTE_CODE events, code_start points to the first bytecode of the interpreted function. |
JitCodeEventEventType
Upstream V8 C++ enum v8::JitCodeEvent::EventType (v8-callbacks.h).
| Member | Value | Description |
|---|---|---|
CODE_ADD_LINE_POS_INFO | 3 | — |
CODE_ADDED | 0 | — |
CODE_END_LINE_INFO_RECORDING | 5 | — |
CODE_MOVED | 1 | — |
CODE_REMOVED | 2 | — |
CODE_START_LINE_INFO_RECORDING | 4 | — |
JitCodeEventOptions
Option flags passed to the SetJitCodeEventHandler function.
Upstream C++: v8::JitCodeEventOptions (v8-callbacks.h)
| Member | Value | Description |
|---|---|---|
kJitCodeEventDefault | 0 | — |
kJitCodeEventEnumExisting | 1 | Generate callbacks for already existent code. |
kLastJitCodeEventOption | 2 | — |
JitCodeEventPositionType
Definition of the code position type. The "POSITION" type means the place in the source code which are of interest when making stack traces to pin-point the source location of a stack frame as close as possible. The "STATEMENT_POSITION" means the place at the beginning of each statement, and is used to indicate possible break locations.
Upstream C++: v8::JitCodeEvent::PositionType (v8-callbacks.h)
| Member | Value | Description |
|---|---|---|
POSITION | 0 | Definition of the code position type. The "POSITION" type means the place in the source code which are of interest when making stack traces to pin-point the source location of a stack frame as close as possible. The "STATEMENT_POSITION" means the place at the beginning of each statement, and is used to indicate possible break locations. |
STATEMENT_POSITION | 1 | Definition of the code position type. The "POSITION" type means the place in the source code which are of interest when making stack traces to pin-point the source location of a stack frame as close as possible. The "STATEMENT_POSITION" means the place at the beginning of each statement, and is used to indicate possible break locations. |
KeyCollectionMode
Keys/Properties filter enums:
KeyCollectionMode limits the range of collected properties. kOwnOnly limits the collected properties to the given Object only. kIncludesPrototypes will include all keys of the objects's prototype chain as well.
Upstream C++: v8::KeyCollectionMode (v8-object.h)
| Member | Value | Description |
|---|---|---|
kIncludePrototypes | 1 | Keys/Properties filter enums: KeyCollectionMode limits the range of collected properties. kOwnOnly limits the collected properties to the given Object only. kIncludesPrototypes will include all keys of the objects's prototype chain as well. |
kOwnOnly | 0 | Keys/Properties filter enums: KeyCollectionMode limits the range of collected properties. kOwnOnly limits the collected properties to the given Object only. kIncludesPrototypes will include all keys of the objects's prototype chain as well. |
KeyConversionMode
kConvertToString will convert integer indices to strings. kKeepNumbers will return numbers for integer indices.
Upstream C++: v8::KeyConversionMode (v8-object.h)
| Member | Value | Description |
|---|---|---|
kConvertToString | 0 | kConvertToString will convert integer indices to strings. kKeepNumbers will return numbers for integer indices. |
kKeepNumbers | 1 | kConvertToString will convert integer indices to strings. kKeepNumbers will return numbers for integer indices. |
kNoNumbers | 2 | kConvertToString will convert integer indices to strings. kKeepNumbers will return numbers for integer indices. |
LogEventStatus
Upstream V8 C++ enum v8::LogEventStatus (v8-callbacks.h).
| Member | Value | Description |
|---|---|---|
kEnd | 1 | — |
kLog | 2 | — |
kStart | 0 | — |
MeasureMemoryExecution
Controls how promptly a memory measurement request is executed. By default the measurement is folded with the next scheduled GC which may happen after a while and is forced after some timeout. The kEager mode starts incremental GC right away and is useful for testing. The kLazy mode does not force GC.
Upstream C++: v8::MeasureMemoryExecution (v8-statistics.h)
| Member | Value | Description |
|---|---|---|
kDefault | 0 | Controls how promptly a memory measurement request is executed. By default the measurement is folded with the next scheduled GC which may happen after a while and is forced after some timeout. The kEager mode starts incremental GC right away and is useful for testing. The kLazy mode does not force GC. |
kEager | 1 | Controls how promptly a memory measurement request is executed. By default the measurement is folded with the next scheduled GC which may happen after a while and is forced after some timeout. The kEager mode starts incremental GC right away and is useful for testing. The kLazy mode does not force GC. |
kLazy | 2 | Controls how promptly a memory measurement request is executed. By default the measurement is folded with the next scheduled GC which may happen after a while and is forced after some timeout. The kEager mode starts incremental GC right away and is useful for testing. The kLazy mode does not force GC. |
MeasureMemoryMode
Controls how the default MeasureMemoryDelegate reports the result of the memory measurement to JS. With kSummary only the total size is reported. With kDetailed the result includes the size of each native context.
Upstream C++: v8::MeasureMemoryMode (v8-statistics.h)
| Member | Value | Description |
|---|---|---|
kDetailed | 1 | Controls how the default MeasureMemoryDelegate reports the result of the memory measurement to JS. With kSummary only the total size is reported. With kDetailed the result includes the size of each native context. |
kSummary | 0 | Controls how the default MeasureMemoryDelegate reports the result of the memory measurement to JS. With kSummary only the total size is reported. With kDetailed the result includes the size of each native context. |
MemoryPressureLevel
Memory pressure level for the MemoryPressureNotification. kNone hints V8 that there is no memory pressure. kModerate hints V8 to speed up incremental garbage collection at the cost of of higher latency due to garbage collection pauses. kCritical hints V8 to free memory as soon as possible. Garbage collection pauses at this level will be large.
Upstream C++: v8::MemoryPressureLevel (v8-isolate.h)
| Member | Value | Description |
|---|---|---|
kCritical | 2 | Memory pressure level for the MemoryPressureNotification. kNone hints V8 that there is no memory pressure. kModerate hints V8 to speed up incremental garbage collection at the cost of of higher latency due to garbage collection pauses. kCritical hints V8 to free memory as soon as possible. Garbage collection pauses at this level will be large. |
kModerate | 1 | Memory pressure level for the MemoryPressureNotification. kNone hints V8 that there is no memory pressure. kModerate hints V8 to speed up incremental garbage collection at the cost of of higher latency due to garbage collection pauses. kCritical hints V8 to free memory as soon as possible. Garbage collection pauses at this level will be large. |
kNone | 0 | Memory pressure level for the MemoryPressureNotification. kNone hints V8 that there is no memory pressure. kModerate hints V8 to speed up incremental garbage collection at the cost of of higher latency due to garbage collection pauses. kCritical hints V8 to free memory as soon as possible. Garbage collection pauses at this level will be large. |
MessageLoopBehavior
Upstream V8 C++ enum v8::platform::MessageLoopBehavior (libplatform.h).
| Member | Value | Description |
|---|---|---|
kDoNotWait | 0 | — |
kWaitForWork | 1 | — |
MicrotasksPolicy
Policy for running microtasks:
- explicit: microtasks are invoked with the
Isolate.PerformMicrotaskCheckpoint()method; - scoped: microtasks invocation is controlled by MicrotasksScope objects;
- auto: microtasks are invoked when the script call depth decrements to zero.
Upstream C++: v8::MicrotasksPolicy (v8-microtask.h)
| Member | Value | Description |
|---|---|---|
kAuto | 2 | Policy for running microtasks: - explicit: microtasks are invoked with the Isolate.PerformMicrotaskCheckpoint() method; - scoped: microtasks invocation is controlled by MicrotasksScope objects; - auto: microtasks are invoked when the script call depth decrements to zero. |
kExplicit | 0 | Policy for running microtasks: - explicit: microtasks are invoked with the Isolate.PerformMicrotaskCheckpoint() method; - scoped: microtasks invocation is controlled by MicrotasksScope objects; - auto: microtasks are invoked when the script call depth decrements to zero. |
kScoped | 1 | Policy for running microtasks: - explicit: microtasks are invoked with the Isolate.PerformMicrotaskCheckpoint() method; - scoped: microtasks invocation is controlled by MicrotasksScope objects; - auto: microtasks are invoked when the script call depth decrements to zero. |
ModuleImportPhase
Import phases in import requests.
Upstream C++: v8::ModuleImportPhase (v8-callbacks.h)
| Member | Value | Description |
|---|---|---|
kDefer | 1 | — |
kEvaluation | 2 | — |
kSource | 0 | — |
ModuleStatus
The different states a module can be in.
This corresponds to the states used in ECMAScript except that "evaluated" is split into kEvaluated and kErrored, indicating success and failure, respectively.
Upstream C++: v8::Module::Status (v8-script.h)
| Member | Value | Description |
|---|---|---|
kErrored | 5 | — |
kEvaluated | 4 | — |
kEvaluating | 3 | — |
kInstantiated | 2 | — |
kInstantiating | 1 | — |
kUninstantiated | 0 | — |
NewStringType
A flag describing different modes of string creation.
Aside from performance implications there are no differences between the two creation modes.
Upstream C++: v8::NewStringType (v8-primitive.h)
| Member | Value | Description |
|---|---|---|
kInternalized | 1 | Acts as a hint that the string should be created in the old generation heap space and be deduplicated if an identical string already exists. |
kNormal | 0 | Create a new string, always allocating new storage memory. |
OutputStreamWriteResult
Upstream V8 C++ enum v8::OutputStream::WriteResult (v8-profiler.h).
| Member | Value | Description |
|---|---|---|
kAbort | 1 | — |
kContinue | 0 | — |
PagePermissions
Possible permissions for memory pages.
Upstream C++: v8::PagePermissions (v8-platform.h)
| Member | Value | Description |
|---|---|---|
kExecute | 3 | — |
kNoAccess | 0 | — |
kRead | 1 | — |
kReadExecute | 5 | — |
kReadWrite | 4 | — |
kReadWriteExecute | 7 | — |
kWrite | 2 | — |
kWriteExecute | 6 | — |
PriorityMode
Upstream V8 C++ enum v8::platform::PriorityMode (libplatform.h).
| Member | Value | Description |
|---|---|---|
kApply | 1 | — |
kDontApply | 0 | — |
PromiseHookType
PromiseHook with type kInit is called when a new promise is created. When a new promise is created as part of the chain in the case of Promise.then or in the intermediate promises created by Promise.{race, all}/AsyncFunctionAwait, we pass the parent promise otherwise we pass undefined.
PromiseHook with type kResolve is called at the beginning of resolve or reject function defined by CreateResolvingFunctions.
PromiseHook with type kBefore is called at the beginning of the PromiseReactionJob.
PromiseHook with type kAfter is called right at the end of the PromiseReactionJob.
Upstream C++: v8::PromiseHookType (v8-promise.h)
| Member | Value | Description |
|---|---|---|
kAfter | 3 | PromiseHook with type kInit is called when a new promise is created. When a new promise is created as part of the chain in the case of Promise.then or in the intermediate promises created by Promise.{race, all}/AsyncFunctionAwait, we pass the parent promise otherwise we pass undefined. PromiseHook with type kResolve is called at the beginning of resolve or reject function defined by CreateResolvingFunctions. PromiseHook with type kBefore is called at the beginning of the PromiseReactionJob. PromiseHook with type kAfter is called right at the end of the PromiseReactionJob. |
kBefore | 2 | PromiseHook with type kInit is called when a new promise is created. When a new promise is created as part of the chain in the case of Promise.then or in the intermediate promises created by Promise.{race, all}/AsyncFunctionAwait, we pass the parent promise otherwise we pass undefined. PromiseHook with type kResolve is called at the beginning of resolve or reject function defined by CreateResolvingFunctions. PromiseHook with type kBefore is called at the beginning of the PromiseReactionJob. PromiseHook with type kAfter is called right at the end of the PromiseReactionJob. |
kInit | 0 | PromiseHook with type kInit is called when a new promise is created. When a new promise is created as part of the chain in the case of Promise.then or in the intermediate promises created by Promise.{race, all}/AsyncFunctionAwait, we pass the parent promise otherwise we pass undefined. PromiseHook with type kResolve is called at the beginning of resolve or reject function defined by CreateResolvingFunctions. PromiseHook with type kBefore is called at the beginning of the PromiseReactionJob. PromiseHook with type kAfter is called right at the end of the PromiseReactionJob. |
kResolve | 1 | PromiseHook with type kInit is called when a new promise is created. When a new promise is created as part of the chain in the case of Promise.then or in the intermediate promises created by Promise.{race, all}/AsyncFunctionAwait, we pass the parent promise otherwise we pass undefined. PromiseHook with type kResolve is called at the beginning of resolve or reject function defined by CreateResolvingFunctions. PromiseHook with type kBefore is called at the beginning of the PromiseReactionJob. PromiseHook with type kAfter is called right at the end of the PromiseReactionJob. |
PromisePromiseState
State of the promise. Each value corresponds to one of the possible values of the [[PromiseState]] field.
Upstream C++: v8::Promise::PromiseState (v8-promise.h)
| Member | Value | Description |
|---|---|---|
kFulfilled | 1 | State of the promise. Each value corresponds to one of the possible values of the [[PromiseState]] field. |
kPending | 0 | State of the promise. Each value corresponds to one of the possible values of the [[PromiseState]] field. |
kRejected | 2 | State of the promise. Each value corresponds to one of the possible values of the [[PromiseState]] field. |
PromiseRejectEvent
--- Promise Reject Callback ---
Upstream C++: v8::PromiseRejectEvent (v8-promise.h)
| Member | Value | Description |
|---|---|---|
kDeprecatedPromiseRejectAfterResolved | 2 | — |
kDeprecatedPromiseResolveAfterResolved | 3 | — |
kPromiseHandlerAddedAfterReject | 1 | — |
kPromiseRejectWithNoHandler | 0 | — |
PropertyAttribute
PropertyAttribute.
Upstream C++: v8::PropertyAttribute (v8-object.h)
| Member | Value | Description |
|---|---|---|
DontDelete | 3 | DontDelete, i.e., not configurable. * |
DontEnum | 2 | DontEnum, i.e., not enumerable. * |
None | 0 | None. * |
ReadOnly | 1 | ReadOnly, i.e., not writable. * |
PropertyFilter
Property filter bits. They can be or'ed to build a composite filter.
Upstream C++: v8::PropertyFilter (v8-object.h)
| Member | Value | Description |
|---|---|---|
ALL_PROPERTIES | 0 | — |
ONLY_CONFIGURABLE | 3 | — |
ONLY_ENUMERABLE | 2 | — |
ONLY_WRITABLE | 1 | — |
SKIP_STRINGS | 4 | — |
SKIP_SYMBOLS | 5 | — |
PropertyHandlerFlags
Configuration flags for NamedPropertyHandlerConfiguration or
IndexedPropertyHandlerConfiguration.
Upstream C++: v8::PropertyHandlerFlags (v8-template.h)
| Member | Value | Description |
|---|---|---|
kHasDontDeleteProperty | 4 | The interceptor may return non-configurable (PropertyAttribute.DontDelete) properties. When set on a global object's interceptor, it will be consulted during HasRestrictedGlobalProperty checks for lexical declarations. |
kHasNoSideEffect | 3 | The getter, query, enumerator callbacks do not produce side effects. |
kInternalNewCallbacksSignatures | 5 | This flag is used to distinguish which callbacks were provided - GenericNamedPropertyXXXCallback (old signature) or NamedPropertyXXXCallback (new signature). DO NOT use this flag, it'll be removed once embedders migrate to new callbacks signatures. |
kNone | 0 | None. |
kNonMasking | 1 | Will not call into interceptor for properties on the receiver or prototype chain, i.e., only call into interceptor for properties that do not exist. Currently only valid for named interceptors. |
kOnlyInterceptStrings | 2 | Will not call into interceptor for symbol lookup. Only meaningful for named interceptors. |
RegExpFlags
Regular expression flag bits. They can be or'ed to enable a set of flags. The kLinear value ('l') is experimental and can only be used with --enable-experimental-regexp-engine. RegExps with kLinear flag are guaranteed to be executed in asymptotic linear time wrt. the length of the subject string.
Upstream C++: v8::RegExp::Flags (v8-regexp.h)
| Member | Value | Description |
|---|---|---|
kDotAll | 6 | — |
kGlobal | 1 | — |
kHasIndices | 8 | — |
kIgnoreCase | 2 | — |
kLinear | 7 | — |
kMultiline | 3 | — |
kNone | 0 | — |
kSticky | 4 | — |
kUnicode | 5 | — |
kUnicodeSets | 9 | — |
ScriptCompilerCachedDataBufferPolicy
Upstream V8 C++ enum v8::ScriptCompiler::CachedData::BufferPolicy (v8-script.h).
| Member | Value | Description |
|---|---|---|
BufferNotOwned | 0 | — |
BufferOwned | 1 | — |
ScriptCompilerCachedDataCompatibilityCheckResult
Upstream V8 C++ enum v8::ScriptCompiler::CachedData::CompatibilityCheckResult (v8-script.h).
| Member | Value | Description |
|---|---|---|
kChecksumMismatch | 5 | — |
kFlagsMismatch | 4 | — |
kInvalidHeader | 6 | — |
kLast | 9 | This should always point at the last real enum value. |
kLengthMismatch | 7 | — |
kMagicNumberMismatch | 1 | — |
kReadOnlySnapshotChecksumMismatch | 8 | — |
kSourceMismatch | 3 | — |
kSuccess | 0 | Don't change order/existing values of this enum since it keys into the code_cache_reject_reason histogram. Append-only! |
kVersionMismatch | 2 | — |
ScriptCompilerCompileOptions
Upstream V8 C++ enum v8::ScriptCompiler::CompileOptions (v8-script.h).
| Member | Value | Description |
|---|---|---|
kConsumeCodeCache | 1 | — |
kConsumeCompileHints | 4 | — |
kEagerCompile | 2 | — |
kFollowCompileHintsMagicComment | 5 | — |
kFollowCompileHintsPerFunctionMagicComment | 6 | — |
kNoCompileOptions | 0 | — |
kProduceCompileHints | 3 | — |
ScriptCompilerFlexibleExternalSourceStreamChunkEncoding
Upstream V8 C++ enum v8::ScriptCompiler::FlexibleExternalSourceStream::ChunkEncoding (v8-script.h).
| Member | Value | Description |
|---|---|---|
kOneByte | 0 | — |
kTwoByte | 1 | — |
ScriptCompilerInMemoryCacheResult
Upstream V8 C++ enum v8::ScriptCompiler::InMemoryCacheResult (v8-script.h).
| Member | Value | Description |
|---|---|---|
kHit | 1 | V8 found a previously compiled copy of this script in its in-memory cache. Any data generated by a streaming compilation or background deserialization was abandoned. |
kMiss | 2 | V8 didn't have any previously compiled data for this script. |
kNotAttempted | 0 | V8 did not attempt to find this script in its in-memory cache. |
kPartial | 3 | V8 had some previously compiled data for an identical script, but the data was incomplete. |
ScriptCompilerNoCacheReason
The reason for which we are not requesting or providing a code cache.
Upstream C++: v8::ScriptCompiler::NoCacheReason (v8-script.h)
| Member | Value | Description |
|---|---|---|
kNoCacheBecauseCacheTooCold | 8 | — |
kNoCacheBecauseCachingDisabled | 1 | — |
kNoCacheBecauseDeferredProduceCodeCache | 14 | — |
kNoCacheBecauseExtensionModule | 10 | — |
kNoCacheBecauseInDocumentWrite | 12 | — |
kNoCacheBecauseInlineScript | 3 | — |
kNoCacheBecauseInlineScriptCacheTooCold | 16 | — |
kNoCacheBecauseInspector | 6 | — |
kNoCacheBecauseModule | 4 | — |
kNoCacheBecauseNoResource | 2 | — |
kNoCacheBecausePacScript | 11 | — |
kNoCacheBecauseResourceWithNoCacheHandler | 13 | — |
kNoCacheBecauseScriptTooSmall | 7 | — |
kNoCacheBecauseStaticCodeCache | 15 | — |
kNoCacheBecauseStreamingSource | 5 | — |
kNoCacheBecauseV8Extension | 9 | — |
kNoCacheNoReason | 0 | — |
ScriptCompilerStreamedSourceEncoding
Upstream V8 C++ enum v8::ScriptCompiler::StreamedSource::Encoding (v8-script.h).
| Member | Value | Description |
|---|---|---|
FLEXIBLE_UTF16 | 4 | — |
ONE_BYTE | 0 | — |
TWO_BYTE | 1 | — |
UTF8 | 2 | — |
WINDOWS_1252 | 3 | — |
ScriptType
Upstream V8 C++ enum v8::ScriptType (v8-script.h).
| Member | Value | Description |
|---|---|---|
kClassic | 0 | — |
kModule | 1 | — |
SideEffectType
Options for marking whether callbacks may trigger JS-observable side effects. Side-effect-free callbacks are allowlisted during debug evaluation with throwOnSideEffect. It applies when calling a Function, FunctionTemplate, or an Accessor callback. For Interceptors, please see PropertyHandlerFlags's kHasNoSideEffect. Callbacks that only cause side effects to the receiver are allowlisted if invoked on receiver objects that are created within the same debug-evaluate call, as these objects are temporary and the side effect does not escape.
Upstream C++: v8::SideEffectType (v8-object.h)
| Member | Value | Description |
|---|---|---|
kHasNoSideEffect | 1 | — |
kHasSideEffect | 0 | — |
kHasSideEffectToReceiver | 2 | — |
SnapshotCreatorFunctionCodeHandling
Upstream V8 C++ enum v8::SnapshotCreator::FunctionCodeHandling (v8-snapshot.h).
| Member | Value | Description |
|---|---|---|
kClear | 0 | — |
kKeep | 1 | — |
StackTraceStackTraceOptions
Flags that determine what information is placed captured for each StackFrame when grabbing the current stack trace. Note: these options are deprecated and we always collect all available information (kDetailed).
Upstream C++: v8::StackTrace::StackTraceOptions (v8-debug.h)
| Member | Value | Description |
|---|---|---|
kColumnOffset | 1 | — |
kDetailed | 10 | — |
kExposeFramesAcrossSecurityOrigins | 8 | — |
kFunctionName | 3 | — |
kIsConstructor | 5 | — |
kIsEval | 4 | — |
kLineNumber | 0 | — |
kOverview | 9 | — |
kScriptId | 7 | — |
kScriptName | 2 | — |
kScriptNameOrSourceURL | 6 | — |
StateTag
A StateTag represents a possible state of the VM. This enum is append-only to preserve compatibility with historical logs. Add new states only at the end and do not reorder or remove existing values. LINT.IfChange
Upstream C++: v8::StateTag (v8-unwinder.h)
| Member | Value | Description |
|---|---|---|
ATOMICS_WAIT | 7 | — |
BYTECODE_COMPILER | 3 | — |
COMPILER | 4 | — |
EXTERNAL | 6 | — |
GC | 1 | — |
IDLE | 8 | — |
IDLE_EXTERNAL | 10 | — |
JS | 0 | — |
LOGGING | 9 | — |
OTHER | 5 | — |
PARSER | 2 | — |
StringEncoding
Upstream V8 C++ enum v8::String::Encoding (v8-primitive.h).
| Member | Value | Description |
|---|---|---|
ONE_BYTE_ENCODING | 2 | — |
TWO_BYTE_ENCODING | 1 | — |
UNKNOWN_ENCODING | 0 | — |
TaskPriority
Valid priorities supported by the task scheduling infrastructure.
Upstream C++: v8::TaskPriority (v8-platform.h)
| Member | Value | Description |
|---|---|---|
kBestEffort | 0 | Best effort tasks are not critical for performance of the application. The platform implementation should preempt such tasks if higher priority tasks arrive. |
kMaxPriority | 3 | — |
kUserBlocking | 2 | User blocking tasks are highest priority tasks that block the execution thread (e.g. major garbage collection). They must be finished as soon as possible. |
kUserVisible | 1 | User visible tasks are long running background tasks that will improve performance and memory usage of the application upon completion. Example: background compilation and garbage collection. |
V8ContextInfoNotNullTagEnum
Disallow copying and allocating this one.
Upstream C++: v8_inspector::V8ContextInfo::NotNullTagEnum (v8-inspector.h)
| Member | Value | Description |
|---|---|---|
NotNullLiteral | 0 | Disallow copying and allocating this one. |
V8InspectorClientTrustLevel
Upstream V8 C++ enum v8_inspector::V8Inspector::ClientTrustLevel (v8-inspector.h).
| Member | Value | Description |
|---|---|---|
kFullyTrusted | 1 | — |
kUntrusted | 0 | — |
V8InspectorSessionEvaluateResultResultType
Upstream V8 C++ enum v8_inspector::V8InspectorSession::EvaluateResult::ResultType (v8-inspector.h).
| Member | Value | Description |
|---|---|---|
kException | 2 | — |
kNotRun | 0 | — |
kSuccess | 1 | — |
V8InspectorSessionPauseState
Upstream V8 C++ enum v8_inspector::V8Inspector::SessionPauseState (v8-inspector.h).
| Member | Value | Description |
|---|---|---|
kNotWaitingForDebugger | 1 | — |
kWaitingForDebugger | 0 | — |
V8URLBreakpointSelectorType
Upstream V8 C++ enum v8_inspector::V8URLBreakpoint::SelectorType (v8-inspector.h).
| Member | Value | Description |
|---|---|---|
kScriptHash | 2 | — |
kUrl | 0 | — |
kUrlRegex | 1 | — |
V8WasmMemoryType
Upstream V8 C++ enum v8::V8::WasmMemoryType (v8-initialization.h).
| Member | Value | Description |
|---|---|---|
kMemory32 | 0 | — |
kMemory64 | 1 | — |
ValueSerializerSharedImmutableArrayBufferMode
Upstream V8 C++ enum v8::ValueSerializer::SharedImmutableArrayBufferMode (v8-value-serializer.h).
| Member | Value | Description |
|---|---|---|
kDisabled | 0 | — |
kEnabled | 1 | — |
WasmAsyncSuccess
Upstream V8 C++ enum v8::WasmAsyncSuccess (v8-callbacks.h).
| Member | Value | Description |
|---|---|---|
kFail | 1 | — |
kSuccess | 0 | — |
WeakCallbackType
Weakness type for weak handles.
Upstream C++: v8::WeakCallbackType (v8-weak-callback-info.h)
| Member | Value | Description |
|---|---|---|
kInternalFields | 1 | Passes the first two internal fields of the object back to the callback. |
kParameter | 0 | Passes a user-defined void* parameter back to the callback. |