Index: src/strings-storage.cc |
diff --git a/src/strings-storage.cc b/src/strings-storage.cc |
index 1d862d6b24be4e458476d7b918a96d0b89569610..6b19339ee777b0f8b90c78ad905390f1c2cb3f25 100644 |
--- a/src/strings-storage.cc |
+++ b/src/strings-storage.cc |
@@ -117,7 +117,7 @@ size_t StringsStorage::GetUsedMemorySize() const { |
HashMap::Entry* StringsStorage::GetEntry(const char* str, int len) { |
uint32_t hash = StringHasher::HashSequentialString(str, len, hash_seed_); |
- return names_.Lookup(const_cast<char*>(str), hash, true); |
+ return names_.LookupOrInsert(const_cast<char*>(str), hash); |
} |
} |
} // namespace v8::internal |