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

Unified Diff: gin/v8_initializer.h

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: Work for comments Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: gin/v8_initializer.h
diff --git a/gin/v8_initializer.h b/gin/v8_initializer.h
index 7d16c3eb6d940e39d2ba9ad5b1f4ba22eddb753a..5a4db2528eb7eb10fc9c87fe95998809385c75ce 100644
--- a/gin/v8_initializer.h
+++ b/gin/v8_initializer.h
@@ -76,6 +76,13 @@ class GIN_EXPORT V8Initializer {
#endif
#endif // V8_USE_EXTERNAL_STARTUP_DATA
+
+ static void LoadV8ContextSnapshotFromFD(base::PlatformFile snapshot_fd,
+ int64_t snapshot_offset,
+ int64_t snapshot_size);
+ static void LoadV8ContextSnapshot();
+ static void GetV8ContextSnapshotData(const char** snapshot_data_out,
haraken 2017/07/10 06:52:08 Add per-method comments like other methods in this
peria 2017/07/10 10:18:43 Done.
+ int* snapshot_size_out);
};
} // namespace gin

Powered by Google App Engine
This is Rietveld 408576698