| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 Impl::mark(objectPointer, callback); | 43 Impl::mark(objectPointer, callback); |
| 44 } | 44 } |
| 45 | 45 |
| 46 using VisitorHelper<Visitor>::registerWeakMembers; | 46 using VisitorHelper<Visitor>::registerWeakMembers; |
| 47 inline void registerWeakMembers(const void* closure, const void* objectPoint
er, WeakPointerCallback callback) | 47 inline void registerWeakMembers(const void* closure, const void* objectPoint
er, WeakPointerCallback callback) |
| 48 { | 48 { |
| 49 Impl::registerWeakMembers(closure, objectPointer, callback); | 49 Impl::registerWeakMembers(closure, objectPointer, callback); |
| 50 } | 50 } |
| 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(); } | |
| 54 inline void decrementTraceDepth() { m_visitor->decrementTraceDepth(); } | |
| 55 | 53 |
| 56 Visitor* getUninlined() { return m_visitor; } | 54 Visitor* getUninlined() { return m_visitor; } |
| 57 | 55 |
| 58 protected: | 56 protected: |
| 59 // Methods to be called from MarkingVisitorImpl. | 57 // Methods to be called from MarkingVisitorImpl. |
| 60 | 58 |
| 61 inline bool shouldMarkObject(const void*) | 59 inline bool shouldMarkObject(const void*) |
| 62 { | 60 { |
| 63 // As this is global marking visitor, we need to mark all objects. | 61 // As this is global marking visitor, we need to mark all objects. |
| 64 return true; | 62 return true; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 103 |
| 106 inline static void trace(InlinedGlobalMarkingVisitor visitor, T* self) | 104 inline static void trace(InlinedGlobalMarkingVisitor visitor, T* self) |
| 107 { | 105 { |
| 108 self->trace(visitor); | 106 self->trace(visitor); |
| 109 } | 107 } |
| 110 }; | 108 }; |
| 111 | 109 |
| 112 } // namespace blink | 110 } // namespace blink |
| 113 | 111 |
| 114 #endif | 112 #endif |
| OLD | NEW |