Index: src/mark-compact.h |
diff --git a/src/mark-compact.h b/src/mark-compact.h |
index 0f19d2c86298d414aa157d67eeaa97789a49b8ba..374981c058c9efeea8aa21c424c427b93d0a20f4 100644 |
--- a/src/mark-compact.h |
+++ b/src/mark-compact.h |
@@ -403,33 +403,6 @@ class SlotsBuffer { |
}; |
-// ------------------------------------------------------------------------- |
-// Marker shared between incremental and non-incremental marking |
-template<class BaseMarker> class Marker { |
- public: |
- Marker(BaseMarker* base_marker, MarkCompactCollector* mark_compact_collector) |
- : base_marker_(base_marker), |
- mark_compact_collector_(mark_compact_collector) {} |
- |
- // Mark pointers in a Map and its DescriptorArray together, possibly |
- // treating transitions or back pointers weak. |
- void MarkMapContents(Map* map); |
- void MarkTransitionArray(TransitionArray* transitions); |
- |
- private: |
- BaseMarker* base_marker() { |
- return base_marker_; |
- } |
- |
- MarkCompactCollector* mark_compact_collector() { |
- return mark_compact_collector_; |
- } |
- |
- BaseMarker* base_marker_; |
- MarkCompactCollector* mark_compact_collector_; |
-}; |
- |
- |
// Defined in isolate.h. |
class ThreadLocalTop; |
@@ -656,8 +629,6 @@ class MarkCompactCollector { |
friend class MarkCompactMarkingVisitor; |
friend class CodeMarkingVisitor; |
friend class SharedFunctionInfoMarkingVisitor; |
- friend class Marker<IncrementalMarking>; |
- friend class Marker<MarkCompactCollector>; |
// Mark non-optimize code for functions inlined into the given optimized |
// code. This will prevent it from being flushed. |
@@ -675,25 +646,13 @@ class MarkCompactCollector { |
void AfterMarking(); |
// Marks the object black and pushes it on the marking stack. |
- // Returns true if object needed marking and false otherwise. |
- // This is for non-incremental marking only. |
- INLINE(bool MarkObjectAndPush(HeapObject* obj)); |
- |
- // Marks the object black and pushes it on the marking stack. |
// This is for non-incremental marking only. |
INLINE(void MarkObject(HeapObject* obj, MarkBit mark_bit)); |
- // Marks the object black without pushing it on the marking stack. |
- // Returns true if object needed marking and false otherwise. |
- // This is for non-incremental marking only. |
- INLINE(bool MarkObjectWithoutPush(HeapObject* obj)); |
- |
// Marks the object black assuming that it is not yet marked. |
// This is for non-incremental marking only. |
INLINE(void SetMark(HeapObject* obj, MarkBit mark_bit)); |
- void ProcessNewlyMarkedObject(HeapObject* obj); |
- |
// Mark the heap roots and all objects reachable from them. |
void MarkRoots(RootMarkingVisitor* visitor); |
@@ -796,7 +755,6 @@ class MarkCompactCollector { |
MarkingDeque marking_deque_; |
CodeFlusher* code_flusher_; |
Object* encountered_weak_maps_; |
- Marker<MarkCompactCollector> marker_; |
List<Page*> evacuation_candidates_; |
List<Code*> invalidated_code_; |