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

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

Issue 2888093003: [heap] Add GN flag for enabling concurrent marking. (Closed)
Patch Set: infer runtime flag from compile time flag Created 3 years, 7 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/incremental-marking.cc ('k') | src/objects-inl.h » ('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 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 #ifndef V8_HEAP_MARK_COMPACT_H_ 5 #ifndef V8_HEAP_MARK_COMPACT_H_
6 #define V8_HEAP_MARK_COMPACT_H_ 6 #define V8_HEAP_MARK_COMPACT_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 15 matching lines...) Expand all
26 class MarkCompactCollector; 26 class MarkCompactCollector;
27 class MinorMarkCompactCollector; 27 class MinorMarkCompactCollector;
28 class MarkingVisitor; 28 class MarkingVisitor;
29 class MigrationObserver; 29 class MigrationObserver;
30 template <typename JobTraits> 30 template <typename JobTraits>
31 class PageParallelJob; 31 class PageParallelJob;
32 class RecordMigratedSlotVisitor; 32 class RecordMigratedSlotVisitor;
33 class ThreadLocalTop; 33 class ThreadLocalTop;
34 class YoungGenerationMarkingVisitor; 34 class YoungGenerationMarkingVisitor;
35 35
36 #if V8_CONCURRENT_MARKING 36 #ifdef V8_CONCURRENT_MARKING
37 using MarkingDeque = ConcurrentMarkingDeque; 37 using MarkingDeque = ConcurrentMarkingDeque;
38 #else 38 #else
39 using MarkingDeque = SequentialMarkingDeque; 39 using MarkingDeque = SequentialMarkingDeque;
40 #endif 40 #endif
41 41
42 class ObjectMarking : public AllStatic { 42 class ObjectMarking : public AllStatic {
43 public: 43 public:
44 V8_INLINE static MarkBit MarkBitFrom(HeapObject* obj, 44 V8_INLINE static MarkBit MarkBitFrom(HeapObject* obj,
45 const MarkingState& state) { 45 const MarkingState& state) {
46 const Address address = obj->address(); 46 const Address address = obj->address();
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 ~EvacuationScope() { collector_->set_evacuation(false); } 776 ~EvacuationScope() { collector_->set_evacuation(false); }
777 777
778 private: 778 private:
779 MarkCompactCollector* collector_; 779 MarkCompactCollector* collector_;
780 }; 780 };
781 781
782 } // namespace internal 782 } // namespace internal
783 } // namespace v8 783 } // namespace v8
784 784
785 #endif // V8_HEAP_MARK_COMPACT_H_ 785 #endif // V8_HEAP_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/heap/incremental-marking.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698