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

Side by Side Diff: src/heap/mark-compact.cc

Issue 1094613002: Add a flag to trace heap object stats on GC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « src/heap/heap.cc ('k') | 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/base/atomicops.h" 7 #include "src/base/atomicops.h"
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/compilation-cache.h" 10 #include "src/compilation-cache.h"
(...skipping 2367 matching lines...) Expand 10 before | Expand all | Expand 10 after
2378 if (is_code_flushing_enabled()) { 2378 if (is_code_flushing_enabled()) {
2379 code_flusher_->ProcessCandidates(); 2379 code_flusher_->ProcessCandidates();
2380 // If incremental marker does not support code flushing, we need to 2380 // If incremental marker does not support code flushing, we need to
2381 // disable it before incremental marking steps for next cycle. 2381 // disable it before incremental marking steps for next cycle.
2382 if (FLAG_flush_code && !FLAG_flush_code_incrementally) { 2382 if (FLAG_flush_code && !FLAG_flush_code_incrementally) {
2383 EnableCodeFlushing(false); 2383 EnableCodeFlushing(false);
2384 } 2384 }
2385 } 2385 }
2386 2386
2387 if (FLAG_track_gc_object_stats) { 2387 if (FLAG_track_gc_object_stats) {
2388 if (FLAG_trace_gc_object_stats) {
2389 heap()->TraceObjectStats();
2390 }
2388 heap()->CheckpointObjectStats(); 2391 heap()->CheckpointObjectStats();
2389 } 2392 }
2390 } 2393 }
2391 2394
2392 2395
2393 void MarkCompactCollector::ClearNonLiveReferences() { 2396 void MarkCompactCollector::ClearNonLiveReferences() {
2394 // Iterate over the map space, setting map transitions that go from 2397 // Iterate over the map space, setting map transitions that go from
2395 // a marked map to an unmarked map to null transitions. This action 2398 // a marked map to an unmarked map to null transitions. This action
2396 // is carried out only on maps of JSObjects and related subtypes. 2399 // is carried out only on maps of JSObjects and related subtypes.
2397 HeapObjectIterator map_iterator(heap()->map_space()); 2400 HeapObjectIterator map_iterator(heap()->map_space());
(...skipping 2342 matching lines...) Expand 10 before | Expand all | Expand 10 after
4740 SlotsBuffer* buffer = *buffer_address; 4743 SlotsBuffer* buffer = *buffer_address;
4741 while (buffer != NULL) { 4744 while (buffer != NULL) {
4742 SlotsBuffer* next_buffer = buffer->next(); 4745 SlotsBuffer* next_buffer = buffer->next();
4743 DeallocateBuffer(buffer); 4746 DeallocateBuffer(buffer);
4744 buffer = next_buffer; 4747 buffer = next_buffer;
4745 } 4748 }
4746 *buffer_address = NULL; 4749 *buffer_address = NULL;
4747 } 4750 }
4748 } 4751 }
4749 } // namespace v8::internal 4752 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698