Index: src/heap/gc-tracer.cc |
diff --git a/src/heap/gc-tracer.cc b/src/heap/gc-tracer.cc |
index 703b57b2b3c6672f16a4ddfdf090a2b52e86f5b8..dcd319fdaea2a7a91977fe08eec74ea660e87e88 100644 |
--- a/src/heap/gc-tracer.cc |
+++ b/src/heap/gc-tracer.cc |
@@ -15,10 +15,8 @@ static size_t CountTotalHolesSize(Heap* heap) { |
size_t holes_size = 0; |
OldSpaces spaces(heap); |
for (OldSpace* space = spaces.next(); space != NULL; space = spaces.next()) { |
- DCHECK_GE(space->Waste(), 0); |
- DCHECK_GE(space->Available(), 0); |
DCHECK_GE(holes_size + space->Waste() + space->Available(), holes_size); |
- holes_size += static_cast<size_t>(space->Waste() + space->Available()); |
+ holes_size += space->Waste() + space->Available(); |
} |
return holes_size; |
} |
@@ -469,9 +467,9 @@ void GCTracer::PrintNVP() const { |
" " |
"allocated=%" PRIuS |
" " |
- "promoted=%" V8PRIdPTR |
+ "promoted=%" PRIuS |
" " |
- "semi_space_copied=%" V8PRIdPTR |
+ "semi_space_copied=%" PRIuS |
" " |
"nodes_died_in_new=%d " |
"nodes_copied_in_new=%d " |
@@ -591,9 +589,9 @@ void GCTracer::PrintNVP() const { |
" " |
"allocated=%" PRIuS |
" " |
- "promoted=%" V8PRIdPTR |
+ "promoted=%" PRIuS |
" " |
- "semi_space_copied=%" V8PRIdPTR |
+ "semi_space_copied=%" PRIuS |
" " |
"nodes_died_in_new=%d " |
"nodes_copied_in_new=%d " |