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

Side by Side Diff: src/snapshot/snapshot.h

Issue 2840493002: [snapshot] full setup delegate should also be able to deserialize. (Closed)
Patch Set: fix comment Created 3 years, 8 months 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 unified diff | Download patch
« no previous file with comments | « src/snapshot/deserializer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef V8_SNAPSHOT_SNAPSHOT_H_ 5 #ifndef V8_SNAPSHOT_SNAPSHOT_H_
6 #define V8_SNAPSHOT_SNAPSHOT_H_ 6 #define V8_SNAPSHOT_SNAPSHOT_H_
7 7
8 #include "src/snapshot/partial-serializer.h" 8 #include "src/snapshot/partial-serializer.h"
9 #include "src/snapshot/startup-serializer.h" 9 #include "src/snapshot/startup-serializer.h"
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 public: 55 public:
56 // Initialize the Isolate from the internal snapshot. Returns false if no 56 // Initialize the Isolate from the internal snapshot. Returns false if no
57 // snapshot could be found. 57 // snapshot could be found.
58 static bool Initialize(Isolate* isolate); 58 static bool Initialize(Isolate* isolate);
59 // Create a new context using the internal partial snapshot. 59 // Create a new context using the internal partial snapshot.
60 static MaybeHandle<Context> NewContextFromSnapshot( 60 static MaybeHandle<Context> NewContextFromSnapshot(
61 Isolate* isolate, Handle<JSGlobalProxy> global_proxy, 61 Isolate* isolate, Handle<JSGlobalProxy> global_proxy,
62 size_t context_index, 62 size_t context_index,
63 v8::DeserializeEmbedderFieldsCallback embedder_fields_deserializer); 63 v8::DeserializeEmbedderFieldsCallback embedder_fields_deserializer);
64 64
65 static bool HaveASnapshotToStartFrom(Isolate* isolate);
66
67 static bool HasContextSnapshot(Isolate* isolate, size_t index); 65 static bool HasContextSnapshot(Isolate* isolate, size_t index);
68 66
69 static bool EmbedsScript(Isolate* isolate); 67 static bool EmbedsScript(Isolate* isolate);
70 68
71 // To be implemented by the snapshot source. 69 // To be implemented by the snapshot source.
72 static const v8::StartupData* DefaultSnapshotBlob(); 70 static const v8::StartupData* DefaultSnapshotBlob();
73 71
74 static v8::StartupData CreateSnapshotBlob( 72 static v8::StartupData CreateSnapshotBlob(
75 const SnapshotData* startup_snapshot, 73 const SnapshotData* startup_snapshot,
76 const List<SnapshotData*>* context_snapshots); 74 const List<SnapshotData*>* context_snapshots);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 }; 109 };
112 110
113 #ifdef V8_USE_EXTERNAL_STARTUP_DATA 111 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
114 void SetSnapshotFromFile(StartupData* snapshot_blob); 112 void SetSnapshotFromFile(StartupData* snapshot_blob);
115 #endif 113 #endif
116 114
117 } // namespace internal 115 } // namespace internal
118 } // namespace v8 116 } // namespace v8
119 117
120 #endif // V8_SNAPSHOT_SNAPSHOT_H_ 118 #endif // V8_SNAPSHOT_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « src/snapshot/deserializer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698