Revision: 10602
Author:   [email protected]
Date:     Fri Feb  3 06:30:48 2012
Log:      Fix compilation failure introduced by r10601.

Cast intptr_t to int in PrintFs.

[email protected]

Review URL: https://chromiumcodereview.appspot.com/9325028
http://code.google.com/p/v8/source/detail?r=10602

Modified:
 /branches/bleeding_edge/src/mark-compact.cc

=======================================
--- /branches/bleeding_edge/src/mark-compact.cc Fri Feb  3 06:16:40 2012
+++ /branches/bleeding_edge/src/mark-compact.cc Fri Feb  3 06:30:48 2012
@@ -543,7 +543,7 @@
     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 @@
         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

Reply via email to