Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Unified Diff: src/snapshot-external.cc

Issue 1041743002: Serializer: move to a subfolder and clean up includes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: removed OWNERS Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/snapshot-empty.cc ('k') | src/snapshot-source-sink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/snapshot-external.cc
diff --git a/src/snapshot-external.cc b/src/snapshot-external.cc
deleted file mode 100644
index ae7bc40ae64380de16002e32da36643694b0ae0b..0000000000000000000000000000000000000000
--- a/src/snapshot-external.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// 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/snapshot.h"
-
-#include "src/base/platform/mutex.h"
-#include "src/serialize.h"
-#include "src/snapshot-source-sink.h"
-#include "src/v8.h" // for V8::Initialize
-
-
-#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 = {NULL, 0};
-
-void SetSnapshotFromFile(StartupData* snapshot_blob) {
- base::LockGuard<base::Mutex> lock_guard(
- external_startup_data_mutex.Pointer());
- DCHECK(snapshot_blob);
- DCHECK(snapshot_blob->data);
- DCHECK(snapshot_blob->raw_size > 0);
- DCHECK(!external_startup_blob.data);
- DCHECK(Snapshot::SnapshotIsValid(snapshot_blob));
- external_startup_blob = *snapshot_blob;
-}
-
-
-const v8::StartupData* Snapshot::DefaultSnapshotBlob() {
- base::LockGuard<base::Mutex> lock_guard(
- external_startup_data_mutex.Pointer());
- return &external_startup_blob;
-}
-} } // namespace v8::internal
« no previous file with comments | « src/snapshot-empty.cc ('k') | src/snapshot-source-sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698