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);
109#ifdef V8_TARGET_OS_ANDROID
110 const bool kV8TargetOsIsAndroid =
true;
112 const bool kV8TargetOsIsAndroid =
false;
115#ifdef V8_ENABLE_CHECKS
116 const bool kV8EnableChecks =
true;
118 const bool kV8EnableChecks =
false;
121 const int kBuildConfiguration =
122 (internal::PointerCompressionIsEnabled() ? kPointerCompression : 0) |
123 (internal::SmiValuesAre31Bits() ? k31BitSmis : 0) |
124 (internal::SandboxIsEnabled() ? kSandbox : 0) |
125 (kV8TargetOsIsAndroid ? kTargetOsIsAndroid : 0) |
126 (kV8EnableChecks ? kEnableChecks : 0);
127 return Initialize(kBuildConfiguration);
176 const char* icu_data_file =
nullptr);
208#if defined(V8_ENABLE_SANDBOX)
225 static bool IsSandboxConfiguredSecurely();
247 static size_t GetSandboxSizeInBytes();
259 static size_t GetSandboxReservationSizeInBytes();
270#if defined(V8_OS_WIN)
280 static void SetUnhandledExceptionCallback(
281 UnhandledExceptionCallback callback);
299 enum BuildConfigurationFeatures {
300 kPointerCompression = 1 << 0,
303 kTargetOsIsAndroid = 1 << 3,
304 kEnableChecks = 1 << 4,
311 static bool Initialize(
int build_config);
314 template <
class K,
class V,
class T>
Definition: v8-context.h:48
Definition: v8-util.h:166
Definition: v8-statistics.h:116
Definition: v8-snapshot.h:21
Definition: v8-initialization.h:61
static void InitializePlatform(Platform *platform)
static void SetFatalErrorHandler(V8FatalErrorCallback that)
static const char * GetVersion()
static bool InitializeICUDefaultLocation(const char *exec_path, const char *icu_data_file=nullptr)
static void SetSnapshotDataBlob(StartupData *startup_blob)
static void InitializeExternalStartupDataFromFile(const char *snapshot_blob)
static bool EnableWebAssemblyTrapHandler(bool use_v8_signal_handler)
static bool Initialize()
Definition: v8-initialization.h:108
static void SetEntropySource(EntropySource source)
static void SetDcheckErrorHandler(DcheckErrorCallback that)
static void SetFlagsFromCommandLine(int *argc, char **argv, bool remove_flags)
static void DisposePlatform()
static bool InitializeICU(const char *icu_data_file=nullptr)
static void GetSharedMemoryStatistics(SharedMemoryStatistics *statistics)
static void SetReturnAddressLocationResolver(ReturnAddressLocationResolver return_address_resolver)
static void SetFlagsFromString(const char *str, size_t length)
static void SetFatalMemoryErrorCallback(OOMErrorCallback callback)
static void InitializeExternalStartupData(const char *directory_path)
static void SetFlagsFromString(const char *str)
Definition: v8-platform.h:740
v8::PageAllocator PageAllocator
Definition: platform.h:22
Definition: libplatform.h:15
void(*)(const char *location, const OOMDetails &details) OOMErrorCallback
Definition: v8-callbacks.h:228
void(*)(const char *file, int line, const char *message) V8FatalErrorCallback
Definition: v8-initialization.h:56
void(*)(const char *file, int line, const char *message) DcheckErrorCallback
Definition: v8-initialization.h:53
uintptr_t(*)(uintptr_t return_addr_location) ReturnAddressLocationResolver
Definition: v8-initialization.h:50
bool(*)(unsigned char *buffer, size_t length) EntropySource
Definition: v8-initialization.h:34
#define V8_EXPORT
Definition: v8config.h:793
#define V8_INLINE
Definition: v8config.h:499