Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index e9de684199de6cba9acd10dd3e9ce302caa7befc..f3053029182691ad92ea4aa8c47317101049ec7b 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -5698,7 +5698,8 @@ DependentCode* Heap::LookupWeakObjectToCodeDependency(Object* obj) { |
void Heap::EnsureWeakObjectToCodeTable() { |
if (!weak_object_to_code_table()->IsHashTable()) { |
- set_weak_object_to_code_table(*isolate()->factory()->NewWeakHashTable(16)); |
+ set_weak_object_to_code_table(*WeakHashTable::New( |
+ isolate(), 16, USE_DEFAULT_MINIMUM_CAPACITY, TENURED)); |
} |
} |