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

Unified Diff: src/snapshot/startup-serializer.h

Issue 1805903002: [serializer] Add API to warm up startup snapshot with an additional script. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix comment Created 4 years, 9 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
« no previous file with comments | « src/snapshot/serializer-common.cc ('k') | src/snapshot/startup-serializer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/snapshot/startup-serializer.h
diff --git a/src/snapshot/startup-serializer.h b/src/snapshot/startup-serializer.h
index 1328b633afe9fd34044d838f6cf5a2db799f6b73..1fe22543f474af24c103e74d53ee8b99ffa947a3 100644
--- a/src/snapshot/startup-serializer.h
+++ b/src/snapshot/startup-serializer.h
@@ -12,7 +12,11 @@ namespace internal {
class StartupSerializer : public Serializer {
public:
- StartupSerializer(Isolate* isolate, SnapshotByteSink* sink);
+ enum FunctionCodeHandling { CLEAR_FUNCTION_CODE, KEEP_FUNCTION_CODE };
+
+ StartupSerializer(
+ Isolate* isolate, SnapshotByteSink* sink,
+ FunctionCodeHandling function_code_handling = CLEAR_FUNCTION_CODE);
~StartupSerializer() override;
// Serialize the current state of the heap. The order is:
@@ -32,6 +36,7 @@ class StartupSerializer : public Serializer {
intptr_t root_index_wave_front_;
bool serializing_builtins_;
+ FunctionCodeHandling function_code_handling_;
DISALLOW_COPY_AND_ASSIGN(StartupSerializer);
};
« no previous file with comments | « src/snapshot/serializer-common.cc ('k') | src/snapshot/startup-serializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698