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

Side by Side Diff: src/snapshot/snapshot-external.cc

Issue 1751863002: [serializer] split up src/snapshot/serialize.* (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Used for building with external snapshots. 5 // Used for building with external snapshots.
6 6
7 #include "src/snapshot/snapshot.h" 7 #include "src/snapshot/snapshot.h"
8 8
9 #include "src/base/platform/mutex.h" 9 #include "src/base/platform/mutex.h"
10 #include "src/snapshot/serialize.h"
11 #include "src/snapshot/snapshot-source-sink.h" 10 #include "src/snapshot/snapshot-source-sink.h"
12 #include "src/v8.h" // for V8::Initialize 11 #include "src/v8.h" // for V8::Initialize
13 12
14 13
15 #ifndef V8_USE_EXTERNAL_STARTUP_DATA 14 #ifndef V8_USE_EXTERNAL_STARTUP_DATA
16 #error snapshot-external.cc is used only for the external snapshot build. 15 #error snapshot-external.cc is used only for the external snapshot build.
17 #endif // V8_USE_EXTERNAL_STARTUP_DATA 16 #endif // V8_USE_EXTERNAL_STARTUP_DATA
18 17
19 18
20 namespace v8 { 19 namespace v8 {
(...skipping 14 matching lines...) Expand all
35 } 34 }
36 35
37 36
38 const v8::StartupData* Snapshot::DefaultSnapshotBlob() { 37 const v8::StartupData* Snapshot::DefaultSnapshotBlob() {
39 base::LockGuard<base::Mutex> lock_guard( 38 base::LockGuard<base::Mutex> lock_guard(
40 external_startup_data_mutex.Pointer()); 39 external_startup_data_mutex.Pointer());
41 return &external_startup_blob; 40 return &external_startup_blob;
42 } 41 }
43 } // namespace internal 42 } // namespace internal
44 } // namespace v8 43 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698