Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 2685a5c587a7aec09ed39f95532110f5f3b0590c..371931c5669ec52ad450ffece9eeb62bbc15e126 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -14769,6 +14769,16 @@ MaybeHandle<String> StringTable::LookupTwoCharsStringIfExists( |
} |
+void StringTable::EnsureCapacityForDeserialization(Isolate* isolate, |
+ int expected) { |
+ Handle<StringTable> table = isolate->factory()->string_table(); |
+ // We need a key instance for the virtual hash function. |
+ InternalizedStringKey dummy_key(Handle<String>::null()); |
+ table = StringTable::EnsureCapacity(table, expected, &dummy_key); |
+ isolate->factory()->set_string_table(table); |
+} |
+ |
+ |
Handle<String> StringTable::LookupString(Isolate* isolate, |
Handle<String> string) { |
InternalizedStringKey key(string); |