Index: test/cctest/test-serialize.cc |
diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc |
index 141ab616d6dd9a8db2020fd5a6e8a84023708b23..56cabfe7d628e4161da609327634f9f26928d1ef 100644 |
--- a/test/cctest/test-serialize.cc |
+++ b/test/cctest/test-serialize.cc |
@@ -93,7 +93,8 @@ static Vector<const byte> Serialize(v8::Isolate* isolate) { |
Isolate* internal_isolate = reinterpret_cast<Isolate*>(isolate); |
internal_isolate->heap()->CollectAllAvailableGarbage("serialize"); |
SnapshotByteSink sink; |
- StartupSerializer ser(internal_isolate, &sink); |
+ StartupSerializer ser(internal_isolate, &sink, |
+ v8::SnapshotCreator::FunctionCodeHandling::kClear); |
ser.SerializeStrongReferences(); |
ser.SerializeWeakReferencesAndDeferred(); |
SnapshotData snapshot_data(ser); |
@@ -282,7 +283,9 @@ static void PartiallySerializeObject(Vector<const byte>* startup_blob_out, |
env.Reset(); |
SnapshotByteSink startup_sink; |
- StartupSerializer startup_serializer(isolate, &startup_sink); |
+ StartupSerializer startup_serializer( |
+ isolate, &startup_sink, |
+ v8::SnapshotCreator::FunctionCodeHandling::kClear); |
startup_serializer.SerializeStrongReferences(); |
SnapshotByteSink partial_sink; |
@@ -381,7 +384,9 @@ static void PartiallySerializeContext(Vector<const byte>* startup_blob_out, |
env.Reset(); |
SnapshotByteSink startup_sink; |
- StartupSerializer startup_serializer(isolate, &startup_sink); |
+ StartupSerializer startup_serializer( |
+ isolate, &startup_sink, |
+ v8::SnapshotCreator::FunctionCodeHandling::kClear); |
startup_serializer.SerializeStrongReferences(); |
SnapshotByteSink partial_sink; |
@@ -499,7 +504,9 @@ static void PartiallySerializeCustomContext( |
env.Reset(); |
SnapshotByteSink startup_sink; |
- StartupSerializer startup_serializer(isolate, &startup_sink); |
+ StartupSerializer startup_serializer( |
+ isolate, &startup_sink, |
+ v8::SnapshotCreator::FunctionCodeHandling::kClear); |
startup_serializer.SerializeStrongReferences(); |
SnapshotByteSink partial_sink; |