| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium 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 InlinedGlobalMarkingVisitor_h | 5 #ifndef InlinedGlobalMarkingVisitor_h |
| 6 #define InlinedGlobalMarkingVisitor_h | 6 #define InlinedGlobalMarkingVisitor_h |
| 7 | 7 |
| 8 #include "platform/heap/MarkingVisitorImpl.h" | 8 #include "platform/heap/MarkingVisitorImpl.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 inline bool canTraceEagerly() const { return m_visitor->canTraceEagerly(); } | 52 inline bool canTraceEagerly() const { return m_visitor->canTraceEagerly(); } |
| 53 inline void incrementTraceDepth() { m_visitor->incrementTraceDepth(); } | 53 inline void incrementTraceDepth() { m_visitor->incrementTraceDepth(); } |
| 54 inline void decrementTraceDepth() { m_visitor->decrementTraceDepth(); } | 54 inline void decrementTraceDepth() { m_visitor->decrementTraceDepth(); } |
| 55 | 55 |
| 56 Visitor* getUninlined() { return m_visitor; } | 56 Visitor* getUninlined() { return m_visitor; } |
| 57 | 57 |
| 58 protected: | 58 protected: |
| 59 // Methods to be called from MarkingVisitorImpl. | 59 // Methods to be called from MarkingVisitorImpl. |
| 60 | 60 |
| 61 inline bool checkSkipForObjectInTerminatingThreadHeap(const void*) | 61 inline bool shouldMarkObject(const void*) |
| 62 { | 62 { |
| 63 // As this is global marking visitor, we need to mark all objects. | 63 // As this is global marking visitor, we need to mark all objects. |
| 64 return false; | 64 return true; |
| 65 } | 65 } |
| 66 | 66 |
| 67 #if ENABLE(GC_PROFILE_MARKING) | 67 #if ENABLE(GC_PROFILE_MARKING) |
| 68 inline void recordObjectGraphEdge(const void* objectPointer) | 68 inline void recordObjectGraphEdge(const void* objectPointer) |
| 69 { | 69 { |
| 70 m_visitor->recordObjectGraphEdge(objectPointer); | 70 m_visitor->recordObjectGraphEdge(objectPointer); |
| 71 } | 71 } |
| 72 #endif | 72 #endif |
| 73 | 73 |
| 74 private: | 74 private: |
| (...skipping 30 matching lines...) Expand all Loading... |
| 105 | 105 |
| 106 inline static void trace(InlinedGlobalMarkingVisitor visitor, T* self) | 106 inline static void trace(InlinedGlobalMarkingVisitor visitor, T* self) |
| 107 { | 107 { |
| 108 self->trace(visitor); | 108 self->trace(visitor); |
| 109 } | 109 } |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 } // namespace blink | 112 } // namespace blink |
| 113 | 113 |
| 114 #endif | 114 #endif |
| OLD | NEW |