Index: src/spaces.cc |
diff --git a/src/spaces.cc b/src/spaces.cc |
index cd09398009c833d44d8c4a6854d43be7414fb9ab..9bcfdf9879009c6ee06e61dd64d1b9c0006c07e4 100644 |
--- a/src/spaces.cc |
+++ b/src/spaces.cc |
@@ -2718,9 +2718,7 @@ void LargeObjectSpace::FreeUnmarkedObjects() { |
} |
// Free the chunk. |
- if (object->IsCode()) { |
- LOG(CodeDeleteEvent(object->address())); |
- } |
+ MarkCompactCollector::ReportDeleteIfNeeded(object); |
size_ -= static_cast<int>(chunk_size); |
page_count_--; |
MemoryAllocator::FreeRawMemory(chunk_address, chunk_size); |