Fix Win64 build breakage in r12082.
R=danno@chromium.org Review URL: https://chromiumcodereview.appspot.com/10704224 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12085 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
b1530257ab
commit
7337068605
20
src/heap.cc
20
src/heap.cc
@ -7216,17 +7216,19 @@ static LazyMutex checkpoint_object_stats_mutex = LAZY_MUTEX_INITIALIZER;
|
|||||||
void Heap::CheckpointObjectStats() {
|
void Heap::CheckpointObjectStats() {
|
||||||
ScopedLock lock(checkpoint_object_stats_mutex.Pointer());
|
ScopedLock lock(checkpoint_object_stats_mutex.Pointer());
|
||||||
Counters* counters = isolate()->counters();
|
Counters* counters = isolate()->counters();
|
||||||
#define ADJUST_LAST_TIME_OBJECT_COUNT(name) \
|
#define ADJUST_LAST_TIME_OBJECT_COUNT(name) \
|
||||||
counters->count_of_##name()->Increment(object_counts_[name]); \
|
counters->count_of_##name()->Increment( \
|
||||||
counters->count_of_##name()->Decrement(object_counts_last_time_[name]); \
|
static_cast<int>(object_counts_[name])); \
|
||||||
counters->size_of_##name()->Increment(object_sizes_[name]); \
|
counters->count_of_##name()->Decrement( \
|
||||||
counters->size_of_##name()->Decrement(object_sizes_last_time_[name]);
|
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)
|
INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT)
|
||||||
#undef ADJUST_LAST_TIME_OBJECT_COUNT
|
#undef ADJUST_LAST_TIME_OBJECT_COUNT
|
||||||
memcpy(object_counts_last_time_, object_counts_,
|
memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
|
||||||
sizeof(object_counts_));
|
memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
|
||||||
memcpy(object_sizes_last_time_, object_sizes_,
|
|
||||||
sizeof(object_sizes_));
|
|
||||||
ClearObjectStats();
|
ClearObjectStats();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user