Fixed operator precedence bug in heap stat recording.

Review URL: http://codereview.chromium.org/465055


git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3426 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 7a3a043e
...@@ -436,15 +436,15 @@ void GlobalHandles::RecordStats(HeapStats* stats) { ...@@ -436,15 +436,15 @@ void GlobalHandles::RecordStats(HeapStats* stats) {
*stats->near_death_global_handle_count = 0; *stats->near_death_global_handle_count = 0;
*stats->destroyed_global_handle_count = 0; *stats->destroyed_global_handle_count = 0;
for (Node* current = head_; current != NULL; current = current->next()) { for (Node* current = head_; current != NULL; current = current->next()) {
*stats->global_handle_count++; *stats->global_handle_count += 1;
if (current->state_ == Node::WEAK) { if (current->state_ == Node::WEAK) {
*stats->weak_global_handle_count++; *stats->weak_global_handle_count += 1;
} else if (current->state_ == Node::PENDING) { } else if (current->state_ == Node::PENDING) {
*stats->pending_global_handle_count++; *stats->pending_global_handle_count += 1;
} else if (current->state_ == Node::NEAR_DEATH) { } else if (current->state_ == Node::NEAR_DEATH) {
*stats->near_death_global_handle_count++; *stats->near_death_global_handle_count += 1;
} else if (current->state_ == Node::DESTROYED) { } else if (current->state_ == Node::DESTROYED) {
*stats->destroyed_global_handle_count++; *stats->destroyed_global_handle_count += 1;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment