| 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);
|
| };
|
|
|
|
|