| Index: src/snapshot-empty.cc
|
| diff --git a/src/snapshot-empty.cc b/src/snapshot-empty.cc
|
| index 749c5874aa22e4fef7a28748d531c3613cd886af..020d1cb8125a64036137531484b31afff8c2bfb2 100644
|
| --- a/src/snapshot-empty.cc
|
| +++ b/src/snapshot-empty.cc
|
| @@ -11,9 +11,18 @@
|
| namespace v8 {
|
| namespace internal {
|
|
|
| -const byte Snapshot::data_[] = { 0 };
|
| -const int Snapshot::size_ = 0;
|
| -const byte Snapshot::context_data_[] = { 0 };
|
| -const int Snapshot::context_size_ = 0;
|
| +#ifdef V8_USE_EXTERNAL_STARTUP_DATA
|
| +// Dummy implementations of Set*FromFile(..) APIs.
|
| +//
|
| +// These are meant for use with snapshot-external.cc. Should this file
|
| +// be compiled with those options we just supply these dummy implementations
|
| +// below. This happens when compiling the mksnapshot utility.
|
| +void SetNativesFromFile(StartupData* data) { CHECK(false); }
|
| +void SetSnapshotFromFile(StartupData* data) { CHECK(false); }
|
| +#endif // V8_USE_EXTERNAL_STARTUP_DATA
|
|
|
| +
|
| +const v8::StartupData Snapshot::SnapshotBlob() {
|
| + return {NULL, 0};
|
| +}
|
| } } // namespace v8::internal
|
|
|