Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | // Used for building without snapshots. |
| 6 | |
| 7 | #include "src/snapshot/snapshot.h" |
| 8 | |
| 9 | namespace v8 { |
| 10 | namespace internal { |
| 11 | |
| 12 | #ifdef V8_USE_EXTERNAL_STARTUP_DATA |
| 13 | // Dummy implementations of Set*FromFile(..) APIs. |
| 14 | // |
| 15 | // These are meant for use with snapshot-external.cc. Should this file |
| 16 | // be compiled with those options we just supply these dummy implementations |
| 17 | // below. This happens when compiling the mksnapshot utility. |
| 18 | void SetNativesFromFile(StartupData* data) { CHECK(false); } |
| 19 | void SetSnapshotFromFile(StartupData* data) { CHECK(false); } |
| 20 | void ReadNatives() {} |
| 21 | void DisposeNatives() {} |
| 22 | #endif // V8_USE_EXTERNAL_STARTUP_DATA |
| 23 | |
| 24 | |
| 25 | const v8::StartupData* Snapshot::DefaultSnapshotBlob() { return NULL; } |
| 26 | } // namespace internal |
| 27 | } // namespace v8 |