| Index: src/heap-inl.h
|
| diff --git a/src/heap-inl.h b/src/heap-inl.h
|
| index a45e3ab9d9ce1630f6b2a2a6da719fd1b42beb45..ea175bbc3b5c8cffa5b5e673c25fc468d4f62745 100644
|
| --- a/src/heap-inl.h
|
| +++ b/src/heap-inl.h
|
| @@ -490,7 +490,8 @@ void Heap::ScavengePointer(HeapObject** p) {
|
| }
|
|
|
|
|
| -void Heap::UpdateAllocationSiteFeedback(HeapObject* object) {
|
| +void Heap::UpdateAllocationSiteFeedback(HeapObject* object,
|
| + ScratchpadSlotMode mode) {
|
| Heap* heap = object->GetHeap();
|
| ASSERT(heap->InFromSpace(object));
|
|
|
| @@ -518,7 +519,7 @@ void Heap::UpdateAllocationSiteFeedback(HeapObject* object) {
|
| if (!memento->IsValid()) return;
|
|
|
| if (memento->GetAllocationSite()->IncrementMementoFoundCount()) {
|
| - heap->AddAllocationSiteToScratchpad(memento->GetAllocationSite());
|
| + heap->AddAllocationSiteToScratchpad(memento->GetAllocationSite(), mode);
|
| }
|
| }
|
|
|
| @@ -541,7 +542,7 @@ void Heap::ScavengeObject(HeapObject** p, HeapObject* object) {
|
| return;
|
| }
|
|
|
| - UpdateAllocationSiteFeedback(object);
|
| + UpdateAllocationSiteFeedback(object, IGNORE_SCRATCHPAD_SLOT);
|
|
|
| // AllocationMementos are unrooted and shouldn't survive a scavenge
|
| ASSERT(object->map() != object->GetHeap()->allocation_memento_map());
|
|
|