Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Unified Diff: src/heap/mark-compact.cc

Issue 2001073002: [build] Fix a clang warning (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/heap/mark-compact.cc
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc
index 15a532e8d075a69df21eb5b5deb6219343a06597..7a4e2f2d03af344b27294e13720bf99cd0664d68 100644
--- a/src/heap/mark-compact.cc
+++ b/src/heap/mark-compact.cc
@@ -3109,7 +3109,8 @@ bool MarkCompactCollector::Evacuator::EvacuateSinglePage(Page* p,
PrintIsolate(heap()->isolate(),
"evacuation[%p]: page=%p new_space=%d age_mark_tag=%c "
"page_evacuation=%d executable=%d live_bytes=%d time=%f\n",
- this, p, p->InNewSpace(), age_mark_tag,
+ static_cast<void*>(this), static_cast<void*>(p),
+ p->InNewSpace(), age_mark_tag,
p->IsFlagSet(MemoryChunk::PAGE_NEW_OLD_PROMOTION),
p->IsFlagSet(MemoryChunk::IS_EXECUTABLE), saved_live_bytes,
evacuation_time);
@@ -3853,7 +3854,8 @@ void MarkCompactCollector::StartSweepSpace(PagedSpace* space) {
if (p->LiveBytes() == 0) {
if (unused_page_present) {
if (FLAG_gc_verbose) {
- PrintIsolate(isolate(), "sweeping: released page: %p", p);
+ PrintIsolate(isolate(), "sweeping: released page: %p",
+ static_cast<void*>(p));
}
space->ReleasePage(p);
continue;
« no previous file with comments | « src/global-handles.cc ('k') | src/heap/spaces.cc » ('j') | test/cctest/test-disasm-mips64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698