Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 8338c5c38b9cb4650249d84c62e62ee6eeea9884..d44e0535674a24a406535bd0f7b4b06d38e87a49 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -3097,12 +3097,13 @@ HashMap* MarkCompactCollector::EvacuateNewSpaceInParallel() { |
USE(ok); |
DCHECK(ok); |
} |
- heap_->IncrementPromotedObjectsSize(new_space_visitor.promoted_size()); |
+ heap_->IncrementPromotedObjectsSize( |
+ static_cast<int>(new_space_visitor.promoted_size())); |
heap_->IncrementSemiSpaceCopiedObjectSize( |
- new_space_visitor.semispace_copied_size()); |
+ static_cast<int>(new_space_visitor.semispace_copied_size())); |
heap_->IncrementYoungSurvivorsCounter( |
- new_space_visitor.promoted_size() + |
- new_space_visitor.semispace_copied_size()); |
+ static_cast<int>(new_space_visitor.promoted_size()) + |
+ static_cast<int>(new_space_visitor.semispace_copied_size())); |
return local_pretenuring_feedback; |
} |