| 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 // The common functionality when building with or without snapshots. | 5 // The common functionality when building with or without snapshots. |
| 6 | 6 |
| 7 #include "src/v8.h" | 7 #include "src/v8.h" |
| 8 | 8 |
| 9 #include "src/api.h" | 9 #include "src/api.h" |
| 10 #include "src/base/platform/platform.h" | 10 #include "src/base/platform/platform.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 #ifdef V8_USE_EXTERNAL_STARTUP_DATA | 77 #ifdef V8_USE_EXTERNAL_STARTUP_DATA |
| 78 // Dummy implementations of Set*FromFile(..) APIs. | 78 // Dummy implementations of Set*FromFile(..) APIs. |
| 79 // | 79 // |
| 80 // These are meant for use with snapshot-external.cc. Should this file | 80 // These are meant for use with snapshot-external.cc. Should this file |
| 81 // be compiled with those options we just supply these dummy implementations | 81 // be compiled with those options we just supply these dummy implementations |
| 82 // below. This happens when compiling the mksnapshot utility. | 82 // below. This happens when compiling the mksnapshot utility. |
| 83 void SetNativesFromFile(StartupData* data) { CHECK(false); } | 83 void SetNativesFromFile(StartupData* data) { CHECK(false); } |
| 84 void SetSnapshotFromFile(StartupData* data) { CHECK(false); } | 84 void SetSnapshotFromFile(StartupData* data) { CHECK(false); } |
| 85 #endif // V8_USE_EXTERNAL_STARTUP_DATA | 85 #endif // V8_USE_EXTERNAL_STARTUP_DATA |
| 86 | 86 |
| 87 #if defined(V8_ON_DEMAND_SNAPSHOT) |
| 88 void CreateV8SnapshotOnDemand() { CHECK(false); } |
| 89 #endif |
| 90 |
| 87 } } // namespace v8::internal | 91 } } // namespace v8::internal |
| OLD | NEW |