| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 3eedfe92faf08b10e71b512049509a7e197ceb26..638fc8125d55e2a03ecc3f99469e0d7c9157d720 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -10393,27 +10393,7 @@ void Code::ClearInlineCaches(Code::Kind* kind) {
|
|
|
|
|
| void SharedFunctionInfo::ClearTypeFeedbackInfo() {
|
| - TypeFeedbackVector* vector = feedback_vector();
|
| - Heap* heap = GetHeap();
|
| - int length = vector->length();
|
| -
|
| - for (int i = 0; i < length; i++) {
|
| - Object* obj = vector->get(i);
|
| - if (obj->IsHeapObject()) {
|
| - InstanceType instance_type =
|
| - HeapObject::cast(obj)->map()->instance_type();
|
| - switch (instance_type) {
|
| - case ALLOCATION_SITE_TYPE:
|
| - // AllocationSites are not cleared because they do not store
|
| - // information that leaks.
|
| - break;
|
| - // Fall through...
|
| - default:
|
| - vector->set(i, TypeFeedbackVector::RawUninitializedSentinel(heap),
|
| - SKIP_WRITE_BARRIER);
|
| - }
|
| - }
|
| - }
|
| + feedback_vector()->ClearSlots(this);
|
| }
|
|
|
|
|
|
|