Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index 5c649d17d5ab33baccd13f190eb4ff8f3b1a21a0..a3b769a8bdecd0ab710fe6f09996ce83bf6364b3 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -2819,9 +2819,8 @@ int MarkCompactCollector::RelocateOldNonCodeObject(HeapObject* obj, |
ASSERT(!HeapObject::FromAddress(new_addr)->IsCode()); |
HeapObject* copied_to = HeapObject::FromAddress(new_addr); |
- if (copied_to->IsJSFunction()) { |
- PROFILE(FunctionMoveEvent(old_addr, new_addr)); |
- PROFILE(FunctionCreateEventFromMove(JSFunction::cast(copied_to))); |
+ if (copied_to->IsSharedFunctionInfo()) { |
+ PROFILE(SFIMoveEvent(old_addr, new_addr)); |
} |
HEAP_PROFILE(ObjectMoveEvent(old_addr, new_addr)); |
@@ -2912,9 +2911,8 @@ int MarkCompactCollector::RelocateNewObject(HeapObject* obj) { |
#endif |
HeapObject* copied_to = HeapObject::FromAddress(new_addr); |
- if (copied_to->IsJSFunction()) { |
- PROFILE(FunctionMoveEvent(old_addr, new_addr)); |
- PROFILE(FunctionCreateEventFromMove(JSFunction::cast(copied_to))); |
+ if (copied_to->IsSharedFunctionInfo()) { |
+ PROFILE(SFIMoveEvent(old_addr, new_addr)); |
} |
HEAP_PROFILE(ObjectMoveEvent(old_addr, new_addr)); |
@@ -2931,8 +2929,6 @@ void MarkCompactCollector::ReportDeleteIfNeeded(HeapObject* obj) { |
#ifdef ENABLE_LOGGING_AND_PROFILING |
if (obj->IsCode()) { |
PROFILE(CodeDeleteEvent(obj->address())); |
- } else if (obj->IsJSFunction()) { |
- PROFILE(FunctionDeleteEvent(obj->address())); |
} |
#endif |
} |