Chromium Code Reviews| Index: src/heap-inl.h |
| diff --git a/src/heap-inl.h b/src/heap-inl.h |
| index 3dce348727477c260c894f3710956e4fe0e2ce8f..22048fcbec6d5095552aa304559704ad6a7c3d00 100644 |
| --- a/src/heap-inl.h |
| +++ b/src/heap-inl.h |
| @@ -484,15 +484,16 @@ void Heap::ScavengePointer(HeapObject** p) { |
| void Heap::UpdateAllocationSiteFeedback(HeapObject* object) { |
| + Heap* heap = object->GetIsolate()->heap(); |
|
Michael Starzinger
2014/01/10 09:10:23
nit: Just "object->GetHeap()" here.
Hannes Payer (out of office)
2014/01/10 12:03:30
Done.
|
| if (FLAG_allocation_site_pretenuring && |
| + heap->new_space_high_promotion_mode_active_ && |
| AllocationSite::CanTrack(object->map()->instance_type())) { |
| AllocationMemento* memento = AllocationMemento::FindForHeapObject( |
| - object, true); |
| + object, heap, true); |
| if (memento != NULL) { |
| ASSERT(memento->IsValid()); |
| bool add_to_scratchpad = |
| memento->GetAllocationSite()->IncrementMementoFoundCount(); |
| - Heap* heap = object->GetIsolate()->heap(); |
| if (add_to_scratchpad && heap->allocation_sites_scratchpad_length < |
| kAllocationSiteScratchpadSize) { |
| heap->allocation_sites_scratchpad[ |