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

Unified Diff: third_party/WebKit/Source/platform/heap/HeapCompact.cpp

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: rebase, add TODOs Created 3 years, 10 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: third_party/WebKit/Source/platform/heap/HeapCompact.cpp
diff --git a/third_party/WebKit/Source/platform/heap/HeapCompact.cpp b/third_party/WebKit/Source/platform/heap/HeapCompact.cpp
index 460bf172677bd8da2eacd50f090f956088ffebaa..cd95f8c6792aec83fecb30fdee89a791830a6522 100644
--- a/third_party/WebKit/Source/platform/heap/HeapCompact.cpp
+++ b/third_party/WebKit/Source/platform/heap/HeapCompact.cpp
@@ -47,7 +47,7 @@ class HeapCompact::MovableObjectFixups final {
DCHECK(!it->value);
return;
}
- m_interiorFixups.add(slot, nullptr);
+ m_interiorFixups.insert(slot, nullptr);
LOG_HEAP_COMPACTION("Interior slot: %p\n", slot);
Address slotAddress = reinterpret_cast<Address>(slot);
if (!m_interiors) {
@@ -75,7 +75,7 @@ class HeapCompact::MovableObjectFixups final {
// isCompactingArena() would be appropriate here, leaving early if
// |refPage|'s arena isn't in the set.
- m_fixups.add(reference, slot);
+ m_fixups.insert(reference, slot);
// Note: |slot| will reside outside the Oilpan heap if it is a
// PersistentHeapCollectionBase. Hence pageFromObject() cannot be
@@ -107,8 +107,8 @@ class HeapCompact::MovableObjectFixups final {
MovingObjectCallback callback,
void* callbackData) {
DCHECK(!m_fixupCallbacks.contains(reference));
- m_fixupCallbacks.add(reference, std::pair<void*, MovingObjectCallback>(
- callbackData, callback));
+ m_fixupCallbacks.insert(reference, std::pair<void*, MovingObjectCallback>(
+ callbackData, callback));
}
void relocateInteriorFixups(Address from, Address to, size_t size) {

Powered by Google App Engine
This is Rietveld 408576698