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

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

Issue 2862533003: [heap] Fix condition for usage of concurrent marking deque. (Closed)
Patch Set: 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/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 #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 14 matching lines...) Expand all
25 class HeapObjectVisitor; 25 class HeapObjectVisitor;
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 34
35 #ifdef V8_CONCURRENT_MARKING 35 #if V8_CONCURRENT_MARKING
36 using MarkingDeque = ConcurrentMarkingDeque; 36 using MarkingDeque = ConcurrentMarkingDeque;
37 #else 37 #else
38 using MarkingDeque = SequentialMarkingDeque; 38 using MarkingDeque = SequentialMarkingDeque;
39 #endif 39 #endif
40 40
41 class ObjectMarking : public AllStatic { 41 class ObjectMarking : public AllStatic {
42 public: 42 public:
43 V8_INLINE static MarkBit MarkBitFrom(HeapObject* obj, 43 V8_INLINE static MarkBit MarkBitFrom(HeapObject* obj,
44 const MarkingState& state) { 44 const MarkingState& state) {
45 const Address address = obj->address(); 45 const Address address = obj->address();
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 ~EvacuationScope() { collector_->set_evacuation(false); } 735 ~EvacuationScope() { collector_->set_evacuation(false); }
736 736
737 private: 737 private:
738 MarkCompactCollector* collector_; 738 MarkCompactCollector* collector_;
739 }; 739 };
740 740
741 } // namespace internal 741 } // namespace internal
742 } // namespace v8 742 } // namespace v8
743 743
744 #endif // V8_HEAP_MARK_COMPACT_H_ 744 #endif // V8_HEAP_MARK_COMPACT_H_
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