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/gc-tracer.h

Issue 2292073002: [heap] GCTracer: Account for sweeping during incremental marking (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | src/heap/gc-tracer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_HEAP_GC_TRACER_H_ 5 #ifndef V8_HEAP_GC_TRACER_H_
6 #define V8_HEAP_GC_TRACER_H_ 6 #define V8_HEAP_GC_TRACER_H_
7 7
8 #include "src/base/compiler-specific.h" 8 #include "src/base/compiler-specific.h"
9 #include "src/base/platform/platform.h" 9 #include "src/base/platform/platform.h"
10 #include "src/counters.h" 10 #include "src/counters.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 inline BytesAndDuration MakeBytesAndDuration(uint64_t bytes, double duration) { 57 inline BytesAndDuration MakeBytesAndDuration(uint64_t bytes, double duration) {
58 return std::make_pair(bytes, duration); 58 return std::make_pair(bytes, duration);
59 } 59 }
60 60
61 enum ScavengeSpeedMode { kForAllObjects, kForSurvivedObjects }; 61 enum ScavengeSpeedMode { kForAllObjects, kForSurvivedObjects };
62 62
63 #define INCREMENTAL_SCOPES(F) \ 63 #define INCREMENTAL_SCOPES(F) \
64 /* MC_INCREMENTAL is the top-level incremental marking scope. */ \ 64 /* MC_INCREMENTAL is the top-level incremental marking scope. */ \
65 F(MC_INCREMENTAL) \ 65 F(MC_INCREMENTAL) \
66 F(MC_INCREMENTAL_SWEEPING) \
66 F(MC_INCREMENTAL_WRAPPER_PROLOGUE) \ 67 F(MC_INCREMENTAL_WRAPPER_PROLOGUE) \
67 F(MC_INCREMENTAL_WRAPPER_TRACING) \ 68 F(MC_INCREMENTAL_WRAPPER_TRACING) \
68 F(MC_INCREMENTAL_FINALIZE) \ 69 F(MC_INCREMENTAL_FINALIZE) \
69 F(MC_INCREMENTAL_FINALIZE_BODY) \ 70 F(MC_INCREMENTAL_FINALIZE_BODY) \
70 F(MC_INCREMENTAL_FINALIZE_OBJECT_GROUPING) \ 71 F(MC_INCREMENTAL_FINALIZE_OBJECT_GROUPING) \
71 F(MC_INCREMENTAL_EXTERNAL_EPILOGUE) \ 72 F(MC_INCREMENTAL_EXTERNAL_EPILOGUE) \
72 F(MC_INCREMENTAL_EXTERNAL_PROLOGUE) 73 F(MC_INCREMENTAL_EXTERNAL_PROLOGUE)
73 74
74 #define TRACER_SCOPES(F) \ 75 #define TRACER_SCOPES(F) \
75 INCREMENTAL_SCOPES(F) \ 76 INCREMENTAL_SCOPES(F) \
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 RingBuffer<BytesAndDuration> recorded_old_generation_allocations_; 505 RingBuffer<BytesAndDuration> recorded_old_generation_allocations_;
505 RingBuffer<double> recorded_context_disposal_times_; 506 RingBuffer<double> recorded_context_disposal_times_;
506 RingBuffer<double> recorded_survival_ratios_; 507 RingBuffer<double> recorded_survival_ratios_;
507 508
508 DISALLOW_COPY_AND_ASSIGN(GCTracer); 509 DISALLOW_COPY_AND_ASSIGN(GCTracer);
509 }; 510 };
510 } // namespace internal 511 } // namespace internal
511 } // namespace v8 512 } // namespace v8
512 513
513 #endif // V8_HEAP_GC_TRACER_H_ 514 #endif // V8_HEAP_GC_TRACER_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/gc-tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698