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

Unified Diff: src/hashmap.h

Issue 2046563008: Revert of [heap] Unregister shrinked large object memory from chunk map. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | src/heap/spaces.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hashmap.h
diff --git a/src/hashmap.h b/src/hashmap.h
index 41e189d67ace43fa7fd7426bec919e8af7ce34b6..f94def7c3c7a04cb4c0e534074c4f94b092a0f81 100644
--- a/src/hashmap.h
+++ b/src/hashmap.h
@@ -50,9 +50,6 @@
// corresponding key, key hash, and NULL value.
Entry* LookupOrInsert(void* key, uint32_t hash,
AllocationPolicy allocator = AllocationPolicy());
-
- Entry* InsertNew(void* key, uint32_t hash,
- AllocationPolicy allocator = AllocationPolicy());
// Removes the entry with matching key.
// It returns the value of the deleted entry
@@ -131,17 +128,6 @@
if (p->key != NULL) {
return p;
}
-
- return InsertNew(key, hash, allocator);
-}
-
-template <class AllocationPolicy>
-typename TemplateHashMapImpl<AllocationPolicy>::Entry*
-TemplateHashMapImpl<AllocationPolicy>::InsertNew(void* key, uint32_t hash,
- AllocationPolicy allocator) {
- // Find a matching entry.
- Entry* p = Probe(key, hash);
- DCHECK(p->key == NULL);
// No entry found; insert one.
p->key = key;
« no previous file with comments | « no previous file | src/heap/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698