Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Enumerations
v8-callbacks.h File Reference
#include <stddef.h>
#include <functional>
#include <string>
#include "cppgc/common.h"
#include "v8-data.h"
#include "v8-local-handle.h"
#include "v8-promise.h"
#include "v8config.h"
Include dependency graph for v8-callbacks.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  v8::JitCodeEvent
 
struct  v8::JitCodeEvent::name_t
 
struct  v8::JitCodeEvent::line_info_t
 
struct  v8::JitCodeEvent::wasm_source_info_t
 
struct  v8::OOMDetails
 
struct  v8::ModifyCodeGenerationFromStringsResult
 

Namespaces

namespace  v8
 

Typedefs

using v8::JitCodeEventHandler = void(*)(const JitCodeEvent *event)
 
using v8::GCCallback = void(*)(GCType type, GCCallbackFlags flags)
 
using v8::InterruptCallback = void(*)(Isolate *isolate, void *data)
 
using v8::NearHeapLimitCallback = size_t(*)(void *data, size_t current_heap_limit, size_t initial_heap_limit)
 
using v8::CounterLookupCallback = int *(*)(const char *name)
 
using v8::CreateHistogramCallback = void *(*)(const char *name, int min, int max, size_t buckets)
 
using v8::AddHistogramSampleCallback = void(*)(void *histogram, int sample)
 
using v8::FatalErrorCallback = void(*)(const char *location, const char *message)
 
using v8::OOMErrorCallback = void(*)(const char *location, const OOMDetails &details)
 
using v8::MessageCallback = void(*)(Local< Message > message, Local< Value > data)
 
using v8::LogEventCallback = void(*)(const char *name, int status)
 
using v8::AddCrashKeyCallback = void(*)(CrashKeyId id, const std::string &value)
 
using v8::BeforeCallEnteredCallback = void(*)(Isolate *)
 
using v8::CallCompletedCallback = void(*)(Isolate *)
 
using v8::ModifyCodeGenerationFromStringsCallback = ModifyCodeGenerationFromStringsResult(*)(Local< Context > context, Local< Value > source)
 
using v8::ModifyCodeGenerationFromStringsCallback2 = ModifyCodeGenerationFromStringsResult(*)(Local< Context > context, Local< Value > source, bool is_code_like)
 
using v8::FailedAccessCheckCallback = void(*)(Local< Object > target, AccessType type, Local< Value > data)
 
using v8::ExtensionCallback = bool(*)(const FunctionCallbackInfo< Value > &)
 
using v8::AllowWasmCodeGenerationCallback = bool(*)(Local< Context > context, Local< String > source)
 
using v8::ApiImplementationCallback = void(*)(const FunctionCallbackInfo< Value > &)
 
using v8::WasmStreamingCallback = void(*)(const FunctionCallbackInfo< Value > &)
 
using v8::WasmAsyncResolvePromiseCallback = void(*)(Isolate *isolate, Local< Context > context, Local< Promise::Resolver > resolver, Local< Value > result, WasmAsyncSuccess success)
 
using v8::WasmLoadSourceMapCallback = Local< String >(*)(Isolate *isolate, const char *name)
 
using v8::WasmImportedStringsEnabledCallback = bool(*)(Local< Context > context)
 
using v8::SharedArrayBufferConstructorEnabledCallback = bool(*)(Local< Context > context)
 
using v8::JavaScriptCompileHintsMagicEnabledCallback = bool(*)(Local< Context > context)
 
using v8::WasmJSPIEnabledCallback = bool(*)(Local< Context > context)
 
using v8::HostImportModuleDynamicallyCallback = MaybeLocal< Promise >(*)(Local< Context > context, Local< Data > host_defined_options, Local< Value > resource_name, Local< String > specifier, Local< FixedArray > import_attributes)
 
using v8::HostImportModuleWithPhaseDynamicallyCallback = MaybeLocal< Promise >(*)(Local< Context > context, Local< Data > host_defined_options, Local< Value > resource_name, Local< String > specifier, ModuleImportPhase phase, Local< FixedArray > import_attributes)
 
using v8::CompileHintCallback = bool(*)(int, void *)
 
using v8::HostInitializeImportMetaObjectCallback = void(*)(Local< Context > context, Local< Module > module, Local< Object > meta)
 
using v8::HostCreateShadowRealmContextCallback = MaybeLocal< Context >(*)(Local< Context > initiator_context)
 
using v8::IsJSApiWrapperNativeErrorCallback = bool(*)(Isolate *isolate, Local< Object > obj)
 
using v8::PrepareStackTraceCallback = MaybeLocal< Value >(*)(Local< Context > context, Local< Value > error, Local< Array > sites)
 

Enumerations

enum  v8::JitCodeEventOptions { v8::kJitCodeEventDefault = 0 , v8::kJitCodeEventEnumExisting = 1 }
 
enum  v8::GCType {
  v8::kGCTypeScavenge = 1 << 0 , v8::kGCTypeMinorMarkSweep = 1 << 1 , v8::kGCTypeMarkSweepCompact = 1 << 2 , v8::kGCTypeIncrementalMarking = 1 << 3 ,
  v8::kGCTypeProcessWeakCallbacks = 1 << 4 , v8::kGCTypeAll
}
 
enum  v8::GCCallbackFlags {
  v8::kNoGCCallbackFlags = 0 , v8::kGCCallbackFlagConstructRetainedObjectInfos = 1 << 1 , v8::kGCCallbackFlagForced = 1 << 2 , v8::kGCCallbackFlagSynchronousPhantomCallbackProcessing = 1 << 3 ,
  v8::kGCCallbackFlagCollectAllAvailableGarbage = 1 << 4 , v8::kGCCallbackFlagCollectAllExternalMemory = 1 << 5 , v8::kGCCallbackScheduleIdleGarbageCollection = 1 << 6
}
 
enum  v8::LogEventStatus : int { v8::kStart = 0 , v8::kEnd = 1 , v8::kLog = 2 }
 
enum class  v8::CrashKeyId {
  v8::kIsolateAddress , v8::kReadonlySpaceFirstPageAddress , v8::kMapSpaceFirstPageAddress , v8::kOldSpaceFirstPageAddress ,
  v8::kCodeRangeBaseAddress , v8::kCodeSpaceFirstPageAddress , v8::kDumpType , v8::kSnapshotChecksumCalculated ,
  v8::kSnapshotChecksumExpected
}
 
enum  v8::AccessType {
  v8::ACCESS_GET , v8::ACCESS_SET , v8::ACCESS_HAS , v8::ACCESS_DELETE ,
  v8::ACCESS_KEYS
}
 
enum class  v8::WasmAsyncSuccess { v8::kSuccess , v8::kFail }
 
enum class  v8::ModuleImportPhase { v8::kSource , v8::kEvaluation }