| Index: src/heap-inl.h
|
| diff --git a/src/heap-inl.h b/src/heap-inl.h
|
| index 13ac4a786a21bb48a6e09be6031a834e5013c807..8529406193267aaa6ffc86298d38228ac9b00ed2 100644
|
| --- a/src/heap-inl.h
|
| +++ b/src/heap-inl.h
|
| @@ -525,11 +525,10 @@ void Heap::ScavengeObject(HeapObject** p, HeapObject* object) {
|
| return;
|
| }
|
|
|
| - if (FLAG_trace_track_allocation_sites &&
|
| - AllocationSite::CanTrack(object->map()->instance_type()) &&
|
| - object->IsJSObject()) {
|
| - if (AllocationMemento::FindForJSObject(JSObject::cast(object)) != NULL) {
|
| - object->GetIsolate()->heap()->allocation_mementos_found_on_scavenge_++;
|
| + if (FLAG_trace_track_allocation_sites && object->IsJSObject()) {
|
| + if (AllocationMemento::FindForJSObject(JSObject::cast(object), true) !=
|
| + NULL) {
|
| + object->GetIsolate()->heap()->allocation_mementos_found_++;
|
| }
|
| }
|
|
|
|
|