Reviewers: Erik Corry,
Description:
Fix compilation failure introduced by r10601.
Cast intptr_t to int in PrintFs.
[email protected]
Please review this at https://chromiumcodereview.appspot.com/9325028/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/mark-compact.cc
Index: src/mark-compact.cc
diff --git a/src/mark-compact.cc b/src/mark-compact.cc
index
124e43907daa4fe21678c51e81f2072f13147978..ac2465e35c3a98d8a26c0d4f0b4269c9cdec5d91
100644
--- a/src/mark-compact.cc
+++ b/src/mark-compact.cc
@@ -543,7 +543,7 @@ void
MarkCompactCollector::CollectEvacuationCandidates(PagedSpace* space) {
if (FLAG_trace_fragmentation) {
PrintF("Estimated over reserved memory: %.1f MB (setting
threshold %d)\n",
static_cast<double>(over_reserved) / MB,
- kFreenessThreshold);
+ static_cast<int>(kFreenessThreshold));
}
}
@@ -596,7 +596,7 @@ void
MarkCompactCollector::CollectEvacuationCandidates(PagedSpace* space) {
PrintF("%p [%s]: %d (%.2f%%) free %s\n",
reinterpret_cast<void*>(p),
AllocationSpaceName(space->identity()),
- free_bytes,
+ static_cast<int>(free_bytes),
static_cast<double>(free_bytes * 100) /
Page::kObjectAreaSize,
(fragmentation > 0) ? "[fragmented]" : "");
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev