Index: src/heap/spaces.cc |
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc |
index f1029c4d7d7f4628526f673a1791bf4251d1ec09..8fc9ff703e4ea97daa1bed3eefbb021ee474a9e0 100644 |
--- a/src/heap/spaces.cc |
+++ b/src/heap/spaces.cc |
@@ -882,10 +882,7 @@ void MemoryAllocator::RemoveMemoryAllocationCallback( |
void MemoryAllocator::ReportStatistics() { |
intptr_t size = Size(); |
float pct = static_cast<float>(capacity_ - size) / capacity_; |
- PrintF(" capacity: %" V8_PTR_PREFIX |
- "d" |
- ", used: %" V8_PTR_PREFIX |
- "d" |
+ PrintF(" capacity: %" V8PRIdPTR ", used: %" V8PRIdPTR |
", available: %%%d\n\n", |
capacity_, size, static_cast<int>(pct * 100)); |
} |
@@ -2042,9 +2039,7 @@ void NewSpace::ReportStatistics() { |
#ifdef DEBUG |
if (FLAG_heap_stats) { |
float pct = static_cast<float>(Available()) / TotalCapacity(); |
- PrintF(" capacity: %" V8_PTR_PREFIX |
- "d" |
- ", available: %" V8_PTR_PREFIX "d, %%%d\n", |
+ PrintF(" capacity: %" V8PRIdPTR ", available: %" V8PRIdPTR ", %%%d\n", |
TotalCapacity(), Available(), static_cast<int>(pct * 100)); |
PrintF("\n Object Histogram:\n"); |
for (int i = 0; i <= LAST_TYPE; i++) { |
@@ -2770,11 +2765,8 @@ void PagedSpace::CollectCodeStatistics() { |
void PagedSpace::ReportStatistics() { |
int pct = static_cast<int>(Available() * 100 / Capacity()); |
- PrintF(" capacity: %" V8_PTR_PREFIX |
- "d" |
- ", waste: %" V8_PTR_PREFIX |
- "d" |
- ", available: %" V8_PTR_PREFIX "d, %%%d\n", |
+ PrintF(" capacity: %" V8PRIdPTR ", waste: %" V8PRIdPTR |
+ ", available: %" V8PRIdPTR ", %%%d\n", |
Capacity(), Waste(), Available(), pct); |
if (heap()->mark_compact_collector()->sweeping_in_progress()) { |
@@ -3075,7 +3067,7 @@ void LargeObjectSpace::Print() { |
void LargeObjectSpace::ReportStatistics() { |
- PrintF(" size: %" V8_PTR_PREFIX "d\n", size_); |
+ PrintF(" size: %" V8PRIdPTR "\n", size_); |
int num_objects = 0; |
ClearHistograms(heap()->isolate()); |
LargeObjectIterator it(this); |
@@ -3086,7 +3078,7 @@ void LargeObjectSpace::ReportStatistics() { |
PrintF( |
" number of objects %d, " |
- "size of objects %" V8_PTR_PREFIX "d\n", |
+ "size of objects %" V8PRIdPTR "\n", |
num_objects, objects_size_); |
if (num_objects > 0) ReportHistogram(heap()->isolate(), false); |
} |