| Index: test/cctest/test-serialize.cc
|
| diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc
|
| index 6ce2406c41a7b74841908337a860f6eeb4353009..e8be36a32da43318448ba0e83d6a02bc96d8b3c4 100644
|
| --- a/test/cctest/test-serialize.cc
|
| +++ b/test/cctest/test-serialize.cc
|
| @@ -271,13 +271,6 @@ static void PartiallySerializeObject(Vector<const byte>* startup_blob_out,
|
| v8::HandleScope handle_scope(v8_isolate);
|
| v8::Local<v8::Context>::New(v8_isolate, env)->Enter();
|
| }
|
| - // Make sure all builtin scripts are cached.
|
| - {
|
| - HandleScope scope(isolate);
|
| - for (int i = 0; i < Natives::GetBuiltinsCount(); i++) {
|
| - isolate->bootstrapper()->SourceLookup<Natives>(i);
|
| - }
|
| - }
|
|
|
| heap->CollectAllAvailableGarbage(i::GarbageCollectionReason::kTesting);
|
| heap->CollectAllAvailableGarbage(i::GarbageCollectionReason::kTesting);
|
| @@ -378,13 +371,6 @@ static void PartiallySerializeContext(Vector<const byte>* startup_blob_out,
|
| v8::HandleScope handle_scope(v8_isolate);
|
| v8::Local<v8::Context>::New(v8_isolate, env)->Enter();
|
| }
|
| - // Make sure all builtin scripts are cached.
|
| - {
|
| - HandleScope scope(isolate);
|
| - for (int i = 0; i < Natives::GetBuiltinsCount(); i++) {
|
| - isolate->bootstrapper()->SourceLookup<Natives>(i);
|
| - }
|
| - }
|
|
|
| // If we don't do this then we end up with a stray root pointing at the
|
| // context even after we have disposed of env.
|
| @@ -503,13 +489,6 @@ static void PartiallySerializeCustomContext(
|
| CompileRun(source_str.ToLocalChecked());
|
| source.Dispose();
|
| }
|
| - // Make sure all builtin scripts are cached.
|
| - {
|
| - HandleScope scope(isolate);
|
| - for (int i = 0; i < Natives::GetBuiltinsCount(); i++) {
|
| - isolate->bootstrapper()->SourceLookup<Natives>(i);
|
| - }
|
| - }
|
| // If we don't do this then we end up with a stray root pointing at the
|
| // context even after we have disposed of env.
|
| isolate->heap()->CollectAllAvailableGarbage(
|
|
|