| Index: src/heap-inl.h
|
| diff --git a/src/heap-inl.h b/src/heap-inl.h
|
| index 525c634da626809c7c1bdfa3ce70b512e8eca621..d3c5b6fc022fa63fa31383a2d5c6078f0931bffa 100644
|
| --- a/src/heap-inl.h
|
| +++ b/src/heap-inl.h
|
| @@ -485,8 +485,8 @@ void Heap::ScavengePointer(HeapObject** p) {
|
|
|
| void Heap::UpdateAllocationSiteFeedback(HeapObject* object) {
|
| if (FLAG_allocation_site_pretenuring && object->IsJSObject()) {
|
| - AllocationMemento* memento = AllocationMemento::FindForJSObject(
|
| - JSObject::cast(object), true);
|
| + AllocationMemento* memento = AllocationMemento::FindForHeapObject(
|
| + object, true);
|
| if (memento != NULL) {
|
| ASSERT(memento->IsValid());
|
| memento->GetAllocationSite()->IncrementMementoFoundCount();
|
|
|