5#ifndef INCLUDE_V8_ISOLATE_CALLBACKS_H_
6#define INCLUDE_V8_ISOLATE_CALLBACKS_H_
20struct _EXCEPTION_POINTERS;
26class FunctionCallbackInfo;
201 size_t initial_heap_limit);
206#if defined(V8_OS_WIN)
207using UnhandledExceptionCallback =
208 int (*)(_EXCEPTION_POINTERS* exception_pointers);
469#if defined(V8_OS_WIN)
506using FilterETWSessionByURLCallback =
507 bool (*)(
Local<Context> context,
const std::string& etw_filter_payload);
509struct FilterETWSessionByURLResult {
511 bool enable_etw_tracing;
514 bool trace_interpreter_frames;
516using FilterETWSessionByURL2Callback = FilterETWSessionByURLResult (*)(
517 Local<Context> context,
const std::string& etw_filter_payload);
Definition: v8-function-callback.h:118
Definition: v8-isolate.h:273
Definition: v8-local-handle.h:266
Definition: v8-local-handle.h:632
Definition: libplatform.h:15
void(*)(const JitCodeEvent *event) JitCodeEventHandler
Definition: v8-callbacks.h:142
JitCodeEventOptions
Definition: v8-callbacks.h:129
@ kJitCodeEventEnumExisting
Definition: v8-callbacks.h:132
@ kLastJitCodeEventOption
Definition: v8-callbacks.h:134
@ kJitCodeEventDefault
Definition: v8-callbacks.h:130
void(*)(const char *location, const OOMDetails &details) OOMErrorCallback
Definition: v8-callbacks.h:230
ModifyCodeGenerationFromStringsResult(*)(Local< Context > context, Local< Value > source) ModifyCodeGenerationFromStringsCallback
Definition: v8-callbacks.h:275
bool(*)(Local< Context > context) SharedArrayBufferConstructorEnabledCallback
Definition: v8-callbacks.h:326
GCCallbackFlags
Definition: v8-callbacks.h:179
@ kGCCallbackScheduleIdleGarbageCollection
Definition: v8-callbacks.h:186
@ kGCCallbackFlagConstructRetainedObjectInfos
Definition: v8-callbacks.h:181
@ kGCCallbackFlagForced
Definition: v8-callbacks.h:182
@ kNoGCCallbackFlags
Definition: v8-callbacks.h:180
@ kGCCallbackFlagCollectAllExternalMemory
Definition: v8-callbacks.h:185
@ kGCCallbackFlagSynchronousPhantomCallbackProcessing
Definition: v8-callbacks.h:183
@ kGCCallbackFlagCollectAllAvailableGarbage
Definition: v8-callbacks.h:184
CrashKeyId
Definition: v8-callbacks.h:241
@ kSnapshotChecksumCalculated
@ kCodeSpaceFirstPageAddress
@ kOldSpaceFirstPageAddress
@ kMapSpaceFirstPageAddress
@ kReadonlySpaceFirstPageAddress
@ kSnapshotChecksumExpected
LogEventStatus
Definition: v8-callbacks.h:236
@ kEnd
Definition: v8-callbacks.h:236
@ kStart
Definition: v8-callbacks.h:236
@ kLog
Definition: v8-callbacks.h:236
bool(*)(Local< Context > context) WasmJSPIEnabledCallback
Definition: v8-callbacks.h:333
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
bool(*)(Local< Context > context) JavaScriptCompileHintsMagicEnabledCallback
Definition: v8-callbacks.h:330
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(*)(GCType type, GCCallbackFlags flags) GCCallback
Definition: v8-callbacks.h:189
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
WasmAsyncSuccess
Definition: v8-callbacks.h:310
GCType
Definition: v8-callbacks.h:154
@ kGCTypeMinorMarkSweep
Definition: v8-callbacks.h:156
@ kGCTypeScavenge
Definition: v8-callbacks.h:155
@ kGCTypeProcessWeakCallbacks
Definition: v8-callbacks.h:159
@ kGCTypeMarkSweepCompact
Definition: v8-callbacks.h:157
@ kGCTypeAll
Definition: v8-callbacks.h:160
@ kGCTypeIncrementalMarking
Definition: v8-callbacks.h:158
bool(*)(int, void *) CompileHintCallback
Definition: v8-callbacks.h:420
void(*)(const FunctionCallbackInfo< Value > &) ApiImplementationCallback
Definition: v8-callbacks.h:305
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
AccessType
Definition: v8-callbacks.h:286
@ ACCESS_SET
Definition: v8-callbacks.h:288
@ ACCESS_HAS
Definition: v8-callbacks.h:289
@ ACCESS_KEYS
Definition: v8-callbacks.h:291
@ ACCESS_GET
Definition: v8-callbacks.h:287
@ ACCESS_DELETE
Definition: v8-callbacks.h:290
void(*)(const char *name, int status) LogEventCallback
Definition: v8-callbacks.h:238
int *(*)(const char *name) CounterLookupCallback
Definition: v8-callbacks.h:213
bool(*)(Isolate *isolate, Local< Object > obj) IsJSApiWrapperNativeErrorCallback
Definition: v8-callbacks.h:456
ModuleImportPhase
Definition: v8-callbacks.h:338
Definition: v8-callbacks.h:89
size_t offset
Definition: v8-callbacks.h:91
size_t pos
Definition: v8-callbacks.h:93
PositionType position_type
Definition: v8-callbacks.h:95
Definition: v8-callbacks.h:81
const char * str
Definition: v8-callbacks.h:84
size_t len
Definition: v8-callbacks.h:86
Definition: v8-callbacks.h:98
const char * filename
Definition: v8-callbacks.h:100
const line_info_t * line_number_table
Definition: v8-callbacks.h:105
size_t filename_size
Definition: v8-callbacks.h:102
size_t line_number_table_size
Definition: v8-callbacks.h:107
Definition: v8-callbacks.h:42
PositionType
Definition: v8-callbacks.h:56
@ POSITION
Definition: v8-callbacks.h:56
@ STATEMENT_POSITION
Definition: v8-callbacks.h:56
CodeType
Definition: v8-callbacks.h:64
@ JIT_CODE
Definition: v8-callbacks.h:64
@ BYTE_CODE
Definition: v8-callbacks.h:64
@ WASM_CODE
Definition: v8-callbacks.h:64
struct name_t name
Definition: v8-callbacks.h:114
Local< UnboundScript > script
Definition: v8-callbacks.h:74
struct line_info_t line_info
Definition: v8-callbacks.h:117
Isolate * isolate
Definition: v8-callbacks.h:123
void * user_data
Definition: v8-callbacks.h:79
wasm_source_info_t * wasm_source_info
Definition: v8-callbacks.h:110
void * new_code_start
Definition: v8-callbacks.h:120
EventType
Definition: v8-callbacks.h:43
@ CODE_END_LINE_INFO_RECORDING
Definition: v8-callbacks.h:49
@ CODE_ADDED
Definition: v8-callbacks.h:44
@ CODE_MOVED
Definition: v8-callbacks.h:45
@ CODE_ADD_LINE_POS_INFO
Definition: v8-callbacks.h:47
@ CODE_REMOVED
Definition: v8-callbacks.h:46
@ CODE_START_LINE_INFO_RECORDING
Definition: v8-callbacks.h:48
EventType type
Definition: v8-callbacks.h:67
size_t code_len
Definition: v8-callbacks.h:72
void * code_start
Definition: v8-callbacks.h:70
CodeType code_type
Definition: v8-callbacks.h:68
Definition: v8-callbacks.h:260
bool codegen_allowed
Definition: v8-callbacks.h:262
MaybeLocal< String > modified_source
Definition: v8-callbacks.h:266
Definition: v8-callbacks.h:224
const char * detail
Definition: v8-callbacks.h:226
bool is_heap_oom
Definition: v8-callbacks.h:225
#define V8_ENUM_DEPRECATE_SOON(message)
Definition: v8config.h:640