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

Unified Diff: src/heap/spaces-inl.h

Issue 2001073002: [build] Fix a clang warning (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase 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
« no previous file with comments | « src/heap/spaces.cc ('k') | src/ia32/disasm-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/spaces-inl.h
diff --git a/src/heap/spaces-inl.h b/src/heap/spaces-inl.h
index 51bad4495f8b02df58be3f0547ce44f52c773b3e..7ccfcd648fe26beab983f88601adeeec8dacf199 100644
--- a/src/heap/spaces-inl.h
+++ b/src/heap/spaces-inl.h
@@ -311,8 +311,8 @@ void MemoryChunk::IncrementLiveBytesFromGC(HeapObject* object, int by) {
void MemoryChunk::ResetLiveBytes() {
if (FLAG_trace_live_bytes) {
- PrintIsolate(heap()->isolate(), "live-bytes: reset page=%p %d->0\n", this,
- live_byte_count_);
+ PrintIsolate(heap()->isolate(), "live-bytes: reset page=%p %d->0\n",
+ static_cast<void*>(this), live_byte_count_);
}
live_byte_count_ = 0;
}
@@ -320,9 +320,9 @@ void MemoryChunk::ResetLiveBytes() {
void MemoryChunk::IncrementLiveBytes(int by) {
if (IsFlagSet(BLACK_PAGE)) return;
if (FLAG_trace_live_bytes) {
- PrintIsolate(heap()->isolate(),
- "live-bytes: update page=%p delta=%d %d->%d\n", this, by,
- live_byte_count_, live_byte_count_ + by);
+ PrintIsolate(
+ heap()->isolate(), "live-bytes: update page=%p delta=%d %d->%d\n",
+ static_cast<void*>(this), by, live_byte_count_, live_byte_count_ + by);
}
live_byte_count_ += by;
DCHECK_GE(live_byte_count_, 0);
« no previous file with comments | « src/heap/spaces.cc ('k') | src/ia32/disasm-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698