#include "src/base/platform/mutex.h"
#include "src/flags/flags.h"
#include "src/init/v8.h"
#include "src/snapshot/snapshot-source-sink.h"
#include "src/snapshot/snapshot.h"
#ifndef V8_USE_EXTERNAL_STARTUP_DATA
#error snapshot-external.cc is used only for the external snapshot build.
#endif
namespace v8 {
namespace internal {
static base::LazyMutex external_startup_data_mutex = LAZY_MUTEX_INITIALIZER;
static v8::StartupData external_startup_blob = …;
#ifdef V8_TARGET_OS_ANDROID
static bool external_startup_checksum_verified = false;
#endif
void SetSnapshotFromFile(StartupData* snapshot_blob) { … }
bool Snapshot::ShouldVerifyChecksum(const v8::StartupData* data) { … }
const v8::StartupData* Snapshot::DefaultSnapshotBlob() { … }
}
}