chromium/v8/src/snapshot/snapshot-external.cc

// Copyright 2006-2008 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Used for building with external snapshots.

#include "src/base/platform/mutex.h"
#include "src/flags/flags.h"
#include "src/init/v8.h"  // for V8::Initialize
#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  // V8_USE_EXTERNAL_STARTUP_DATA


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() {}
}  // namespace internal
}  // namespace v8