5#ifndef INCLUDE_V8_ISOLATE_H_
6#define INCLUDE_V8_ISOLATE_H_
39class SharedArrayBuffer;
85 size_t maximum_heap_size_in_bytes);
97 uint64_t virtual_memory_limit);
125 return max_old_generation_size_;
128 max_old_generation_size_ = limit;
137 return max_young_generation_size_;
140 max_young_generation_size_ = limit;
144 return initial_old_generation_size_;
147 initial_old_generation_size_ = initial_size;
151 return initial_young_generation_size_;
154 initial_young_generation_size_ = initial_size;
158 static constexpr size_t kMB = 1048576u;
159 size_t code_range_size_ = 0;
160 size_t max_old_generation_size_ = 0;
161 size_t max_young_generation_size_ = 0;
162 size_t initial_old_generation_size_ = 0;
163 size_t initial_young_generation_size_ = 0;
164 uint32_t* stack_limit_ =
nullptr;
237 return isolate_group_ == other.isolate_group_;
241 return !operator==(other);
248 explicit IsolateGroup(internal::IsolateGroup*&& isolate_group);
250 internal::IsolateGroup* isolate_group_;
314 std::shared_ptr<
ArrayBuffer::Allocator> array_buffer_allocator_shared;
322 const intptr_t* external_references =
nullptr;
328 bool allow_atomics_wait = true;
335 int embedder_wrapper_type_index = -1;
336 int embedder_wrapper_object_index = -1;
358 v8_isolate_->Enter();
390 bool was_execution_allowed_;
409 bool was_execution_allowed_assert_;
410 bool was_execution_allowed_throws_;
411 bool was_execution_allowed_dump_;
431 internal::Isolate*
const i_isolate_;
432 internal::MicrotaskQueue*
const microtask_queue_;
435 friend class internal::ThreadLocalTop;
444 kMinorGarbageCollection
458 kOBSOLETE_LegacyConst = 2,
459 kOBSOLETE_MarkDequeOverflow = 3,
460 kOBSOLETE_StoreBufferOverflow = 4,
461 kOBSOLETE_SlotsBufferOverflow = 5,
462 kOBSOLETE_ObjectObserve = 6,
466 kOBSOLETE_StrongMode = 10,
467 kRegExpPrototypeStickyGetter = 11,
468 kRegExpPrototypeToString = 12,
469 kRegExpPrototypeUnicodeGetter = 13,
470 kOBSOLETE_IntlV8Parse = 14,
471 kOBSOLETE_IntlPattern = 15,
472 kOBSOLETE_IntlResolved = 16,
473 kOBSOLETE_PromiseChain = 17,
474 kOBSOLETE_PromiseAccept = 18,
475 kOBSOLETE_PromiseDefer = 19,
476 kHtmlCommentInExternalScript = 20,
478 kSloppyModeBlockScopedFunctionRedefinition = 22,
479 kForInInitializer = 23,
480 kOBSOLETE_ArrayProtectorDirtied = 24,
481 kArraySpeciesModified = 25,
482 kArrayPrototypeConstructorModified = 26,
483 kOBSOLETE_ArrayInstanceProtoModified = 27,
484 kArrayInstanceConstructorModified = 28,
485 kOBSOLETE_LegacyFunctionDeclaration = 29,
486 kOBSOLETE_RegExpPrototypeSourceGetter = 30,
487 kOBSOLETE_RegExpPrototypeOldFlagGetter = 31,
488 kDecimalWithLeadingZeroInStrictMode = 32,
489 kLegacyDateParser = 33,
490 kDefineGetterOrSetterWouldThrow = 34,
491 kFunctionConstructorReturnedUndefined = 35,
492 kAssigmentExpressionLHSIsCallInSloppy = 36,
493 kAssigmentExpressionLHSIsCallInStrict = 37,
494 kPromiseConstructorReturnedUndefined = 38,
495 kOBSOLETE_ConstructorNonUndefinedPrimitiveReturn = 39,
496 kOBSOLETE_LabeledExpressionStatement = 40,
497 kOBSOLETE_LineOrParagraphSeparatorAsLineTerminator = 41,
499 kErrorCaptureStackTrace = 43,
500 kErrorPrepareStackTrace = 44,
501 kErrorStackTraceLimit = 45,
502 kWebAssemblyInstantiation = 46,
503 kDeoptimizerDisableSpeculation = 47,
504 kOBSOLETE_ArrayPrototypeSortJSArrayModifiedPrototype = 48,
505 kFunctionTokenOffsetTooLongForToString = 49,
506 kWasmSharedMemory = 50,
507 kWasmThreadOpcodes = 51,
508 kOBSOLETE_AtomicsNotify = 52,
509 kOBSOLETE_AtomicsWake = 53,
512 kDateTimeFormat = 56,
514 kRelativeTimeFormat = 58,
518 kStringLocaleCompare = 62,
519 kOBSOLETE_StringToLocaleUpperCase = 63,
520 kStringToLocaleLowerCase = 64,
521 kNumberToLocaleString = 65,
522 kDateToLocaleString = 66,
523 kDateToLocaleDateString = 67,
524 kDateToLocaleTimeString = 68,
525 kAttemptOverrideReadOnlyOnPrototypeSloppy = 69,
526 kAttemptOverrideReadOnlyOnPrototypeStrict = 70,
527 kOBSOLETE_OptimizedFunctionWithOneShotBytecode = 71,
528 kRegExpMatchIsTrueishOnNonJSRegExp = 72,
529 kRegExpMatchIsFalseishOnJSRegExp = 73,
530 kOBSOLETE_DateGetTimezoneOffset = 74,
531 kStringNormalize = 75,
532 kCallSiteAPIGetFunctionSloppyCall = 76,
533 kCallSiteAPIGetThisSloppyCall = 77,
534 kOBSOLETE_RegExpMatchAllWithNonGlobalRegExp = 78,
535 kRegExpExecCalledOnSlowRegExp = 79,
536 kRegExpReplaceCalledOnSlowRegExp = 80,
538 kSharedArrayBufferConstructed = 82,
539 kArrayPrototypeHasElements = 83,
540 kObjectPrototypeHasElements = 84,
541 kNumberFormatStyleUnit = 85,
542 kDateTimeFormatRange = 86,
543 kDateTimeFormatDateTimeStyle = 87,
544 kBreakIteratorTypeWord = 88,
545 kBreakIteratorTypeLine = 89,
546 kInvalidatedArrayBufferDetachingProtector = 90,
547 kInvalidatedArrayConstructorProtector = 91,
548 kInvalidatedArrayIteratorLookupChainProtector = 92,
549 kInvalidatedArraySpeciesLookupChainProtector = 93,
550 kInvalidatedIsConcatSpreadableLookupChainProtector = 94,
551 kInvalidatedMapIteratorLookupChainProtector = 95,
552 kInvalidatedNoElementsProtector = 96,
553 kInvalidatedPromiseHookProtector = 97,
554 kInvalidatedPromiseResolveLookupChainProtector = 98,
555 kInvalidatedPromiseSpeciesLookupChainProtector = 99,
556 kInvalidatedPromiseThenLookupChainProtector = 100,
557 kInvalidatedRegExpSpeciesLookupChainProtector = 101,
558 kInvalidatedSetIteratorLookupChainProtector = 102,
559 kInvalidatedStringIteratorLookupChainProtector = 103,
560 kInvalidatedStringLengthOverflowLookupChainProtector = 104,
561 kInvalidatedTypedArraySpeciesLookupChainProtector = 105,
562 kWasmSimdOpcodes = 106,
563 kVarRedeclaredCatchBinding = 107,
565 kOBSOLETE_WasmBulkMemory = 109,
566 kOBSOLETE_WasmMultiValue = 110,
567 kWasmExceptionHandling = 111,
568 kInvalidatedMegaDOMProtector = 112,
569 kFunctionPrototypeArguments = 113,
570 kFunctionPrototypeCaller = 114,
571 kTurboFanOsrCompileStarted = 115,
572 kAsyncStackTaggingCreateTaskCall = 116,
573 kDurationFormat = 117,
574 kInvalidatedNumberStringNotRegexpLikeProtector = 118,
575 kOBSOLETE_RegExpUnicodeSetIncompatibilitiesWithUnicodeMode = 119,
576 kOBSOLETE_ImportAssertionDeprecatedSyntax = 120,
577 kLocaleInfoObsoletedGetters = 121,
578 kLocaleInfoFunctions = 122,
579 kCompileHintsMagicAll = 123,
580 kInvalidatedNoProfilingProtector = 124,
582 kWasmMultiMemory = 126,
584 kWasmImportedStrings = 128,
585 kSourceMappingUrlMagicCommentAtSign = 129,
586 kTemporalObject = 130,
587 kWasmModuleCompilation = 131,
588 kInvalidatedNoUndetectableObjectsProtector = 132,
589 kWasmJavaScriptPromiseIntegration = 133,
590 kWasmReturnCall = 134,
591 kWasmExtendedConst = 135,
592 kWasmRelaxedSimd = 136,
593 kWasmTypeReflection = 137,
595 kWasmTypedFuncRef = 139,
596 kInvalidatedStringWrapperToPrimitiveProtector = 140,
597 kDocumentAllLegacyCall = 141,
598 kDocumentAllLegacyConstruct = 142,
599 kConsoleContext = 143,
600 kWasmImportedStringsUtf8 = 144,
601 kResizableArrayBuffer = 145,
602 kGrowableSharedArrayBuffer = 146,
604 kArrayFromAsync = 148,
605 kIteratorMethods = 149,
608 kArrayFindLast = 152,
610 kArrayBufferTransfer = 154,
611 kPromiseWithResolvers = 155,
612 kAtomicsWaitAsync = 156,
613 kExtendingNonExtensibleWithPrivate = 157,
615 kStringReplaceAll = 159,
616 kStringWellFormed = 160,
617 kWeakReferences = 161,
623 kUseCounterFeatureCount
627 kMessageLog = (1 << 0),
628 kMessageDebug = (1 << 1),
629 kMessageInfo = (1 << 2),
630 kMessageError = (1 << 3),
631 kMessageWarning = (1 << 4),
632 kMessageAll = kMessageLog | kMessageDebug | kMessageInfo | kMessageError |
794#if defined(V8_OS_WIN)
799 void SetFilterETWSessionByURLCallback(FilterETWSessionByURLCallback callback);
800 void SetFilterETWSessionByURL2Callback(
801 FilterETWSessionByURL2Callback callback);
873 V8_INLINE void SetData(uint32_t slot,
void* data);
885 V8_INLINE static uint32_t GetNumberOfDataSlots();
968 std::unique_ptr<MeasureMemoryDelegate> delegate,
984 size_t frames_limit,
SampleInfo* sample_info);
994 int64_t AdjustAmountOfExternalAllocatedMemory(int64_t change_in_bytes);
1005 void SetIdle(
bool is_idle);
1046 return ThrowError(String::NewFromUtf8Literal(
this, message));
1082 GCType gc_type_filter = kGCTypeAll);
1090 GCType gc_type_filter = kGCTypeAll);
1114 GCType gc_type_filter = kGCTypeAll);
1122 GCType gc_type_filter = kGCTypeAll);
1138 void* data =
nullptr);
1160 "Set the heap on Isolate creation using CreateParams instead.")
1170 void DetachCppHeap();
1189 kTerminatedExecution,
1244 size_t offset_in_bytes, int64_t value,
1245 double timeout_in_ms,
1477 const std::shared_ptr<metrics::Recorder>& metrics_recorder);
1508 void IsolateInForegroundNotification();
1515 void IsolateInBackgroundNotification();
1535 void SetIsLoading(
bool is_loading);
1541 void IncreaseHeapLimitForDebugging();
1546 void RestoreOriginalHeapLimit();
1552 bool IsHeapLimitIncreasedForDebugging();
1588 void SetStackLimit(uintptr_t stack_limit);
1605 void GetCodeRange(
void** start,
size_t* length_in_bytes);
1611 void GetEmbeddedCodeRange(const
void** start,
size_t* length_in_bytes);
1618 static constexpr
size_t kMinCodePagesBufferSize = 32;
1664 void AutomaticallyRestoreInitialHeapLimit(
double threshold_percent = 0.5);
1670 void SetModifyCodeGenerationFromStringsCallback(
1677 void SetAllowWasmCodeGenerationCallback(
1689 void SetWasmAsyncResolvePromiseCallback(
1694 void SetWasmImportedStringsEnabledCallback(
1697 void SetSharedArrayBufferConstructorEnabledCallback(
1707 "Will be removed, use
ScriptCompiler::CompileOptions for enabling the "
1708 "compile hints magic comments")
1709 void SetJavaScriptCompileHintsMagicEnabledCallback(
1764 void SetCaptureStackTraceForUncaughtExceptions(
1765 bool capture,
int frame_limit = 10,
1779 void SetAllowAtomicsWait(
bool allow);
1832 void*
operator new(
size_t size) =
delete;
1833 void*
operator new[](
size_t size) =
delete;
1834 void operator delete(
void*, size_t) =
delete;
1835 void operator delete[](
void*, size_t) =
delete;
1838 template <
class K,
class V,
class Traits>
1844 int64_t AdjustAmountOfExternalAllocatedMemoryImpl(int64_t change_in_bytes);
1845 void HandleExternalMemoryInterrupt();
1848void Isolate::SetData(uint32_t slot,
void* data) {
1850 I::SetEmbedderData(
this, slot, data);
1853void* Isolate::GetData(uint32_t slot) {
1855 return I::GetEmbedderData(
this, slot);
1858uint32_t Isolate::GetNumberOfDataSlots() {
1860 return I::kNumIsolateDataSlots;
1865 if (
auto repr = GetDataFromSnapshotOnce(index);
1866 repr != internal::ValueHelper::kEmpty) {
1867 internal::PerformCastCheck(internal::ValueHelper::ReprAsValue<T>(repr));
Definition: v8-array-buffer.h:136
Definition: v8-context.h:48
Definition: v8-cppgc.h:65
Definition: v8-embedder-heap.h:22
Definition: v8-external-memory-accounter.h:23
Definition: v8-statistics.h:219
Definition: v8-statistics.h:202
Definition: v8-profiler.h:953
Definition: v8-statistics.h:183
Definition: v8-statistics.h:140
Definition: v8-isolate.h:206
static IsolateGroup Create()
IsolateGroup & operator=(const IsolateGroup &)=delete
static IsolateGroup GetDefault()
bool operator!=(const IsolateGroup &other) const
Definition: v8-isolate.h:240
IsolateGroup(const IsolateGroup &)=delete
IsolateGroup(IsolateGroup &&other)
bool operator==(const IsolateGroup &other) const
Definition: v8-isolate.h:236
static bool CanCreateNewGroups()
IsolateGroup & operator=(IsolateGroup &&other)
Definition: v8-isolate.h:396
AllowJavascriptExecutionScope(const AllowJavascriptExecutionScope &)=delete
~AllowJavascriptExecutionScope()
AllowJavascriptExecutionScope(Isolate *isolate)
AllowJavascriptExecutionScope & operator=(const AllowJavascriptExecutionScope &)=delete
Definition: v8-isolate.h:1200
Definition: v8-isolate.h:374
~DisallowJavascriptExecutionScope()
DisallowJavascriptExecutionScope(Isolate *isolate, OnFailure on_failure)
DisallowJavascriptExecutionScope(const DisallowJavascriptExecutionScope &)=delete
DisallowJavascriptExecutionScope & operator=(const DisallowJavascriptExecutionScope &)=delete
OnFailure
Definition: v8-isolate.h:376
@ CRASH_ON_FAILURE
Definition: v8-isolate.h:376
Definition: v8-isolate.h:355
Scope(Isolate *isolate)
Definition: v8-isolate.h:357
Scope(const Scope &)=delete
~Scope()
Definition: v8-isolate.h:361
Scope & operator=(const Scope &)=delete
Definition: v8-isolate.h:418
SuppressMicrotaskExecutionScope(Isolate *isolate, MicrotaskQueue *microtask_queue=nullptr)
~SuppressMicrotaskExecutionScope()
SuppressMicrotaskExecutionScope & operator=(const SuppressMicrotaskExecutionScope &)=delete
SuppressMicrotaskExecutionScope(const SuppressMicrotaskExecutionScope &)=delete
Definition: v8-isolate.h:261
void RemoveGCEpilogueCallback(GCCallback callback)
void AddGCPrologueCallback(GCCallbackWithData callback, void *data=nullptr, GCType gc_type_filter=kGCTypeAll)
bool GetHeapCodeAndMetadataStatistics(HeapCodeStatistics *object_statistics)
bool MeasureMemory(std::unique_ptr< MeasureMemoryDelegate > delegate, MeasureMemoryExecution execution=MeasureMemoryExecution::kDefault)
size_t NumberOfTrackedHeapObjectTypes()
void RemoveGCEpilogueCallback(GCCallbackWithData callback, void *data=nullptr)
void LocaleConfigurationChangeNotification()
void AddBeforeCallEnteredCallback(BeforeCallEnteredCallback callback)
void RemoveMicrotasksCompletedCallback(MicrotasksCompletedCallbackWithData callback, void *data=nullptr)
bool GetHeapSpaceStatistics(HeapSpaceStatistics *space_statistics, size_t index)
void SetEventLogger(LogEventCallback that)
void SetExceptionPropagationCallback(ExceptionPropagationCallback callback)
void RequestGarbageCollectionForTesting(GarbageCollectionType type, StackState stack_state)
Local< Value > ThrowError(Local< String > message)
size_t(*)() GetExternallyAllocatedMemoryInBytesCallback
Definition: v8-isolate.h:1257
static Isolate * New(const CreateParams ¶ms)
void SetAddCrashKeyCallback(AddCrashKeyCallback)
static Isolate * GetCurrent()
void RemoveCallCompletedCallback(CallCompletedCallback callback)
int ContextDisposedNotification(bool dependant_context=true)
static void Initialize(Isolate *isolate, const CreateParams ¶ms)
bool HasPendingException()
static Isolate * New(const IsolateGroup &group, const CreateParams ¶ms)
TimeZoneDetection
Definition: v8-isolate.h:1794
void RequestGarbageCollectionForTesting(GarbageCollectionType type)
GarbageCollectionType
Definition: v8-isolate.h:442
@ kFullGarbageCollection
Definition: v8-isolate.h:443
void SetHostImportModuleDynamicallyCallback(HostImportModuleDynamicallyCallback callback)
void(*)(Isolate *isolate, GCType type, GCCallbackFlags flags) GCCallback
Definition: v8-isolate.h:1067
bool GetHeapObjectStatisticsAtLastGC(HeapObjectStatistics *object_statistics, size_t type_index)
static Isolate * Allocate(const IsolateGroup &group)
void SetMicrotasksPolicy(MicrotasksPolicy policy)
void SetIsJSApiWrapperNativeErrorCallback(IsJSApiWrapperNativeErrorCallback callback)
void SetPromiseRejectCallback(PromiseRejectCallback callback)
void SetPromiseHook(PromiseHook hook)
void(*)(Isolate *isolate, UseCounterFeature feature) UseCounterCallback
Definition: v8-isolate.h:652
void CancelTerminateExecution()
void(*)(Isolate *isolate, GCType type, GCCallbackFlags flags, void *data) GCCallbackWithData
Definition: v8-isolate.h:1069
void SetHostCreateShadowRealmContextCallback(HostCreateShadowRealmContextCallback callback)
void EnqueueMicrotask(Local< Function > microtask)
void AddGCPrologueCallback(GCCallback callback, GCType gc_type_filter=kGCTypeAll)
void RemoveGCPrologueCallback(GCCallback callback)
void SetBatterySaverMode(bool battery_saver_mode_enabled)
void DateTimeConfigurationChangeNotification(TimeZoneDetection time_zone_detection=TimeZoneDetection::kSkip)
void AddCallCompletedCallback(CallCompletedCallback callback)
void GetStackSample(const RegisterState &state, void **frames, size_t frames_limit, SampleInfo *sample_info)
void SetEmbedderRootsHandler(EmbedderRootsHandler *handler)
void RemoveBeforeCallEnteredCallback(BeforeCallEnteredCallback callback)
void RequestInterrupt(InterruptCallback callback, void *data)
void AddGCEpilogueCallback(GCCallbackWithData callback, void *data=nullptr, GCType gc_type_filter=kGCTypeAll)
Isolate & operator=(const Isolate &)=delete
std::string GetDefaultLocale()
void PerformMicrotaskCheckpoint()
AtomicsWaitEvent
Definition: v8-isolate.h:1181
void SetPrepareStackTraceCallback(PrepareStackTraceCallback callback)
void LowMemoryNotification()
Priority
Definition: v8-isolate.h:637
Isolate(const Isolate &)=delete
void(*)(AtomicsWaitEvent event, Local< SharedArrayBuffer > array_buffer, size_t offset_in_bytes, int64_t value, double timeout_in_ms, AtomicsWaitWakeHandle *stop_handle, void *data) AtomicsWaitCallback
Definition: v8-isolate.h:1247
void SetCounterFunction(CounterLookupCallback)
MicrotasksPolicy GetMicrotasksPolicy() const
void AddGCEpilogueCallback(GCCallback callback, GCType gc_type_filter=kGCTypeAll)
bool HasPendingBackgroundTasks()
void DiscardThreadSpecificMetadata()
static Isolate * TryGetCurrent()
Local< Value > ThrowException(Local< Value > exception)
static Isolate * Allocate()
MessageErrorLevel
Definition: v8-isolate.h:626
bool(*)(Isolate *) AbortOnUncaughtExceptionCallback
Definition: v8-isolate.h:738
void AddMicrotasksCompletedCallback(MicrotasksCompletedCallbackWithData callback, void *data=nullptr)
void TerminateExecution()
void SetHostInitializeImportMetaObjectCallback(HostInitializeImportMetaObjectCallback callback)
void SetUseCounterCallback(UseCounterCallback callback)
Local< Value > GetContinuationPreservedEmbedderData()
size_t NumberOfHeapSpaces()
void GetHeapStatistics(HeapStatistics *heap_statistics)
void SetContinuationPreservedEmbedderData(Local< Value > data)
void SetMetricsRecorder(const std::shared_ptr< metrics::Recorder > &metrics_recorder)
void MemoryPressureNotification(MemoryPressureLevel level)
void SetAtomicsWaitCallback(AtomicsWaitCallback callback, void *data)
void EnqueueMicrotask(MicrotaskCallback callback, void *data=nullptr)
void SetAddHistogramSampleFunction(AddHistogramSampleCallback)
IsolateGroup GetGroup() const
void SetGetExternallyAllocatedMemoryInBytesCallback(GetExternallyAllocatedMemoryInBytesCallback callback)
UseCounterFeature
Definition: v8-isolate.h:455
bool IsExecutionTerminating()
void RemoveGCPrologueCallback(GCCallbackWithData, void *data=nullptr)
void SetAbortOnUncaughtExceptionCallback(AbortOnUncaughtExceptionCallback callback)
void ClearCachesForTesting()
void SetHostImportModuleWithPhaseDynamicallyCallback(HostImportModuleWithPhaseDynamicallyCallback callback)
void SetCreateHistogramFunction(CreateHistogramCallback)
Definition: v8-local-handle.h:266
Definition: v8-local-handle.h:632
Definition: v8-microtask-queue.h:40
Definition: v8-util.h:166
Definition: v8-isolate.h:64
void set_code_range_size_in_bytes(size_t limit)
Definition: v8-isolate.h:115
size_t max_old_generation_size_in_bytes() const
Definition: v8-isolate.h:124
void set_stack_limit(uint32_t *value)
Definition: v8-isolate.h:103
void set_initial_old_generation_size_in_bytes(size_t initial_size)
Definition: v8-isolate.h:146
void ConfigureDefaultsFromHeapSize(size_t initial_heap_size_in_bytes, size_t maximum_heap_size_in_bytes)
uint32_t * stack_limit() const
Definition: v8-isolate.h:102
size_t code_range_size_in_bytes() const
Definition: v8-isolate.h:114
void set_initial_young_generation_size_in_bytes(size_t initial_size)
Definition: v8-isolate.h:153
size_t initial_young_generation_size_in_bytes() const
Definition: v8-isolate.h:150
size_t max_young_generation_size_in_bytes() const
Definition: v8-isolate.h:136
void set_max_young_generation_size_in_bytes(size_t limit)
Definition: v8-isolate.h:139
size_t initial_old_generation_size_in_bytes() const
Definition: v8-isolate.h:143
void ConfigureDefaults(uint64_t physical_memory, uint64_t virtual_memory_limit)
void set_max_old_generation_size_in_bytes(size_t limit)
Definition: v8-isolate.h:127
Definition: v8-script.h:402
Definition: v8-container.h:148
Definition: v8-debug.h:117
Definition: v8-snapshot.h:21
Definition: v8-value.h:32
Definition: v8-internal.h:794
internal::Address * InternalRepresentationType
Definition: v8-internal.h:1579
Definition: v8-metrics.h:186
EmbedderStackState
Definition: common.h:15
uintptr_t Address
Definition: v8-internal.h:52
Definition: libplatform.h:15
void(*)(const JitCodeEvent *event) JitCodeEventHandler
Definition: v8-callbacks.h:140
JitCodeEventOptions
Definition: v8-callbacks.h:129
void(*)(const char *location, const OOMDetails &details) OOMErrorCallback
Definition: v8-callbacks.h:228
bool(*)(Local< Context > context) SharedArrayBufferConstructorEnabledCallback
Definition: v8-callbacks.h:324
void(*)(void *data) MicrotaskCallback
Definition: v8-microtask.h:14
GCCallbackFlags
Definition: v8-callbacks.h:177
bool(*)(Local< Context > context) WasmJSPIEnabledCallback
Definition: v8-callbacks.h:331
MicrotasksPolicy
Definition: v8-microtask.h:24
void(*)(Isolate *isolate, Local< Context > context, Local< Promise::Resolver > resolver, Local< Value > result, WasmAsyncSuccess success) WasmAsyncResolvePromiseCallback
Definition: v8-callbacks.h:313
bool(*)(const FunctionCallbackInfo< Value > &) ExtensionCallback
Definition: v8-callbacks.h:296
void(*)(PromiseHookType type, Local< Promise > promise, Local< Value > parent) PromiseHook
Definition: v8-promise.h:144
void(*)(Isolate *, void *) MicrotasksCompletedCallbackWithData
Definition: v8-microtask.h:13
bool(*)(Local< Context > context) JavaScriptCompileHintsMagicEnabledCallback
Definition: v8-callbacks.h:328
void(*)(ExceptionPropagationMessage message) ExceptionPropagationCallback
Definition: v8-exception.h:133
void(*)(const FunctionCallbackInfo< Value > &) WasmStreamingCallback
Definition: v8-callbacks.h:306
void *(*)(const char *name, int min, int max, size_t buckets) CreateHistogramCallback
Definition: v8-callbacks.h:214
void(*)(Local< Context > context, Local< Module > module, Local< Object > meta) HostInitializeImportMetaObjectCallback
Definition: v8-callbacks.h:432
void(*)(Local< Message > message, Local< Value > data) MessageCallback
Definition: v8-callbacks.h:230
void(*)(CrashKeyId id, const std::string &value) AddCrashKeyCallback
Definition: v8-callbacks.h:251
void(*)(Isolate *isolate, void *data) InterruptCallback
Definition: v8-callbacks.h:189
void(*)(Isolate *) CallCompletedCallback
Definition: v8-callbacks.h:255
void(*)(void *histogram, int sample) AddHistogramSampleCallback
Definition: v8-callbacks.h:216
size_t(*)(void *data, size_t current_heap_limit, size_t initial_heap_limit) NearHeapLimitCallback
Definition: v8-callbacks.h:199
void(*)(Isolate *) BeforeCallEnteredCallback
Definition: v8-callbacks.h:254
bool(*)(Local< Context > context, Local< String > source) AllowWasmCodeGenerationCallback
Definition: v8-callbacks.h:299
void(*)(const char *location, const char *message) FatalErrorCallback
Definition: v8-callbacks.h:220
void(*)(PromiseRejectMessage message) PromiseRejectCallback
Definition: v8-promise.h:170
GCType
Definition: v8-callbacks.h:152
ModifyCodeGenerationFromStringsResult(*)(Local< Context > context, Local< Value > source, bool is_code_like) ModifyCodeGenerationFromStringsCallback2
Definition: v8-callbacks.h:277
void(*)(Local< Object > target, AccessType type, Local< Value > data) FailedAccessCheckCallback
Definition: v8-callbacks.h:293
bool(*)(Local< Context > context) WasmImportedStringsEnabledCallback
Definition: v8-callbacks.h:320
void(*)(const char *name, int status) LogEventCallback
Definition: v8-callbacks.h:236
MemoryPressureLevel
Definition: v8-isolate.h:175
MeasureMemoryExecution
Definition: v8-statistics.h:43
int *(*)(const char *name) CounterLookupCallback
Definition: v8-callbacks.h:211
bool(*)(Isolate *isolate, Local< Object > obj) IsJSApiWrapperNativeErrorCallback
Definition: v8-callbacks.h:454
Definition: v8-isolate.h:266
Definition: v8-unwinder.h:69
Definition: v8-unwinder.h:60
Definition: v8-unwinder.h:21
Definition: v8-unwinder.h:50
#define V8_EXPORT
Definition: v8config.h:793
#define V8_INLINE
Definition: v8config.h:499
#define V8_DEPRECATE_SOON(message)
Definition: v8config.h:603
#define V8_DEPRECATED(message)
Definition: v8config.h:595
#define ALLOW_COPY_AND_MOVE_WITH_DEPRECATED_FIELDS(ClassName)
Definition: v8config.h:626
#define V8_NODISCARD
Definition: v8config.h:682