5#ifndef INCLUDE_V8_ISOLATE_H_
6#define INCLUDE_V8_ISOLATE_H_
15#include "cppgc/common.h"
51
52
53
54
55
56
57
58
59
60
61
62
63
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
85 size_t maximum_heap_size_in_bytes);
88
89
90
91
92
93
94
95
97 uint64_t virtual_memory_limit);
100
101
106
107
108
109
110
111
112
113
118
119
120
121
122
123
125 return max_old_generation_size_;
128 max_old_generation_size_ = limit;
132
133
134
135
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 return physical_memory_size_;
162 static constexpr size_t kMB = 1048576u;
163 size_t code_range_size_ = 0;
164 size_t max_old_generation_size_ = 0;
165 size_t max_young_generation_size_ = 0;
166 size_t initial_old_generation_size_ = 0;
167 size_t initial_young_generation_size_ = 0;
168 uint64_t physical_memory_size_ = 0;
169 uint32_t* stack_limit_ =
nullptr;
173
174
175
176
177
178
179
183
184
185
190
195
196
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
226
227
228
229
230
234
235
236
240
241
242
254 return isolate_group_ == other.isolate_group_;
261#ifdef V8_ENABLE_SANDBOX
263
264
265
277 explicit IsolateGroup(
internal::IsolateGroup*&& isolate_group);
279 internal::IsolateGroup* isolate_group_;
283
284
285
286
287
288
289
293
294
302
303
304
308
309
313
314
315
319
320
321
325
326
327
328
329
334
335
336
337
338
339
340
341
346
347
348
349
350
354
355
356
360
361
362
363
370
371
376
377
378
383
384
385
403
404
421 bool was_execution_allowed_;
425
426
440 bool was_execution_allowed_assert_;
441 bool was_execution_allowed_throws_;
442 bool was_execution_allowed_dump_;
446
447
448
462 internal::Isolate*
const i_isolate_;
463 internal::MicrotaskQueue*
const microtask_queue_;
470
471
472
479
480
481
482
483
484
485
579 "The ArrayConstructorProtector has been removed") = 91,
703 using UseCounterCallback =
void (*)(
Isolate* isolate,
707
708
709
710
711
712
713
714
715
716
717
718
719
724
725
729
730
734
735
736
737
738
739
740
741
746
747
748
749
750
754
755
756
757
758
762
763
767
768
769
770
771
772
773
774
775
776
777
778
782
783
784
785
786
787
788
789
790 using AbortOnUncaughtExceptionCallback =
bool (*)(
Isolate*);
792 AbortOnUncaughtExceptionCallback callback);
795
796
797
799 HostImportModuleDynamicallyCallback callback);
802
803
804
805
806
807
808
809
811 HostImportModuleWithPhaseDynamicallyCallback callback);
814
815
816
818 HostInitializeImportMetaObjectCallback callback);
821
822
823
825 HostCreateShadowRealmContextCallback callback);
828
829
830
831
833 IsJSApiWrapperNativeErrorCallback callback);
836
837
838
842
843
846#if defined(V8_OS_WIN)
848
849
857
858
859
860
861
865
866
867
868
869
873
874
875
876
877
881
882
883
884
888
889
890
893
894
895
896
900
901
902
903
904
905
909
910
911
915
916
917
918
922
923
924
925
926
930
931
932
936
937
938
939
940
941
945
946
947
951
952
953
957
958
959
963
964
965
966
971
972
973
974 V8_DEPRECATED(
"Use GetContinuationPreservedEmbedderDataV2 instead")
978
979
980
981 V8_DEPRECATED(
"Use SetContinuationPreservedEmbedderDataV2 instead")
985
986
987
988
989
993
994
995
996
1000
1001
1005
1006
1010
1011
1012
1013
1014
1015
1016
1017
1022
1023
1027
1028
1029
1030
1031
1032
1033
1034
1039
1040
1041
1042
1043
1044
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1060 std::unique_ptr<MeasureMemoryDelegate> delegate,
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1076 size_t frames_limit,
SampleInfo* sample_info);
1079
1080
1081
1082
1083
1084
1089
1090
1091
1095
1096
1106
1107
1108
1112
1113
1114
1115
1116
1120
1121
1122
1126
1127
1128
1132
1133
1134
1135
1138 return ThrowError(
String::NewFromUtf8Literal(
this, message));
1143
1144
1145
1146
1147
1151
1152
1153
1154
1155
1164
1165
1166
1167
1168
1169
1170
1171
1172
1177
1178
1179
1180
1185
1186
1187
1188
1189
1193
1194
1195
1196
1200
1201
1202
1203
1204
1209
1210
1211
1212
1217
1218
1219
1220
1221
1225
1226
1227
1228
1230 void* data =
nullptr);
1233
1234
1235
1236
1237
1238
1241 using ReleaseCppHeapCallback =
void (*)(std::unique_ptr<CppHeap>);
1244
1245
1246
1247
1251
1252
1253
1259
1260
1261
1262
1263
1265 GetExternallyAllocatedMemoryInBytesCallback callback);
1268
1269
1270
1271
1272
1273
1277
1278
1279
1280
1281
1282
1283
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1303
1304
1305
1306
1307
1308
1309
1313
1314
1315
1316
1320
1321
1322
1323
1324
1325
1326
1327
1331
1332
1333
1334
1335
1336
1337
1338
1339
1341 StackState stack_state);
1344
1345
1349
1350
1351
1352
1353
1357
1358
1362
1363
1364
1365
1366
1367
1371
1372
1376
1377
1378
1382
1383
1384
1388
1389
1390
1391
1392
1393
1397
1398
1399
1400
1401
1405
1406
1410
1411
1415
1416
1420
1421
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1438 MicrotasksCompletedCallbackWithData callback,
void* data =
nullptr);
1441
1442
1444 MicrotasksCompletedCallbackWithData callback,
void* data =
nullptr);
1447
1448
1452
1453
1454
1458
1459
1460
1461
1462
1467
1468
1469
1470
1471
1472
1473
1474
1479
1480
1481
1482
1486
1487
1488
1492
1493
1494
1495
1496
1497
1498
1499
1504
1505
1506
1507
1508
1509
1513
1514
1515
1520
1521
1522
1527
1528
1529
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1547
1548
1549
1550
1551
1555
1556
1557
1561
1562
1566
1567
1568
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1594 JitCodeEventHandler event_handler);
1597
1598
1599
1600
1601
1602
1603
1604
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1625
1626
1627
1631
1632
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1659
1660
1661
1662
1666
1667
1668
1669
1670
1671
1676
1677
1678
1679
1680
1684
1685
1686
1688 ModifyCodeGenerationFromStringsCallback2 callback);
1691
1692
1693
1695 AllowWasmCodeGenerationCallback callback);
1698
1699
1700
1707 WasmAsyncResolvePromiseCallback callback);
1712 WasmImportedStringsEnabledCallback callback);
1715 WasmCustomDescriptorsEnabledCallback callback);
1718 SharedArrayBufferConstructorEnabledCallback callback);
1723
1724
1725
1726
1730
1731
1732
1736
1737
1738
1739
1740
1741
1742
1743
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1763
1764
1771
1772
1773
1775 bool capture,
int frame_limit = 10,
1779
1780
1781
1785
1786
1787
1788
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1807
1808
1809
1810
1811
1812
1813
1814
1815
1820
1821
1822
1823
1824
1825
1826
1827
1831
1832
1833
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1852
1853
1868 template <
class K,
class V,
class Traits>
1872 internal::ValueHelper::InternalRepresentationType GetDataFromSnapshotOnce(
1874 int64_t AdjustAmountOfExternalAllocatedMemoryImpl(int64_t change_in_bytes);
1875 void HandleExternalMemoryInterrupt();
1895 if (
auto repr = GetDataFromSnapshotOnce(index);
1898 return Local<T>::FromRepr(repr);
AllowJavascriptExecutionScope & operator=(const AllowJavascriptExecutionScope &)=delete
AllowJavascriptExecutionScope(Isolate *isolate)
~AllowJavascriptExecutionScope()
AllowJavascriptExecutionScope(const AllowJavascriptExecutionScope &)=delete
DisallowJavascriptExecutionScope(Isolate *isolate, OnFailure on_failure)
DisallowJavascriptExecutionScope(const DisallowJavascriptExecutionScope &)=delete
~DisallowJavascriptExecutionScope()
DisallowJavascriptExecutionScope & operator=(const DisallowJavascriptExecutionScope &)=delete
Scope(const Scope &)=delete
Scope & operator=(const Scope &)=delete
~SuppressMicrotaskExecutionScope()
SuppressMicrotaskExecutionScope & operator=(const SuppressMicrotaskExecutionScope &)=delete
SuppressMicrotaskExecutionScope(Isolate *isolate, MicrotaskQueue *microtask_queue=nullptr)
SuppressMicrotaskExecutionScope(const SuppressMicrotaskExecutionScope &)=delete
IsolateGroup & operator=(IsolateGroup &&other)
static IsolateGroup Create()
bool operator!=(const IsolateGroup &other) const
bool operator==(const IsolateGroup &other) const
IsolateGroup & operator=(const IsolateGroup &)
IsolateGroup(const IsolateGroup &)
V8_INLINE bool SandboxContains(void *pointer) const
IsolateGroup(IsolateGroup &&other)
static bool CanCreateNewGroups()
static IsolateGroup GetDefault()
void SetJitCodeEventHandler(JitCodeEventOptions options, JitCodeEventHandler event_handler)
void SetCounterFunction(CounterLookupCallback)
void DiscardThreadSpecificMetadata()
void SetWasmInstanceCallback(ExtensionCallback callback)
void SetReleaseCppHeapCallbackForTesting(ReleaseCppHeapCallback callback)
void SetIdle(bool is_idle)
void SetOOMErrorHandler(OOMErrorCallback that)
IsolateGroup GetGroup() const
Local< Context > GetEnteredOrMicrotaskContext()
void SetAddCrashKeyCallback(AddCrashKeyCallback)
bool HasPendingException()
V8_WARN_UNUSED_RESULT Maybe< std::string > ValidateAndCanonicalizeUnicodeLocaleId(std::string_view locale)
void AddGCPrologueCallback(GCCallbackWithData callback, void *data=nullptr, GCType gc_type_filter=kGCTypeAll)
void SetSharedArrayBufferConstructorEnabledCallback(SharedArrayBufferConstructorEnabledCallback callback)
void SetWasmAsyncResolvePromiseCallback(WasmAsyncResolvePromiseCallback callback)
void SetBatterySaverMode(bool battery_saver_mode_enabled)
void SetWasmJSPIEnabledCallback(WasmJSPIEnabledCallback callback)
void SetHostInitializeImportMetaObjectCallback(HostInitializeImportMetaObjectCallback callback)
void LowMemoryNotification()
void SetWasmModuleCallback(ExtensionCallback callback)
void SetHostImportModuleDynamicallyCallback(HostImportModuleDynamicallyCallback callback)
void EnqueueMicrotask(MicrotaskCallback callback, void *data=nullptr)
static void Initialize(Isolate *isolate, const CreateParams ¶ms)
static Isolate * New(const IsolateGroup &group, const CreateParams ¶ms)
CppHeap * GetCppHeap() const
void GetEmbeddedCodeRange(const void **start, size_t *length_in_bytes)
void SetStackLimit(uintptr_t stack_limit)
@ kMinorGarbageCollection
@ kErrorCaptureStackTrace
@ kInvalidatedStringLengthOverflowLookupChainProtector
@ kPromiseConstructorReturnedUndefined
@ kRegExpPrototypeStickyGetter
@ kRegExpPrototypeToString
@ kOBSOLETE_RegExpUnicodeSetIncompatibilitiesWithUnicodeMode
@ kOBSOLETE_LineOrParagraphSeparatorAsLineTerminator
@ kWebAssemblyInstantiation
@ kOBSOLETE_ArrayProtectorDirtied
@ kOBSOLETE_DateGetTimezoneOffset
@ kInvalidatedRegExpSpeciesLookupChainProtector
@ kArrayPrototypeConstructorModified
@ kLocaleInfoObsoletedGetters
@ kDefineGetterOrSetterWouldThrow
@ kRegExpExecCalledOnSlowRegExp
@ kOBSOLETE_LegacyFunctionDeclaration
@ kInvalidatedMapIteratorLookupChainProtector
@ kDateToLocaleDateString
@ kInvalidatedNoProfilingProtector
@ kInvalidatedArrayIteratorLookupChainProtector
@ kObjectPrototypeHasElements
@ kInvalidatedNoUndetectableObjectsProtector
@ kWasmNonTrappingFloatToInt
@ kDateToLocaleTimeString
@ kArrayPrototypeHasElements
@ kWasmJavaScriptPromiseIntegration
@ kInvalidatedArraySpeciesLookupChainProtector
@ kOBSOLETE_StoreBufferOverflow
@ kOBSOLETE_RegExpPrototypeSourceGetter
@ kFunctionPrototypeCaller
@ kOBSOLETE_RegExpMatchAllWithNonGlobalRegExp
@ kExplicitResourceManagement
@ kRegExpMatchIsTrueishOnNonJSRegExp
@ kArrayInstanceConstructorModified
@ kStringToLocaleLowerCase
@ kInvalidatedPromiseHookProtector
@ kUint8ArrayToFromBase64AndHex
@ kAsyncStackTaggingCreateTaskCall
@ kDateTimeFormatDateTimeStyle
@ kRegExpMatchIsFalseishOnJSRegExp
@ kInvalidatedMegaDOMProtector
@ kOBSOLETE_ArrayPrototypeSortJSArrayModifiedPrototype
@ kOBSOLETE_OptimizedFunctionWithOneShotBytecode
@ kAttemptOverrideReadOnlyOnPrototypeStrict
@ kGrowableSharedArrayBuffer
@ kOBSOLETE_PromiseAccept
@ kExtendingNonExtensibleWithPrivate
@ kSourceMappingUrlMagicCommentAtSign
@ kInvalidatedPromiseSpeciesLookupChainProtector
@ kOBSOLETE_StringToLocaleUpperCase
@ kInvalidatedSetIteratorLookupChainProtector
@ kTurboFanOsrCompileStarted
@ kHtmlCommentInExternalScript
@ kCallSiteAPIGetFunctionSloppyCall
@ kAssigmentExpressionLHSIsCallInSloppy
@ kOBSOLETE_ObjectObserve
@ kFunctionConstructorReturnedUndefined
@ kOBSOLETE_RegExpPrototypeOldFlagGetter
@ kOBSOLETE_ConstructorNonUndefinedPrimitiveReturn
@ kInvalidatedIsConcatSpreadableLookupChainProtector
@ kFunctionTokenOffsetTooLongForToString
@ kOBSOLETE_MarkDequeOverflow
@ kOBSOLETE_LabeledExpressionStatement
@ kInvalidatedNoDateTimeConfigurationChangeProtector
@ kOBSOLETE_ArrayInstanceProtoModified
@ kOBSOLETE_SlotsBufferOverflow
@ kDecimalWithLeadingZeroInStrictMode
@ kRegExpPrototypeUnicodeGetter
@ kInvalidatedStringWrapperToPrimitiveProtector
@ kInvalidatedTypedArraySpeciesLookupChainProtector
@ kOBSOLETE_ImportAssertionDeprecatedSyntax
@ kRegExpStaticPropertiesWithLastMatch
@ kDocumentAllLegacyConstruct
@ kRegExpReplaceCalledOnSlowRegExp
@ kWasmImportedStringsUtf8
@ kRegExpStaticProperties
@ kOBSOLETE_AtomicsNotify
@ kCallSiteAPIGetThisSloppyCall
@ kSharedArrayBufferConstructed
@ kAssigmentExpressionLHSIsCallInStrict
@ kInvalidatedNoElementsProtector
@ kVarRedeclaredCatchBinding
@ kErrorPrepareStackTrace
@ kDeoptimizerDisableSpeculation
@ kInvalidatedNumberStringNotRegexpLikeProtector
@ kInvalidatedArrayBufferDetachingProtector
@ kFunctionPrototypeArguments
@ kInvalidatedStringIteratorLookupChainProtector
@ kSloppyModeBlockScopedFunctionRedefinition
@ kInvalidatedPromiseResolveLookupChainProtector
@ kAttemptOverrideReadOnlyOnPrototypeSloppy
@ kInvalidatedPromiseThenLookupChainProtector
@ kUseCounterFeatureCount
@ kInvalidatedTypedArrayLengthLookupChainProtector
void GetStackSample(const RegisterState &state, void **frames, size_t frames_limit, SampleInfo *sample_info)
void AddCallCompletedCallback(CallCompletedCallback callback)
void SetExceptionPropagationCallback(ExceptionPropagationCallback callback)
static Isolate * GetCurrent()
void SetContinuationPreservedEmbedderData(Local< Value > data)
bool GetHeapObjectStatisticsAtLastGC(HeapObjectStatistics *object_statistics, size_t type_index)
static V8_INLINE uint32_t GetNumberOfDataSlots()
std::string GetDefaultLocale()
void SetPromiseRejectCallback(PromiseRejectCallback callback)
ArrayBuffer::Allocator * GetArrayBufferAllocator()
void SetCreateHistogramFunction(CreateHistogramCallback)
static void Free(Isolate *isolate)
void GetHeapStatistics(HeapStatistics *heap_statistics)
void SetPrepareStackTraceCallback(PrepareStackTraceCallback callback)
bool AddMessageListenerWithErrorLevel(MessageCallback callback, int message_levels, Local< Value > data=Local< Value >())
void AddGCEpilogueCallback(GCCallback callback, GCType gc_type_filter=kGCTypeAll)
Local< Context > GetIncumbentContext()
void SetIsLoading(bool is_loading)
MicrotasksPolicy GetMicrotasksPolicy() const
Local< Value > GetContinuationPreservedEmbedderData()
void RequestGarbageCollectionForTesting(GarbageCollectionType type)
JSEntryStubs GetJSEntryStubs()
void RemoveGCPrologueCallback(GCCallback callback)
size_t NumberOfHeapSpaces()
bool GetHeapCodeAndMetadataStatistics(HeapCodeStatistics *object_statistics)
static constexpr size_t kMinCodePagesBufferSize
void RemoveGCEpilogueCallback(GCCallbackWithData callback, void *data=nullptr)
void ClearCachesForTesting()
void AddGCPrologueCallback(GCCallback callback, GCType gc_type_filter=kGCTypeAll)
void DateTimeConfigurationChangeNotification(TimeZoneDetection time_zone_detection=TimeZoneDetection::kSkip)
void * operator new(size_t size)=delete
static Isolate * TryGetCurrent()
void AutomaticallyRestoreInitialHeapLimit(double threshold_percent=0.5)
void RequestInterrupt(InterruptCallback callback, void *data)
V8_INLINE void SetData(uint32_t slot, void *data)
void GetCodeRange(void **start, size_t *length_in_bytes)
void RemoveBeforeCallEnteredCallback(BeforeCallEnteredCallback callback)
void ContextDisposedNotification(ContextDependants dependants)
void RestoreOriginalHeapLimit()
void SetWasmLoadSourceMapCallback(WasmLoadSourceMapCallback callback)
void RemoveNearHeapLimitCallback(NearHeapLimitCallback callback, size_t heap_limit)
void RemoveMicrotasksCompletedCallback(MicrotasksCompletedCallbackWithData callback, void *data=nullptr)
void operator delete(void *, size_t)=delete
void RemoveCallCompletedCallback(CallCompletedCallback callback)
void SetAllowAtomicsWait(bool allow)
void SetAllowWasmCodeGenerationCallback(AllowWasmCodeGenerationCallback callback)
Local< Value > ThrowError(const char(&message)[N])
void SetFailedAccessCheckCallbackFunction(FailedAccessCheckCallback)
void operator delete[](void *, size_t)=delete
void SetPromiseHook(PromiseHook hook)
void SetEmbedderRootsHandler(EmbedderRootsHandler *handler)
void SetWasmCustomDescriptorsEnabledCallback(WasmCustomDescriptorsEnabledCallback callback)
Local< Value > ThrowError(Local< String > message)
void SetGetExternallyAllocatedMemoryInBytesCallback(GetExternallyAllocatedMemoryInBytesCallback callback)
void SetCaptureStackTraceForUncaughtExceptions(bool capture, int frame_limit=10, StackTrace::StackTraceOptions options=StackTrace::kOverview)
V8_INLINE void * GetData(uint32_t slot)
void SetIsJSApiWrapperNativeErrorCallback(IsJSApiWrapperNativeErrorCallback callback)
void SetMicrotasksPolicy(MicrotasksPolicy policy)
HeapProfiler * GetHeapProfiler()
void RequestGarbageCollectionForTesting(GarbageCollectionType type, StackState stack_state)
void TerminateExecution()
V8_INLINE MaybeLocal< T > GetDataFromSnapshotOnce(size_t index)
bool MeasureMemory(std::unique_ptr< MeasureMemoryDelegate > delegate, MeasureMemoryExecution execution=MeasureMemoryExecution::kDefault)
void * operator new[](size_t size)=delete
void SetMetricsRecorder(const std::shared_ptr< metrics::Recorder > &metrics_recorder)
bool IsHeapLimitIncreasedForDebugging()
void IsolateInBackgroundNotification()
size_t NumberOfTrackedHeapObjectTypes()
Local< Value > ThrowException(Local< Value > exception)
void SetMemorySaverMode(bool memory_saver_mode_enabled)
Local< Context > GetCurrentContext()
void SetWasmImportedStringsEnabledCallback(WasmImportedStringsEnabledCallback callback)
Isolate(const Isolate &)=delete
size_t CopyCodePages(size_t capacity, MemoryRange *code_pages_out)
bool GetHeapSpaceStatistics(HeapSpaceStatistics *space_statistics, size_t index)
void RemoveGCPrologueCallback(GCCallbackWithData, void *data=nullptr)
void SetUseCounterCallback(UseCounterCallback callback)
void LocaleConfigurationChangeNotification()
bool AddMessageListener(MessageCallback callback, Local< Value > data=Local< Value >())
void CancelTerminateExecution()
void SetPriority(Priority priority)
void AddMicrotasksCompletedCallback(MicrotasksCompletedCallbackWithData callback, void *data=nullptr)
void MemoryPressureNotification(MemoryPressureLevel level)
void Freeze(bool is_frozen)
void AddGCEpilogueCallback(GCCallbackWithData callback, void *data=nullptr, GCType gc_type_filter=kGCTypeAll)
void SetEventLogger(LogEventCallback that)
void AddNearHeapLimitCallback(NearHeapLimitCallback callback, void *data)
static Isolate * Allocate(const IsolateGroup &group)
void EnqueueMicrotask(Local< Function > microtask)
int ContextDisposedNotification(bool dependant_context=true)
Isolate & operator=(const Isolate &)=delete
void IncreaseHeapLimitForDebugging()
void SetContinuationPreservedEmbedderDataV2(Local< Data > data)
bool IsExecutionTerminating()
static Isolate * New(const CreateParams ¶ms)
void RemoveGCEpilogueCallback(GCCallback callback)
void SetWasmStreamingCallback(WasmStreamingCallback callback)
int64_t AdjustAmountOfExternalAllocatedMemory(int64_t change_in_bytes)
void SetHostImportModuleWithPhaseDynamicallyCallback(HostImportModuleWithPhaseDynamicallyCallback callback)
Local< Data > GetContinuationPreservedEmbedderDataV2()
void InstallConditionalFeatures(Local< Context > context)
static Isolate * Allocate()
void SetAddHistogramSampleFunction(AddHistogramSampleCallback)
void SetHostCreateShadowRealmContextCallback(HostCreateShadowRealmContextCallback callback)
void AddBeforeCallEnteredCallback(BeforeCallEnteredCallback callback)
void SetModifyCodeGenerationFromStringsCallback(ModifyCodeGenerationFromStringsCallback2 callback)
void PerformMicrotaskCheckpoint()
void SetAbortOnUncaughtExceptionCallback(AbortOnUncaughtExceptionCallback callback)
bool HasPendingBackgroundTasks()
void RemoveMessageListeners(MessageCallback callback)
void IsolateInForegroundNotification()
MaybeLocal< Data > GetCurrentHostDefinedOptions()
void SetFatalErrorHandler(FatalErrorCallback that)
void set_max_young_generation_size_in_bytes(size_t limit)
void set_stack_limit(uint32_t *value)
void set_initial_young_generation_size_in_bytes(size_t initial_size)
size_t max_old_generation_size_in_bytes() const
size_t initial_old_generation_size_in_bytes() const
uint64_t physical_memory_size_in_bytes() const
size_t initial_young_generation_size_in_bytes() const
void set_code_range_size_in_bytes(size_t limit)
size_t code_range_size_in_bytes() const
size_t max_young_generation_size_in_bytes() const
void ConfigureDefaults(uint64_t physical_memory, uint64_t virtual_memory_limit)
void set_max_old_generation_size_in_bytes(size_t limit)
uint32_t * stack_limit() const
void set_initial_old_generation_size_in_bytes(size_t initial_size)
void ConfigureDefaultsFromHeapSize(size_t initial_heap_size_in_bytes, size_t maximum_heap_size_in_bytes)
friend class PersistentValueMapBase
static const uint32_t kNumIsolateDataSlots
static V8_INLINE void * GetEmbedderData(const v8::Isolate *isolate, uint32_t slot)
static V8_INLINE void SetEmbedderData(v8::Isolate *isolate, uint32_t slot, void *data)
static constexpr InternalRepresentationType kEmpty
AddHistogramSampleCallback add_histogram_sample_callback
CreateHistogramCallback create_histogram_callback
OOMErrorCallback oom_error_callback
JitCodeEventHandler code_event_handler
const intptr_t * external_references
ArrayBuffer::Allocator * array_buffer_allocator
ResourceConstraints constraints
int embedder_wrapper_type_index
FatalErrorCallback fatal_error_callback
const StartupData * snapshot_blob
CounterLookupCallback counter_lookup_callback
int embedder_wrapper_object_index
std::shared_ptr< ArrayBuffer::Allocator > array_buffer_allocator_shared
#define V8_DEPRECATE_SOON(message)
#define V8_DEPRECATED(message)
#define ALLOW_COPY_AND_MOVE_WITH_DEPRECATED_FIELDS(ClassName)
#define V8_WARN_UNUSED_RESULT