Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 5bb56e6e722af5b415335642e86992229bc90230..ddfaa808b619ec80fe54fad29c9094b85f7b141c 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -383,13 +383,6 @@ StartupData V8::CreateSnapshotDataBlob(const char* custom_source) { |
} |
} |
if (!context.IsEmpty()) { |
- // Make sure all builtin scripts are cached. |
- { |
- HandleScope scope(isolate); |
- for (int i = 0; i < i::Natives::GetBuiltinsCount(); i++) { |
- internal_isolate->bootstrapper()->SourceLookup<i::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 the context. |
internal_isolate->heap()->CollectAllAvailableGarbage("mksnapshot"); |