Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Unified Diff: src/snapshot.h

Issue 787033002: Use same blob format for internal and external snapshots. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: addressed comments Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/serialize.h ('k') | src/snapshot-common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/snapshot.h
diff --git a/src/snapshot.h b/src/snapshot.h
index 384e655c5693caed379cf738682919f9884e1db7..d37b50aebe02f44e363eb5f22efd16d846ebb6d3 100644
--- a/src/snapshot.h
+++ b/src/snapshot.h
@@ -15,18 +15,16 @@ class Snapshot {
// Initialize the Isolate from the internal snapshot. Returns false if no
// snapshot could be found.
static bool Initialize(Isolate* isolate);
+ // Create a new context using the internal partial snapshot.
+ static Handle<Context> NewContextFromSnapshot(Isolate* isolate);
+ static const Vector<const byte> StartupSnapshot();
+ static const Vector<const byte> ContextSnapshot();
static bool HaveASnapshotToStartFrom();
- // Create a new context using the internal partial snapshot.
- static Handle<Context> NewContextFromSnapshot(Isolate* isolate);
+ static const v8::StartupData SnapshotBlob();
private:
- static const byte data_[];
- static const int size_;
- static const byte context_data_[];
- static const int context_size_;
-
DISALLOW_IMPLICIT_CONSTRUCTORS(Snapshot);
};
« no previous file with comments | « src/serialize.h ('k') | src/snapshot-common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698