OLD | NEW |
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/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker! | |
11 #include "src/snapshot/serialize.h" | 10 #include "src/snapshot/serialize.h" |
12 #include "src/snapshot/snapshot-source-sink.h" | 11 #include "src/snapshot/snapshot-source-sink.h" |
13 #include "src/v8.h" // for V8::Initialize | 12 #include "src/v8.h" // for V8::Initialize |
14 | 13 |
15 | 14 |
16 #ifndef V8_USE_EXTERNAL_STARTUP_DATA | 15 #ifndef V8_USE_EXTERNAL_STARTUP_DATA |
17 #error snapshot-external.cc is used only for the external snapshot build. | 16 #error snapshot-external.cc is used only for the external snapshot build. |
18 #endif // V8_USE_EXTERNAL_STARTUP_DATA | 17 #endif // V8_USE_EXTERNAL_STARTUP_DATA |
19 | 18 |
20 | 19 |
(...skipping 15 matching lines...) Expand all Loading... |
36 } | 35 } |
37 | 36 |
38 | 37 |
39 const v8::StartupData* Snapshot::DefaultSnapshotBlob() { | 38 const v8::StartupData* Snapshot::DefaultSnapshotBlob() { |
40 base::LockGuard<base::Mutex> lock_guard( | 39 base::LockGuard<base::Mutex> lock_guard( |
41 external_startup_data_mutex.Pointer()); | 40 external_startup_data_mutex.Pointer()); |
42 return &external_startup_blob; | 41 return &external_startup_blob; |
43 } | 42 } |
44 } // namespace internal | 43 } // namespace internal |
45 } // namespace v8 | 44 } // namespace v8 |
OLD | NEW |