Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index 91039100f938895a4ede3b482f62907c1e278c9c..b857c793798a4f91a8f87ff9830acf465f9898a5 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -2077,6 +2077,7 @@ int MarkCompactCollector::DiscoverAndPromoteBlackObjectsOnPage( |
object, |
size, |
NEW_SPACE); |
+ heap()->IncrementSemiSpaceCopiedObjectSize(size); |
} |
*cells = 0; |
} |
@@ -3083,8 +3084,7 @@ bool MarkCompactCollector::TryPromoteObject(HeapObject* object, |
object, |
object_size, |
target_space->identity()); |
- heap()->mark_compact_collector()->tracer()-> |
- increment_promoted_objects_size(object_size); |
+ heap()->IncrementPromotedObjectsSize(object_size); |
return true; |
} |