Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index f830b4dd1bcfaf26a5a743a250f9bdef2ed3c522..ad6357e2068459dd2b41c7f2aa15b2eaf30f47a1 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -501,11 +501,10 @@ void Heap::RepairFreeListsAfterDeserialization() { |
} |
} |
- |
void Heap::MergeAllocationSitePretenuringFeedback( |
- const HashMap& local_pretenuring_feedback) { |
+ const base::HashMap& local_pretenuring_feedback) { |
AllocationSite* site = nullptr; |
- for (HashMap::Entry* local_entry = local_pretenuring_feedback.Start(); |
+ for (base::HashMap::Entry* local_entry = local_pretenuring_feedback.Start(); |
local_entry != nullptr; |
local_entry = local_pretenuring_feedback.Next(local_entry)) { |
site = reinterpret_cast<AllocationSite*>(local_entry->key); |
@@ -534,8 +533,8 @@ void Heap::MergeAllocationSitePretenuringFeedback( |
class Heap::PretenuringScope { |
public: |
explicit PretenuringScope(Heap* heap) : heap_(heap) { |
- heap_->global_pretenuring_feedback_ = |
- new HashMap(HashMap::PointersMatch, kInitialFeedbackCapacity); |
+ heap_->global_pretenuring_feedback_ = new base::HashMap( |
+ base::HashMap::PointersMatch, kInitialFeedbackCapacity); |
} |
~PretenuringScope() { |
@@ -561,7 +560,7 @@ void Heap::ProcessPretenuringFeedback() { |
// Step 1: Digest feedback for recorded allocation sites. |
bool maximum_size_scavenge = MaximumSizeScavenge(); |
- for (HashMap::Entry* e = global_pretenuring_feedback_->Start(); |
+ for (base::HashMap::Entry* e = global_pretenuring_feedback_->Start(); |
e != nullptr; e = global_pretenuring_feedback_->Next(e)) { |
allocation_sites++; |
site = reinterpret_cast<AllocationSite*>(e->key); |