5 #ifndef INCLUDE_V8_ISOLATE_CALLBACKS_H_
6 #define INCLUDE_V8_ISOLATE_CALLBACKS_H_
12 #include "cppgc/common.h"
17 #if defined(V8_OS_WIN)
18 struct _EXCEPTION_POINTERS;
186 using InterruptCallback =
void (*)(
Isolate* isolate,
void* data);
195 using NearHeapLimitCallback = size_t (*)(
void* data, size_t current_heap_limit,
196 size_t initial_heap_limit);
201 #if defined(V8_OS_WIN)
208 using CounterLookupCallback =
int* (*)(
const char* name);
210 using CreateHistogramCallback =
void* (*)(
const char* name,
int min,
int max,
213 using AddHistogramSampleCallback =
void (*)(
void* histogram,
int sample);
217 using FatalErrorCallback =
void (*)(
const char* location,
const char* message);
219 using OOMErrorCallback =
void (*)(
const char* location,
bool is_heap_oom);
226 using LogEventCallback =
void (*)(
const char* name,
238 using AddCrashKeyCallback =
void (*)(
CrashKeyId id,
const std::string& value);
241 using BeforeCallEnteredCallback =
void (*)(
Isolate*);
242 using CallCompletedCallback =
void (*)(
Isolate*);
250 using AllowCodeGenerationFromStringsCallback =
bool (*)(
Local<
Context> context,
282 using ModifyCodeGenerationFromStringsCallback =
285 using ModifyCodeGenerationFromStringsCallback2 =
293 using AllowWasmCodeGenerationCallback =
bool (*)(
Local<
Context> context,
311 using WasmExceptionsEnabledCallback =
bool (*)(
Local<
Context> context);
314 using WasmDynamicTieringEnabledCallback =
bool (*)(
Local<
Context> context);
317 using SharedArrayBufferConstructorEnabledCallback =
346 using HostImportModuleDynamicallyWithImportAssertionsCallback =
366 using HostInitializeImportMetaObjectCallback =
void (*)(
Local<
Context> context,
381 using HostCreateShadowRealmContextCallback =