#include "src/init/startup-data-util.h"
#include <stdlib.h>
#include <string.h>
#include "include/v8-initialization.h"
#include "include/v8-snapshot.h"
#include "src/base/file-utils.h"
#include "src/base/logging.h"
#include "src/base/platform/platform.h"
#include "src/base/platform/wrappers.h"
#include "src/flags/flags.h"
#include "src/utils/utils.h"
namespace v8 {
namespace internal {
#ifdef V8_USE_EXTERNAL_STARTUP_DATA
namespace {
v8::StartupData g_snapshot;
void ClearStartupData(v8::StartupData* data) { … }
void DeleteStartupData(v8::StartupData* data) { … }
void FreeStartupData() { … }
void Load(const char* blob_file, v8::StartupData* startup_data,
void (*setter_fn)(v8::StartupData*)) { … }
void LoadFromFile(const char* snapshot_blob) { … }
}
#endif
void InitializeExternalStartupData(const char* directory_path) { … }
void InitializeExternalStartupDataFromFile(const char* snapshot_blob) { … }
}
}