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