Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1343)

Unified Diff: src/strings-storage.cc

Issue 1074943002: Split TemplateHashMapImpl::Lookup into two methods (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm (and ppc) builds Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698