5#ifndef INCLUDE_V8_INITIALIZATION_H_
6#define INCLUDE_V8_INITIALIZATION_H_
27template <
class K,
class V,
class T>
28class PersistentValueMapBase;
50 uintptr_t (*)(uintptr_t return_addr_location);
100 const int kBuildConfiguration =
101 (internal::PointerCompressionIsEnabled() ? kPointerCompression : 0) |
102 (internal::SmiValuesAre31Bits() ? k31BitSmis : 0) |
103 (internal::SandboxIsEnabled() ? kSandbox : 0);
104 return Initialize(kBuildConfiguration);
153 const char* icu_data_file =
nullptr);
185#if defined(V8_ENABLE_SANDBOX)
196 static bool IsSandboxConfiguredSecurely();
218 static size_t GetSandboxSizeInBytes();
230 static size_t GetSandboxReservationSizeInBytes();
241#if defined(V8_OS_WIN)
251 static void SetUnhandledExceptionCallback(
252 UnhandledExceptionCallback callback);
270 enum BuildConfigurationFeatures {
271 kPointerCompression = 1 << 0,
280 static bool Initialize(
int build_config);
283 template <
class K,
class V,
class T>
static void InitializeExternalStartupDataFromFile(const char *snapshot_blob)
static void SetReturnAddressLocationResolver(ReturnAddressLocationResolver return_address_resolver)
static const char * GetVersion()
static void InitializeExternalStartupData(const char *directory_path)
static V8_INLINE bool Initialize()
static void SetFatalMemoryErrorCallback(OOMErrorCallback callback)
static void SetDcheckErrorHandler(DcheckErrorCallback that)
static void SetFlagsFromString(const char *str, size_t length)
static void GetSharedMemoryStatistics(SharedMemoryStatistics *statistics)
static bool InitializeICU(const char *icu_data_file=nullptr)
static bool InitializeICUDefaultLocation(const char *exec_path, const char *icu_data_file=nullptr)
static void SetFlagsFromCommandLine(int *argc, char **argv, bool remove_flags)
static void SetFlagsFromString(const char *str)
static void SetEntropySource(EntropySource source)
static void InitializePlatform(Platform *platform)
static bool EnableWebAssemblyTrapHandler(bool use_v8_signal_handler)
static void DisposePlatform()
static void SetSnapshotDataBlob(StartupData *startup_blob)
v8::PageAllocator PageAllocator
bool(*)(unsigned char *buffer, size_t length) EntropySource
void(*)(const char *location, const OOMDetails &details) OOMErrorCallback
uintptr_t(*)(uintptr_t return_addr_location) ReturnAddressLocationResolver
void(*)(const char *file, int line, const char *message) DcheckErrorCallback