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

Side by Side Diff: src/heap.cc

Issue 10704224: Fix Win64 build breakage in r12082. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 7198 matching lines...) Expand 10 before | Expand all | Expand 10 after
7209 } 7209 }
7210 } 7210 }
7211 7211
7212 7212
7213 static LazyMutex checkpoint_object_stats_mutex = LAZY_MUTEX_INITIALIZER; 7213 static LazyMutex checkpoint_object_stats_mutex = LAZY_MUTEX_INITIALIZER;
7214 7214
7215 7215
7216 void Heap::CheckpointObjectStats() { 7216 void Heap::CheckpointObjectStats() {
7217 ScopedLock lock(checkpoint_object_stats_mutex.Pointer()); 7217 ScopedLock lock(checkpoint_object_stats_mutex.Pointer());
7218 Counters* counters = isolate()->counters(); 7218 Counters* counters = isolate()->counters();
7219 #define ADJUST_LAST_TIME_OBJECT_COUNT(name) \ 7219 #define ADJUST_LAST_TIME_OBJECT_COUNT(name) \
7220 counters->count_of_##name()->Increment(object_counts_[name]); \ 7220 counters->count_of_##name()->Increment( \
7221 counters->count_of_##name()->Decrement(object_counts_last_time_[name]); \ 7221 static_cast<int>(object_counts_[name])); \
7222 counters->size_of_##name()->Increment(object_sizes_[name]); \ 7222 counters->count_of_##name()->Decrement( \
7223 counters->size_of_##name()->Decrement(object_sizes_last_time_[name]); 7223 static_cast<int>(object_counts_last_time_[name])); \
7224 counters->size_of_##name()->Increment( \
7225 static_cast<int>(object_sizes_[name])); \
7226 counters->size_of_##name()->Decrement( \
7227 static_cast<int>(object_sizes_last_time_[name]));
7224 INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT) 7228 INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT)
7225 #undef ADJUST_LAST_TIME_OBJECT_COUNT 7229 #undef ADJUST_LAST_TIME_OBJECT_COUNT
7226 memcpy(object_counts_last_time_, object_counts_, 7230 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
7227 sizeof(object_counts_)); 7231 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
7228 memcpy(object_sizes_last_time_, object_sizes_,
7229 sizeof(object_sizes_));
7230 ClearObjectStats(); 7232 ClearObjectStats();
7231 } 7233 }
7232 7234
7233 } } // namespace v8::internal 7235 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698