| 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 11 matching lines...) Expand all Loading... |
| 22 ASSERT(visitor->isGlobalMarkingVisitor()); | 22 ASSERT(visitor->isGlobalMarkingVisitor()); |
| 23 } | 23 } |
| 24 | 24 |
| 25 // Hack to unify interface to visitor->trace(). | 25 // Hack to unify interface to visitor->trace(). |
| 26 // Without this hack, we need to use visitor.trace() for | 26 // Without this hack, we need to use visitor.trace() for |
| 27 // trace(InlinedGlobalMarkingVisitor) and visitor->trace() for trace(Visitor
*). | 27 // trace(InlinedGlobalMarkingVisitor) and visitor->trace() for trace(Visitor
*). |
| 28 InlinedGlobalMarkingVisitor* operator->() { return this; } | 28 InlinedGlobalMarkingVisitor* operator->() { return this; } |
| 29 | 29 |
| 30 using Impl::mark; | 30 using Impl::mark; |
| 31 using Impl::ensureMarked; | 31 using Impl::ensureMarked; |
| 32 using Impl::isMarked; | |
| 33 using Impl::registerDelayedMarkNoTracing; | 32 using Impl::registerDelayedMarkNoTracing; |
| 34 using Impl::registerWeakTable; | 33 using Impl::registerWeakTable; |
| 35 using Impl::registerWeakMembers; | 34 using Impl::registerWeakMembers; |
| 36 #if ENABLE(ASSERT) | 35 #if ENABLE(ASSERT) |
| 37 using Impl::weakTableRegistered; | 36 using Impl::weakTableRegistered; |
| 38 #endif | 37 #endif |
| 39 | 38 |
| 40 template<typename T> | 39 template<typename T> |
| 41 void mark(T* t) | 40 void mark(T* t) |
| 42 { | 41 { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 Visitor* m_visitor; | 78 Visitor* m_visitor; |
| 80 }; | 79 }; |
| 81 | 80 |
| 82 inline void GarbageCollectedMixin::trace(InlinedGlobalMarkingVisitor) | 81 inline void GarbageCollectedMixin::trace(InlinedGlobalMarkingVisitor) |
| 83 { | 82 { |
| 84 } | 83 } |
| 85 | 84 |
| 86 } // namespace blink | 85 } // namespace blink |
| 87 | 86 |
| 88 #endif | 87 #endif |
| OLD | NEW |