| 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 15 matching lines...) Expand all Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |