Index: src/heap/spaces.cc |
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc |
index 94cdc86e3ee905de3047c31bc8835eb328ae66b0..ce1e5942175d6c7fddea2ebc09c01f08cdb8c5bf 100644 |
--- a/src/heap/spaces.cc |
+++ b/src/heap/spaces.cc |
@@ -1271,7 +1271,8 @@ bool PagedSpace::Expand() { |
Bitmap::SetAllBits(p); |
p->SetFlag(Page::BLACK_PAGE); |
if (FLAG_trace_incremental_marking) { |
- PrintIsolate(heap()->isolate(), "Added black page %p\n", p); |
+ PrintIsolate(heap()->isolate(), "Added black page %p\n", |
+ static_cast<void*>(p)); |
} |
} |
@@ -2576,10 +2577,11 @@ void FreeList::RemoveCategory(FreeListCategory* category) { |
void FreeList::PrintCategories(FreeListCategoryType type) { |
FreeListCategoryIterator it(this, type); |
- PrintF("FreeList[%p, top=%p, %d] ", this, categories_[type], type); |
+ PrintF("FreeList[%p, top=%p, %d] ", static_cast<void*>(this), |
+ static_cast<void*>(categories_[type]), type); |
while (it.HasNext()) { |
FreeListCategory* current = it.Next(); |
- PrintF("%p -> ", current); |
+ PrintF("%p -> ", static_cast<void*>(current)); |
} |
PrintF("null\n"); |
} |
@@ -3224,7 +3226,7 @@ void LargeObjectSpace::CollectCodeStatistics() { |
void Page::Print() { |
// Make a best-effort to print the objects in the page. |
- PrintF("Page@%p in %s\n", this->address(), |
+ PrintF("Page@%p in %s\n", static_cast<void*>(this->address()), |
AllocationSpaceName(this->owner()->identity())); |
printf(" --------------------------------------\n"); |
HeapObjectIterator objects(this); |