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;
265 std::shared_ptr<
ArrayBuffer::Allocator> array_buffer_allocator_shared;
273 const intptr_t* external_references =
nullptr;
279 bool allow_atomics_wait = true;
286 int embedder_wrapper_type_index = -1;
287 int embedder_wrapper_object_index = -1;
309 v8_isolate_->Enter();
341 bool was_execution_allowed_;
360 bool was_execution_allowed_assert_;
361 bool was_execution_allowed_throws_;
362 bool was_execution_allowed_dump_;
382 internal::Isolate*
const i_isolate_;
383 internal::MicrotaskQueue*
const microtask_queue_;
386 friend class internal::ThreadLocalTop;
395 kMinorGarbageCollection
409 kOBSOLETE_LegacyConst = 2,
410 kOBSOLETE_MarkDequeOverflow = 3,
411 kOBSOLETE_StoreBufferOverflow = 4,
412 kOBSOLETE_SlotsBufferOverflow = 5,
413 kOBSOLETE_ObjectObserve = 6,
417 kOBSOLETE_StrongMode = 10,
418 kRegExpPrototypeStickyGetter = 11,
419 kRegExpPrototypeToString = 12,
420 kRegExpPrototypeUnicodeGetter = 13,
421 kOBSOLETE_IntlV8Parse = 14,
422 kOBSOLETE_IntlPattern = 15,
423 kOBSOLETE_IntlResolved = 16,
424 kOBSOLETE_PromiseChain = 17,
425 kOBSOLETE_PromiseAccept = 18,
426 kOBSOLETE_PromiseDefer = 19,
427 kHtmlCommentInExternalScript = 20,
429 kSloppyModeBlockScopedFunctionRedefinition = 22,
430 kForInInitializer = 23,
431 kOBSOLETE_ArrayProtectorDirtied = 24,
432 kArraySpeciesModified = 25,
433 kArrayPrototypeConstructorModified = 26,
434 kOBSOLETE_ArrayInstanceProtoModified = 27,
435 kArrayInstanceConstructorModified = 28,
436 kOBSOLETE_LegacyFunctionDeclaration = 29,
437 kOBSOLETE_RegExpPrototypeSourceGetter = 30,
438 kOBSOLETE_RegExpPrototypeOldFlagGetter = 31,
439 kDecimalWithLeadingZeroInStrictMode = 32,
440 kLegacyDateParser = 33,
441 kDefineGetterOrSetterWouldThrow = 34,
442 kFunctionConstructorReturnedUndefined = 35,
443 kAssigmentExpressionLHSIsCallInSloppy = 36,
444 kAssigmentExpressionLHSIsCallInStrict = 37,
445 kPromiseConstructorReturnedUndefined = 38,
446 kOBSOLETE_ConstructorNonUndefinedPrimitiveReturn = 39,
447 kOBSOLETE_LabeledExpressionStatement = 40,
448 kOBSOLETE_LineOrParagraphSeparatorAsLineTerminator = 41,
450 kErrorCaptureStackTrace = 43,
451 kErrorPrepareStackTrace = 44,
452 kErrorStackTraceLimit = 45,
453 kWebAssemblyInstantiation = 46,
454 kDeoptimizerDisableSpeculation = 47,
455 kOBSOLETE_ArrayPrototypeSortJSArrayModifiedPrototype = 48,
456 kFunctionTokenOffsetTooLongForToString = 49,
457 kWasmSharedMemory = 50,
458 kWasmThreadOpcodes = 51,
459 kOBSOLETE_AtomicsNotify = 52,
460 kOBSOLETE_AtomicsWake = 53,
463 kDateTimeFormat = 56,
465 kRelativeTimeFormat = 58,
469 kStringLocaleCompare = 62,
470 kOBSOLETE_StringToLocaleUpperCase = 63,
471 kStringToLocaleLowerCase = 64,
472 kNumberToLocaleString = 65,
473 kDateToLocaleString = 66,
474 kDateToLocaleDateString = 67,
475 kDateToLocaleTimeString = 68,
476 kAttemptOverrideReadOnlyOnPrototypeSloppy = 69,
477 kAttemptOverrideReadOnlyOnPrototypeStrict = 70,
478 kOBSOLETE_OptimizedFunctionWithOneShotBytecode = 71,
479 kRegExpMatchIsTrueishOnNonJSRegExp = 72,
480 kRegExpMatchIsFalseishOnJSRegExp = 73,
481 kOBSOLETE_DateGetTimezoneOffset = 74,
482 kStringNormalize = 75,
483 kCallSiteAPIGetFunctionSloppyCall = 76,
484 kCallSiteAPIGetThisSloppyCall = 77,
485 kOBSOLETE_RegExpMatchAllWithNonGlobalRegExp = 78,
486 kRegExpExecCalledOnSlowRegExp = 79,
487 kRegExpReplaceCalledOnSlowRegExp = 80,
489 kSharedArrayBufferConstructed = 82,
490 kArrayPrototypeHasElements = 83,
491 kObjectPrototypeHasElements = 84,
492 kNumberFormatStyleUnit = 85,
493 kDateTimeFormatRange = 86,
494 kDateTimeFormatDateTimeStyle = 87,
495 kBreakIteratorTypeWord = 88,
496 kBreakIteratorTypeLine = 89,
497 kInvalidatedArrayBufferDetachingProtector = 90,
498 kInvalidatedArrayConstructorProtector = 91,
499 kInvalidatedArrayIteratorLookupChainProtector = 92,
500 kInvalidatedArraySpeciesLookupChainProtector = 93,
501 kInvalidatedIsConcatSpreadableLookupChainProtector = 94,
502 kInvalidatedMapIteratorLookupChainProtector = 95,
503 kInvalidatedNoElementsProtector = 96,
504 kInvalidatedPromiseHookProtector = 97,
505 kInvalidatedPromiseResolveLookupChainProtector = 98,
506 kInvalidatedPromiseSpeciesLookupChainProtector = 99,
507 kInvalidatedPromiseThenLookupChainProtector = 100,
508 kInvalidatedRegExpSpeciesLookupChainProtector = 101,
509 kInvalidatedSetIteratorLookupChainProtector = 102,
510 kInvalidatedStringIteratorLookupChainProtector = 103,
511 kInvalidatedStringLengthOverflowLookupChainProtector = 104,
512 kInvalidatedTypedArraySpeciesLookupChainProtector = 105,
513 kWasmSimdOpcodes = 106,
514 kVarRedeclaredCatchBinding = 107,
516 kOBSOLETE_WasmBulkMemory = 109,
517 kOBSOLETE_WasmMultiValue = 110,
518 kWasmExceptionHandling = 111,
519 kInvalidatedMegaDOMProtector = 112,
520 kFunctionPrototypeArguments = 113,
521 kFunctionPrototypeCaller = 114,
522 kTurboFanOsrCompileStarted = 115,
523 kAsyncStackTaggingCreateTaskCall = 116,
524 kDurationFormat = 117,
525 kInvalidatedNumberStringNotRegexpLikeProtector = 118,
526 kOBSOLETE_RegExpUnicodeSetIncompatibilitiesWithUnicodeMode = 119,
527 kOBSOLETE_ImportAssertionDeprecatedSyntax = 120,
528 kLocaleInfoObsoletedGetters = 121,
529 kLocaleInfoFunctions = 122,
530 kCompileHintsMagicAll = 123,
531 kInvalidatedNoProfilingProtector = 124,
533 kWasmMultiMemory = 126,
535 kWasmImportedStrings = 128,
536 kSourceMappingUrlMagicCommentAtSign = 129,
537 kTemporalObject = 130,
538 kWasmModuleCompilation = 131,
539 kInvalidatedNoUndetectableObjectsProtector = 132,
540 kWasmJavaScriptPromiseIntegration = 133,
541 kWasmReturnCall = 134,
542 kWasmExtendedConst = 135,
543 kWasmRelaxedSimd = 136,
544 kWasmTypeReflection = 137,
546 kWasmTypedFuncRef = 139,
547 kInvalidatedStringWrapperToPrimitiveProtector = 140,
548 kDocumentAllLegacyCall = 141,
549 kDocumentAllLegacyConstruct = 142,
550 kConsoleContext = 143,
551 kWasmImportedStringsUtf8 = 144,
552 kResizableArrayBuffer = 145,
553 kGrowableSharedArrayBuffer = 146,
555 kArrayFromAsync = 148,
556 kIteratorMethods = 149,
559 kArrayFindLast = 152,
561 kArrayBufferTransfer = 154,
562 kPromiseWithResolvers = 155,
563 kAtomicsWaitAsync = 156,
568 kUseCounterFeatureCount
572 kMessageLog = (1 << 0),
573 kMessageDebug = (1 << 1),
574 kMessageInfo = (1 << 2),
575 kMessageError = (1 << 3),
576 kMessageWarning = (1 << 4),
577 kMessageAll = kMessageLog | kMessageDebug | kMessageInfo | kMessageError |
724#if defined(V8_OS_WIN)
728 void SetFilterETWSessionByURLCallback(FilterETWSessionByURLCallback callback);
800 V8_INLINE void SetData(uint32_t slot,
void* data);
812 V8_INLINE static uint32_t GetNumberOfDataSlots();
895 std::unique_ptr<MeasureMemoryDelegate> delegate,
911 size_t frames_limit,
SampleInfo* sample_info);
978 return ThrowError(String::NewFromUtf8Literal(
this, message));
1014 GCType gc_type_filter = kGCTypeAll);
1022 GCType gc_type_filter = kGCTypeAll);
1046 GCType gc_type_filter = kGCTypeAll);
1054 GCType gc_type_filter = kGCTypeAll);
1070 void* data =
nullptr);
1092 "Set the heap on Isolate creation using CreateParams instead.")
1102 void DetachCppHeap();
1121 kTerminatedExecution,
1176 size_t offset_in_bytes, int64_t value,
1177 double timeout_in_ms,
1409 const std::shared_ptr<metrics::Recorder>& metrics_recorder);
1440 void IsolateInForegroundNotification();
1447 void IsolateInBackgroundNotification();
1469 void UpdateLoadStartTime();
1483 void SetIsLoading(
bool is_loading);
1489 void IncreaseHeapLimitForDebugging();
1494 void RestoreOriginalHeapLimit();
1500 bool IsHeapLimitIncreasedForDebugging();
1536 void SetStackLimit(uintptr_t stack_limit);
1553 void GetCodeRange(
void** start,
size_t* length_in_bytes);
1559 void GetEmbeddedCodeRange(const
void** start,
size_t* length_in_bytes);
1566 static constexpr
size_t kMinCodePagesBufferSize = 32;
1612 void AutomaticallyRestoreInitialHeapLimit(
double threshold_percent = 0.5);
1618 void SetModifyCodeGenerationFromStringsCallback(
1625 void SetAllowWasmCodeGenerationCallback(
1637 void SetWasmAsyncResolvePromiseCallback(
1642 void SetWasmImportedStringsEnabledCallback(
1645 void SetSharedArrayBufferConstructorEnabledCallback(
1655 "Will be removed, use
ScriptCompiler::CompileOptions for enabling the "
1656 "compile hints magic comments")
1657 void SetJavaScriptCompileHintsMagicEnabledCallback(
1712 void SetCaptureStackTraceForUncaughtExceptions(
1713 bool capture,
int frame_limit = 10,
1721 V8_DEPRECATED("Will be removed without replacement. crbug.com/
v8/14172")
1735 void SetAllowAtomicsWait(
bool allow);
1788 void*
operator new(
size_t size) =
delete;
1789 void*
operator new[](
size_t size) =
delete;
1790 void operator delete(
void*, size_t) =
delete;
1791 void operator delete[](
void*, size_t) =
delete;
1794 template <
class K,
class V,
class Traits>
1799 void HandleExternalMemoryInterrupt();
1802void Isolate::SetData(uint32_t slot,
void* data) {
1804 I::SetEmbedderData(
this, slot, data);
1807void* Isolate::GetData(uint32_t slot) {
1809 return I::GetEmbedderData(
this, slot);
1812uint32_t Isolate::GetNumberOfDataSlots() {
1814 return I::kNumIsolateDataSlots;
1819 if (
auto repr = GetDataFromSnapshotOnce(index);
1820 repr != internal::ValueHelper::kEmpty) {
1821 internal::PerformCastCheck(internal::ValueHelper::ReprAsValue<T>(repr));
Definition: v8-array-buffer.h:153
Definition: v8-array-buffer.h:136
Definition: v8-context.h:48
Definition: v8-cppgc.h:65
Definition: v8-embedder-heap.h:22
Definition: v8-primitive.h:737
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:347
AllowJavascriptExecutionScope(const AllowJavascriptExecutionScope &)=delete
~AllowJavascriptExecutionScope()
AllowJavascriptExecutionScope(Isolate *isolate)
AllowJavascriptExecutionScope & operator=(const AllowJavascriptExecutionScope &)=delete
Definition: v8-isolate.h:1132
Definition: v8-isolate.h:325
~DisallowJavascriptExecutionScope()
DisallowJavascriptExecutionScope(Isolate *isolate, OnFailure on_failure)
DisallowJavascriptExecutionScope(const DisallowJavascriptExecutionScope &)=delete
DisallowJavascriptExecutionScope & operator=(const DisallowJavascriptExecutionScope &)=delete
OnFailure
Definition: v8-isolate.h:327
@ CRASH_ON_FAILURE
Definition: v8-isolate.h:327
Definition: v8-isolate.h:306
Scope(Isolate *isolate)
Definition: v8-isolate.h:308
Scope(const Scope &)=delete
~Scope()
Definition: v8-isolate.h:312
Scope & operator=(const Scope &)=delete
Definition: v8-isolate.h:369
SuppressMicrotaskExecutionScope(Isolate *isolate, MicrotaskQueue *microtask_queue=nullptr)
~SuppressMicrotaskExecutionScope()
SuppressMicrotaskExecutionScope & operator=(const SuppressMicrotaskExecutionScope &)=delete
SuppressMicrotaskExecutionScope(const SuppressMicrotaskExecutionScope &)=delete
Definition: v8-isolate.h:212
void RemoveGCEpilogueCallback(GCCallback callback)
void AddGCPrologueCallback(GCCallbackWithData callback, void *data=nullptr, GCType gc_type_filter=kGCTypeAll)
bool GetHeapCodeAndMetadataStatistics(HeapCodeStatistics *object_statistics)
HeapProfiler * GetHeapProfiler()
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:1189
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()
TimeZoneDetection
Definition: v8-isolate.h:1750
void RequestGarbageCollectionForTesting(GarbageCollectionType type)
GarbageCollectionType
Definition: v8-isolate.h:393
@ kFullGarbageCollection
Definition: v8-isolate.h:394
void SetHostImportModuleDynamicallyCallback(HostImportModuleDynamicallyCallback callback)
void(*)(Isolate *isolate, GCType type, GCCallbackFlags flags) GCCallback
Definition: v8-isolate.h:999
bool GetHeapObjectStatisticsAtLastGC(HeapObjectStatistics *object_statistics, size_t type_index)
void SetMicrotasksPolicy(MicrotasksPolicy policy)
void SetPromiseRejectCallback(PromiseRejectCallback callback)
void SetPromiseHook(PromiseHook hook)
void(*)(Isolate *isolate, UseCounterFeature feature) UseCounterCallback
Definition: v8-isolate.h:597
void CancelTerminateExecution()
void(*)(Isolate *isolate, GCType type, GCCallbackFlags flags, void *data) GCCallbackWithData
Definition: v8-isolate.h:1001
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)
MaybeLocal< Data > GetCurrentHostDefinedOptions()
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
void SetIdle(bool is_idle)
std::string GetDefaultLocale()
void PerformMicrotaskCheckpoint()
AtomicsWaitEvent
Definition: v8-isolate.h:1113
Local< Value > ThrowError(const char(&message)[N])
Definition: v8-isolate.h:977
void SetPrepareStackTraceCallback(PrepareStackTraceCallback callback)
int64_t AdjustAmountOfExternalAllocatedMemory(int64_t change_in_bytes)
void LowMemoryNotification()
Priority
Definition: v8-isolate.h:582
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:1179
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)
Local< Context > GetCurrentContext()
static Isolate * Allocate()
MessageErrorLevel
Definition: v8-isolate.h:571
bool(*)(Isolate *) AbortOnUncaughtExceptionCallback
Definition: v8-isolate.h:676
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)
Local< Context > GetIncumbentContext()
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)
Local< Context > GetEnteredOrMicrotaskContext()
void SetGetExternallyAllocatedMemoryInBytesCallback(GetExternallyAllocatedMemoryInBytesCallback callback)
UseCounterFeature
Definition: v8-isolate.h:406
bool IsExecutionTerminating()
ArrayBuffer::Allocator * GetArrayBufferAllocator()
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:111
Definition: v8-snapshot.h:21
Definition: v8-value.h:32
Definition: v8-internal.h:855
internal::Address * InternalRepresentationType
Definition: v8-internal.h:1641
Definition: v8-metrics.h:186
EmbedderStackState
Definition: common.h:15
uintptr_t Address
Definition: v8-internal.h:51
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:131
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
RAILMode
Definition: v8-isolate.h:172
@ PERFORMANCE_IDLE
Definition: v8-isolate.h:183
@ PERFORMANCE_LOAD
Definition: v8-isolate.h:186
@ PERFORMANCE_ANIMATION
Definition: v8-isolate.h:180
@ PERFORMANCE_RESPONSE
Definition: v8-isolate.h:176
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:197
MeasureMemoryExecution
Definition: v8-statistics.h:43
int *(*)(const char *name) CounterLookupCallback
Definition: v8-callbacks.h:211
Definition: v8-isolate.h:217
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