| Index: src/snapshot.h
|
| diff --git a/src/snapshot.h b/src/snapshot.h
|
| index 3135756a3252a2014c05de600f9b86a99a1d5679..dc26a11d46bcb52b4ab6d21e0d085722f1fc14b3 100644
|
| --- a/src/snapshot.h
|
| +++ b/src/snapshot.h
|
| @@ -36,14 +36,18 @@ class Snapshot : public AllStatic {
|
| Isolate* isolate, Handle<JSGlobalProxy> global_proxy,
|
| Handle<FixedArray>* outdated_contexts_out);
|
|
|
| - static bool HaveASnapshotToStartFrom();
|
| + static bool HaveASnapshotToStartFrom(Isolate* isolate) {
|
| + // Do not use snapshots if the isolate is used to create snapshots.
|
| + return isolate->snapshot_blob() != NULL;
|
| + }
|
| +
|
| + static bool EmbedsScript(Isolate* isolate);
|
|
|
| - static bool EmbedsScript();
|
| + static uint32_t SizeOfFirstPage(Isolate* isolate, AllocationSpace space);
|
|
|
| - static uint32_t SizeOfFirstPage(AllocationSpace space);
|
|
|
| // To be implemented by the snapshot source.
|
| - static const v8::StartupData SnapshotBlob();
|
| + static const v8::StartupData* DefaultSnapshotBlob();
|
|
|
| static v8::StartupData CreateSnapshotBlob(
|
| const StartupSerializer& startup_ser,
|
|
|