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;
249 return isolate_group_ == other.isolate_group_;
253 return !operator==(other);
260 explicit IsolateGroup(internal::IsolateGroup*&& isolate_group);
262 internal::IsolateGroup* isolate_group_;
326 std::shared_ptr<
ArrayBuffer::Allocator> array_buffer_allocator_shared;
334 const intptr_t* external_references =
nullptr;
340 bool allow_atomics_wait = true;
347 int embedder_wrapper_type_index = -1;
348 int embedder_wrapper_object_index = -1;
370 v8_isolate_->Enter();
402 bool was_execution_allowed_;
421 bool was_execution_allowed_assert_;
422 bool was_execution_allowed_throws_;
423 bool was_execution_allowed_dump_;
443 internal::Isolate*
const i_isolate_;
444 internal::MicrotaskQueue*
const microtask_queue_;
447 friend class internal::ThreadLocalTop;
456 kMinorGarbageCollection
470 kOBSOLETE_LegacyConst = 2,
471 kOBSOLETE_MarkDequeOverflow = 3,
472 kOBSOLETE_StoreBufferOverflow = 4,
473 kOBSOLETE_SlotsBufferOverflow = 5,
474 kOBSOLETE_ObjectObserve = 6,
478 kOBSOLETE_StrongMode = 10,
479 kRegExpPrototypeStickyGetter = 11,
480 kRegExpPrototypeToString = 12,
481 kRegExpPrototypeUnicodeGetter = 13,
482 kOBSOLETE_IntlV8Parse = 14,
483 kOBSOLETE_IntlPattern = 15,
484 kOBSOLETE_IntlResolved = 16,
485 kOBSOLETE_PromiseChain = 17,
486 kOBSOLETE_PromiseAccept = 18,
487 kOBSOLETE_PromiseDefer = 19,
488 kHtmlCommentInExternalScript = 20,
490 kSloppyModeBlockScopedFunctionRedefinition = 22,
491 kForInInitializer = 23,
492 kOBSOLETE_ArrayProtectorDirtied = 24,
493 kArraySpeciesModified = 25,
494 kArrayPrototypeConstructorModified = 26,
495 kOBSOLETE_ArrayInstanceProtoModified = 27,
496 kArrayInstanceConstructorModified = 28,
497 kOBSOLETE_LegacyFunctionDeclaration = 29,
498 kOBSOLETE_RegExpPrototypeSourceGetter = 30,
499 kOBSOLETE_RegExpPrototypeOldFlagGetter = 31,
500 kDecimalWithLeadingZeroInStrictMode = 32,
501 kLegacyDateParser = 33,
502 kDefineGetterOrSetterWouldThrow = 34,
503 kFunctionConstructorReturnedUndefined = 35,
504 kAssigmentExpressionLHSIsCallInSloppy = 36,
505 kAssigmentExpressionLHSIsCallInStrict = 37,
506 kPromiseConstructorReturnedUndefined = 38,
507 kOBSOLETE_ConstructorNonUndefinedPrimitiveReturn = 39,
508 kOBSOLETE_LabeledExpressionStatement = 40,
509 kOBSOLETE_LineOrParagraphSeparatorAsLineTerminator = 41,
511 kErrorCaptureStackTrace = 43,
512 kErrorPrepareStackTrace = 44,
513 kErrorStackTraceLimit = 45,
514 kWebAssemblyInstantiation = 46,
515 kDeoptimizerDisableSpeculation = 47,
516 kOBSOLETE_ArrayPrototypeSortJSArrayModifiedPrototype = 48,
517 kFunctionTokenOffsetTooLongForToString = 49,
518 kWasmSharedMemory = 50,
519 kWasmThreadOpcodes = 51,
520 kOBSOLETE_AtomicsNotify = 52,
521 kOBSOLETE_AtomicsWake = 53,
524 kDateTimeFormat = 56,
526 kRelativeTimeFormat = 58,
530 kStringLocaleCompare = 62,
531 kOBSOLETE_StringToLocaleUpperCase = 63,
532 kStringToLocaleLowerCase = 64,
533 kNumberToLocaleString = 65,
534 kDateToLocaleString = 66,
535 kDateToLocaleDateString = 67,
536 kDateToLocaleTimeString = 68,
537 kAttemptOverrideReadOnlyOnPrototypeSloppy = 69,
538 kAttemptOverrideReadOnlyOnPrototypeStrict = 70,
539 kOBSOLETE_OptimizedFunctionWithOneShotBytecode = 71,
540 kRegExpMatchIsTrueishOnNonJSRegExp = 72,
541 kRegExpMatchIsFalseishOnJSRegExp = 73,
542 kOBSOLETE_DateGetTimezoneOffset = 74,
543 kStringNormalize = 75,
544 kCallSiteAPIGetFunctionSloppyCall = 76,
545 kCallSiteAPIGetThisSloppyCall = 77,
546 kOBSOLETE_RegExpMatchAllWithNonGlobalRegExp = 78,
547 kRegExpExecCalledOnSlowRegExp = 79,
548 kRegExpReplaceCalledOnSlowRegExp = 80,
550 kSharedArrayBufferConstructed = 82,
551 kArrayPrototypeHasElements = 83,
552 kObjectPrototypeHasElements = 84,
553 kNumberFormatStyleUnit = 85,
554 kDateTimeFormatRange = 86,
555 kDateTimeFormatDateTimeStyle = 87,
556 kBreakIteratorTypeWord = 88,
557 kBreakIteratorTypeLine = 89,
558 kInvalidatedArrayBufferDetachingProtector = 90,
559 kInvalidatedArrayConstructorProtector = 91,
560 kInvalidatedArrayIteratorLookupChainProtector = 92,
561 kInvalidatedArraySpeciesLookupChainProtector = 93,
562 kInvalidatedIsConcatSpreadableLookupChainProtector = 94,
563 kInvalidatedMapIteratorLookupChainProtector = 95,
564 kInvalidatedNoElementsProtector = 96,
565 kInvalidatedPromiseHookProtector = 97,
566 kInvalidatedPromiseResolveLookupChainProtector = 98,
567 kInvalidatedPromiseSpeciesLookupChainProtector = 99,
568 kInvalidatedPromiseThenLookupChainProtector = 100,
569 kInvalidatedRegExpSpeciesLookupChainProtector = 101,
570 kInvalidatedSetIteratorLookupChainProtector = 102,
571 kInvalidatedStringIteratorLookupChainProtector = 103,
572 kInvalidatedStringLengthOverflowLookupChainProtector = 104,
573 kInvalidatedTypedArraySpeciesLookupChainProtector = 105,
574 kWasmSimdOpcodes = 106,
575 kVarRedeclaredCatchBinding = 107,
577 kOBSOLETE_WasmBulkMemory = 109,
578 kOBSOLETE_WasmMultiValue = 110,
579 kWasmExceptionHandling = 111,
580 kInvalidatedMegaDOMProtector = 112,
581 kFunctionPrototypeArguments = 113,
582 kFunctionPrototypeCaller = 114,
583 kTurboFanOsrCompileStarted = 115,
584 kAsyncStackTaggingCreateTaskCall = 116,
585 kDurationFormat = 117,
586 kInvalidatedNumberStringNotRegexpLikeProtector = 118,
587 kOBSOLETE_RegExpUnicodeSetIncompatibilitiesWithUnicodeMode = 119,
588 kOBSOLETE_ImportAssertionDeprecatedSyntax = 120,
589 kLocaleInfoObsoletedGetters = 121,
590 kLocaleInfoFunctions = 122,
591 kCompileHintsMagicAll = 123,
592 kInvalidatedNoProfilingProtector = 124,
594 kWasmMultiMemory = 126,
596 kWasmImportedStrings = 128,
597 kSourceMappingUrlMagicCommentAtSign = 129,
598 kTemporalObject = 130,
599 kWasmModuleCompilation = 131,
600 kInvalidatedNoUndetectableObjectsProtector = 132,
601 kWasmJavaScriptPromiseIntegration = 133,
602 kWasmReturnCall = 134,
603 kWasmExtendedConst = 135,
604 kWasmRelaxedSimd = 136,
605 kWasmTypeReflection = 137,
607 kWasmTypedFuncRef = 139,
608 kInvalidatedStringWrapperToPrimitiveProtector = 140,
609 kDocumentAllLegacyCall = 141,
610 kDocumentAllLegacyConstruct = 142,
611 kConsoleContext = 143,
612 kWasmImportedStringsUtf8 = 144,
613 kResizableArrayBuffer = 145,
614 kGrowableSharedArrayBuffer = 146,
616 kArrayFromAsync = 148,
617 kIteratorMethods = 149,
620 kArrayFindLast = 152,
622 kArrayBufferTransfer = 154,
623 kPromiseWithResolvers = 155,
624 kAtomicsWaitAsync = 156,
625 kExtendingNonExtensibleWithPrivate = 157,
627 kStringReplaceAll = 159,
628 kStringWellFormed = 160,
629 kWeakReferences = 161,
635 kUseCounterFeatureCount
639 kMessageLog = (1 << 0),
640 kMessageDebug = (1 << 1),
641 kMessageInfo = (1 << 2),
642 kMessageError = (1 << 3),
643 kMessageWarning = (1 << 4),
644 kMessageAll = kMessageLog | kMessageDebug | kMessageInfo | kMessageError |
806#if defined(V8_OS_WIN)
811 void SetFilterETWSessionByURLCallback(FilterETWSessionByURLCallback callback);
812 void SetFilterETWSessionByURL2Callback(
813 FilterETWSessionByURL2Callback callback);
893 V8_INLINE void SetData(uint32_t slot,
void* data);
905 V8_INLINE static uint32_t GetNumberOfDataSlots();
988 std::unique_ptr<MeasureMemoryDelegate> delegate,
1004 size_t frames_limit,
SampleInfo* sample_info);
1014 int64_t AdjustAmountOfExternalAllocatedMemory(int64_t change_in_bytes);
1025 void SetIdle(
bool is_idle);
1066 return ThrowError(String::NewFromUtf8Literal(
this, message));
1102 GCType gc_type_filter = kGCTypeAll);
1110 GCType gc_type_filter = kGCTypeAll);
1134 GCType gc_type_filter = kGCTypeAll);
1142 GCType gc_type_filter = kGCTypeAll);
1158 void* data =
nullptr);
1180 "Set the heap on Isolate creation using CreateParams instead.")
1190 void DetachCppHeap();
1209 kTerminatedExecution,
1266 size_t offset_in_bytes, int64_t value,
1267 double timeout_in_ms,
1278 V8_DEPRECATED("SetAtomicsWaitCallback is unused and will be removed.")
1289 void SetGetExternallyAllocatedMemoryInBytesCallback(
1299 void TerminateExecution();
1309 bool IsExecutionTerminating();
1325 void CancelTerminateExecution();
1342 bool HasPendingBackgroundTasks();
1427 void PerformMicrotaskCheckpoint();
1462 void AddMicrotasksCompletedCallback(
1468 void RemoveMicrotasksCompletedCallback(
1500 void SetMetricsRecorder(
1501 const std::shared_ptr<metrics::Recorder>& metrics_recorder);
1514 void LowMemoryNotification();
1526 int ContextDisposedNotification(
bool dependant_context = true);
1542 void IsolateInForegroundNotification();
1549 void IsolateInBackgroundNotification();
1569 void SetIsLoading(
bool is_loading);
1577 void Freeze(
bool is_frozen);
1583 void IncreaseHeapLimitForDebugging();
1588 void RestoreOriginalHeapLimit();
1594 bool IsHeapLimitIncreasedForDebugging();
1630 void SetStackLimit(uintptr_t stack_limit);
1647 void GetCodeRange(
void** start,
size_t* length_in_bytes);
1653 void GetEmbeddedCodeRange(const
void** start,
size_t* length_in_bytes);
1660 static constexpr
size_t kMinCodePagesBufferSize = 32;
1706 void AutomaticallyRestoreInitialHeapLimit(
double threshold_percent = 0.5);
1712 void SetModifyCodeGenerationFromStringsCallback(
1719 void SetAllowWasmCodeGenerationCallback(
1731 void SetWasmAsyncResolvePromiseCallback(
1736 void SetWasmImportedStringsEnabledCallback(
1739 void SetSharedArrayBufferConstructorEnabledCallback(
1749 "Will be removed, use
ScriptCompiler::CompileOptions for enabling the "
1750 "compile hints magic comments")
1751 void SetJavaScriptCompileHintsMagicEnabledCallback(
1806 void SetCaptureStackTraceForUncaughtExceptions(
1807 bool capture,
int frame_limit = 10,
1821 void SetAllowAtomicsWait(
bool allow);
1874 void*
operator new(
size_t size) =
delete;
1875 void*
operator new[](
size_t size) =
delete;
1876 void operator delete(
void*, size_t) =
delete;
1877 void operator delete[](
void*, size_t) =
delete;
1880 template <
class K,
class V,
class Traits>
1886 int64_t AdjustAmountOfExternalAllocatedMemoryImpl(int64_t change_in_bytes);
1887 void HandleExternalMemoryInterrupt();
1890void Isolate::SetData(uint32_t slot,
void* data) {
1892 I::SetEmbedderData(
this, slot, data);
1895void* Isolate::GetData(uint32_t slot) {
1897 return I::GetEmbedderData(
this, slot);
1900uint32_t Isolate::GetNumberOfDataSlots() {
1902 return I::kNumIsolateDataSlots;
1907 if (
auto repr = GetDataFromSnapshotOnce(index);
1908 repr != internal::ValueHelper::kEmpty) {
1909 internal::PerformCastCheck(internal::ValueHelper::ReprAsValue<T>(repr));
Definition: v8-array-buffer.h:124
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-function.h:26
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:218
static IsolateGroup Create()
IsolateGroup & operator=(const IsolateGroup &)=delete
static IsolateGroup GetDefault()
bool operator!=(const IsolateGroup &other) const
Definition: v8-isolate.h:252
IsolateGroup(const IsolateGroup &)=delete
IsolateGroup(IsolateGroup &&other)
bool operator==(const IsolateGroup &other) const
Definition: v8-isolate.h:248
static bool CanCreateNewGroups()
IsolateGroup & operator=(IsolateGroup &&other)
Definition: v8-isolate.h:408
AllowJavascriptExecutionScope(const AllowJavascriptExecutionScope &)=delete
~AllowJavascriptExecutionScope()
AllowJavascriptExecutionScope(Isolate *isolate)
AllowJavascriptExecutionScope & operator=(const AllowJavascriptExecutionScope &)=delete
Definition: v8-isolate.h:1221
Definition: v8-isolate.h:386
~DisallowJavascriptExecutionScope()
DisallowJavascriptExecutionScope(Isolate *isolate, OnFailure on_failure)
DisallowJavascriptExecutionScope(const DisallowJavascriptExecutionScope &)=delete
DisallowJavascriptExecutionScope & operator=(const DisallowJavascriptExecutionScope &)=delete
OnFailure
Definition: v8-isolate.h:388
@ CRASH_ON_FAILURE
Definition: v8-isolate.h:388
Definition: v8-isolate.h:367
Scope(Isolate *isolate)
Definition: v8-isolate.h:369
Scope(const Scope &)=delete
~Scope()
Definition: v8-isolate.h:373
Scope & operator=(const Scope &)=delete
Definition: v8-isolate.h:430
SuppressMicrotaskExecutionScope(Isolate *isolate, MicrotaskQueue *microtask_queue=nullptr)
~SuppressMicrotaskExecutionScope()
SuppressMicrotaskExecutionScope & operator=(const SuppressMicrotaskExecutionScope &)=delete
SuppressMicrotaskExecutionScope(const SuppressMicrotaskExecutionScope &)=delete
Definition: v8-isolate.h:273
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()
bool GetHeapSpaceStatistics(HeapSpaceStatistics *space_statistics, size_t index)
Local< Value > ThrowError(Local< String > message)
size_t(*)() GetExternallyAllocatedMemoryInBytesCallback
Definition: v8-isolate.h:1281
static Isolate * New(const CreateParams ¶ms)
static Isolate * GetCurrent()
static void Initialize(Isolate *isolate, const CreateParams ¶ms)
bool HasPendingException()
static Isolate * New(const IsolateGroup &group, const CreateParams ¶ms)
TimeZoneDetection
Definition: v8-isolate.h:1836
void SetMemorySaverMode(bool memory_saver_mode_enabled)
GarbageCollectionType
Definition: v8-isolate.h:454
@ kFullGarbageCollection
Definition: v8-isolate.h:455
void SetHostImportModuleDynamicallyCallback(HostImportModuleDynamicallyCallback callback)
void(*)(Isolate *isolate, GCType type, GCCallbackFlags flags) GCCallback
Definition: v8-isolate.h:1087
bool GetHeapObjectStatisticsAtLastGC(HeapObjectStatistics *object_statistics, size_t type_index)
static Isolate * Allocate(const IsolateGroup &group)
void SetIsJSApiWrapperNativeErrorCallback(IsJSApiWrapperNativeErrorCallback callback)
void(*)(Isolate *isolate, UseCounterFeature feature) UseCounterCallback
Definition: v8-isolate.h:664
void(*)(Isolate *isolate, GCType type, GCCallbackFlags flags, void *data) GCCallbackWithData
Definition: v8-isolate.h:1089
void SetHostCreateShadowRealmContextCallback(HostCreateShadowRealmContextCallback callback)
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 GetStackSample(const RegisterState &state, void **frames, size_t frames_limit, SampleInfo *sample_info)
void SetEmbedderRootsHandler(EmbedderRootsHandler *handler)
void AddGCEpilogueCallback(GCCallbackWithData callback, void *data=nullptr, GCType gc_type_filter=kGCTypeAll)
Isolate & operator=(const Isolate &)=delete
std::string GetDefaultLocale()
AtomicsWaitEvent
Definition: v8-isolate.h:1201
void SetPrepareStackTraceCallback(PrepareStackTraceCallback callback)
Priority
Definition: v8-isolate.h:649
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:1269
void AddGCEpilogueCallback(GCCallback callback, GCType gc_type_filter=kGCTypeAll)
void DiscardThreadSpecificMetadata()
static Isolate * TryGetCurrent()
Local< Value > ThrowException(Local< Value > exception)
static Isolate * Allocate()
MessageErrorLevel
Definition: v8-isolate.h:638
bool(*)(Isolate *) AbortOnUncaughtExceptionCallback
Definition: v8-isolate.h:750
void SetHostInitializeImportMetaObjectCallback(HostInitializeImportMetaObjectCallback callback)
Local< Value > GetContinuationPreservedEmbedderData()
size_t NumberOfHeapSpaces()
void GetHeapStatistics(HeapStatistics *heap_statistics)
void SetContinuationPreservedEmbedderData(Local< Value > data)
void MemoryPressureNotification(MemoryPressureLevel level)
IsolateGroup GetGroup() const
UseCounterFeature
Definition: v8-isolate.h:467
void RemoveGCPrologueCallback(GCCallbackWithData, void *data=nullptr)
void SetAbortOnUncaughtExceptionCallback(AbortOnUncaughtExceptionCallback callback)
void ClearCachesForTesting()
void SetHostImportModuleWithPhaseDynamicallyCallback(HostImportModuleWithPhaseDynamicallyCallback callback)
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-array-buffer.h:437
Definition: v8-debug.h:117
Definition: v8-snapshot.h:21
Definition: v8-value.h:32
Definition: v8-internal.h:830
internal::Address * InternalRepresentationType
Definition: v8-internal.h:1622
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:142
JitCodeEventOptions
Definition: v8-callbacks.h:129
void(*)(const char *location, const OOMDetails &details) OOMErrorCallback
Definition: v8-callbacks.h:230
bool(*)(Local< Context > context) SharedArrayBufferConstructorEnabledCallback
Definition: v8-callbacks.h:326
void(*)(void *data) MicrotaskCallback
Definition: v8-microtask.h:14
GCCallbackFlags
Definition: v8-callbacks.h:179
bool(*)(Local< Context > context) WasmJSPIEnabledCallback
Definition: v8-callbacks.h:333
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:315
bool(*)(const FunctionCallbackInfo< Value > &) ExtensionCallback
Definition: v8-callbacks.h:298
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:330
ContextDependants
Definition: v8-isolate.h:181
void(*)(ExceptionPropagationMessage message) ExceptionPropagationCallback
Definition: v8-exception.h:133
void(*)(const FunctionCallbackInfo< Value > &) WasmStreamingCallback
Definition: v8-callbacks.h:308
void *(*)(const char *name, int min, int max, size_t buckets) CreateHistogramCallback
Definition: v8-callbacks.h:216
void(*)(Local< Context > context, Local< Module > module, Local< Object > meta) HostInitializeImportMetaObjectCallback
Definition: v8-callbacks.h:434
void(*)(Local< Message > message, Local< Value > data) MessageCallback
Definition: v8-callbacks.h:232
void(*)(CrashKeyId id, const std::string &value) AddCrashKeyCallback
Definition: v8-callbacks.h:253
void(*)(Isolate *isolate, void *data) InterruptCallback
Definition: v8-callbacks.h:191
void(*)(Isolate *) CallCompletedCallback
Definition: v8-callbacks.h:257
void(*)(void *histogram, int sample) AddHistogramSampleCallback
Definition: v8-callbacks.h:218
size_t(*)(void *data, size_t current_heap_limit, size_t initial_heap_limit) NearHeapLimitCallback
Definition: v8-callbacks.h:201
void(*)(Isolate *) BeforeCallEnteredCallback
Definition: v8-callbacks.h:256
bool(*)(Local< Context > context, Local< String > source) AllowWasmCodeGenerationCallback
Definition: v8-callbacks.h:301
void(*)(const char *location, const char *message) FatalErrorCallback
Definition: v8-callbacks.h:222
void(*)(PromiseRejectMessage message) PromiseRejectCallback
Definition: v8-promise.h:170
GCType
Definition: v8-callbacks.h:154
ModifyCodeGenerationFromStringsResult(*)(Local< Context > context, Local< Value > source, bool is_code_like) ModifyCodeGenerationFromStringsCallback2
Definition: v8-callbacks.h:279
void(*)(Local< Object > target, AccessType type, Local< Value > data) FailedAccessCheckCallback
Definition: v8-callbacks.h:295
bool(*)(Local< Context > context) WasmImportedStringsEnabledCallback
Definition: v8-callbacks.h:322
void(*)(const char *name, int status) LogEventCallback
Definition: v8-callbacks.h:238
MemoryPressureLevel
Definition: v8-isolate.h:175
MeasureMemoryExecution
Definition: v8-statistics.h:43
int *(*)(const char *name) CounterLookupCallback
Definition: v8-callbacks.h:213
bool(*)(Isolate *isolate, Local< Object > obj) IsJSApiWrapperNativeErrorCallback
Definition: v8-callbacks.h:456
Definition: v8-isolate.h:278
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 END_ALLOW_USE_DEPRECATED()
Definition: v8config.h:623
#define ALLOW_COPY_AND_MOVE_WITH_DEPRECATED_FIELDS(ClassName)
Definition: v8config.h:626
#define START_ALLOW_USE_DEPRECATED()
Definition: v8config.h:622
#define V8_NODISCARD
Definition: v8config.h:682