OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |