Revision: 12085
Author:   [email protected]
Date:     Mon Jul 16 02:39:52 2012
Log:      Fix Win64 build breakage in r12082.

[email protected]

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

Modified:
 /branches/bleeding_edge/src/heap.cc

=======================================
--- /branches/bleeding_edge/src/heap.cc Fri Jul 13 05:22:09 2012
+++ /branches/bleeding_edge/src/heap.cc Mon Jul 16 02:39:52 2012
@@ -7216,17 +7216,19 @@
 void Heap::CheckpointObjectStats() {
   ScopedLock lock(checkpoint_object_stats_mutex.Pointer());
   Counters* counters = isolate()->counters();
-#define ADJUST_LAST_TIME_OBJECT_COUNT(name) \
-  counters->count_of_##name()->Increment(object_counts_[name]); \
-  counters->count_of_##name()->Decrement(object_counts_last_time_[name]); \
-  counters->size_of_##name()->Increment(object_sizes_[name]); \
-  counters->size_of_##name()->Decrement(object_sizes_last_time_[name]);
+#define ADJUST_LAST_TIME_OBJECT_COUNT(name) \ + counters->count_of_##name()->Increment( \ + static_cast<int>(object_counts_[name])); \ + counters->count_of_##name()->Decrement( \ + static_cast<int>(object_counts_last_time_[name])); \ + counters->size_of_##name()->Increment( \ + static_cast<int>(object_sizes_[name])); \ + counters->size_of_##name()->Decrement( \
+      static_cast<int>(object_sizes_last_time_[name]));
   INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT)
 #undef ADJUST_LAST_TIME_OBJECT_COUNT
-  memcpy(object_counts_last_time_, object_counts_,
-         sizeof(object_counts_));
-  memcpy(object_sizes_last_time_, object_sizes_,
-         sizeof(object_sizes_));
+  memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
+  memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
   ClearObjectStats();
 }

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to