| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 using Helper::registerWeakMembers; | 47 using Helper::registerWeakMembers; |
| 48 inline void registerWeakMembers(const void* closure, const void* objectPoint
er, WeakPointerCallback callback) | 48 inline void registerWeakMembers(const void* closure, const void* objectPoint
er, WeakPointerCallback callback) |
| 49 { | 49 { |
| 50 Impl::registerWeakMembers(closure, objectPointer, callback); | 50 Impl::registerWeakMembers(closure, objectPointer, callback); |
| 51 } | 51 } |
| 52 | 52 |
| 53 using Impl::ensureMarked; | 53 using Impl::ensureMarked; |
| 54 | 54 |
| 55 inline bool canTraceEagerly() const { return m_visitor->canTraceEagerly(); } | 55 inline bool canTraceEagerly() const { return m_visitor->canTraceEagerly(); } |
| 56 inline void incrementTraceDepth() { m_visitor->incrementTraceDepth(); } |
| 57 inline void decrementTraceDepth() { m_visitor->decrementTraceDepth(); } |
| 56 | 58 |
| 57 Visitor* getUninlined() { return m_visitor; } | 59 Visitor* getUninlined() { return m_visitor; } |
| 58 | 60 |
| 59 protected: | 61 protected: |
| 60 // Methods to be called from MarkingVisitorImpl. | 62 // Methods to be called from MarkingVisitorImpl. |
| 61 | 63 |
| 62 inline bool shouldMarkObject(const void*) | 64 inline bool shouldMarkObject(const void*) |
| 63 { | 65 { |
| 64 // As this is global marking visitor, we need to mark all objects. | 66 // As this is global marking visitor, we need to mark all objects. |
| 65 return true; | 67 return true; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 113 |
| 112 inline static void trace(InlinedGlobalMarkingVisitor visitor, T* self) | 114 inline static void trace(InlinedGlobalMarkingVisitor visitor, T* self) |
| 113 { | 115 { |
| 114 self->trace(visitor); | 116 self->trace(visitor); |
| 115 } | 117 } |
| 116 }; | 118 }; |
| 117 | 119 |
| 118 } // namespace blink | 120 } // namespace blink |
| 119 | 121 |
| 120 #endif | 122 #endif |
| OLD | NEW |