| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 MarkingVisitor_h | 5 #ifndef MarkingVisitor_h |
| 6 #define MarkingVisitor_h | 6 #define MarkingVisitor_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 Impl::registerWeakTable(closure, iterationCallback, iterationDoneCallbac
k); | 51 Impl::registerWeakTable(closure, iterationCallback, iterationDoneCallbac
k); |
| 52 } | 52 } |
| 53 | 53 |
| 54 #if ENABLE(ASSERT) | 54 #if ENABLE(ASSERT) |
| 55 virtual bool weakTableRegistered(const void* closure) | 55 virtual bool weakTableRegistered(const void* closure) |
| 56 { | 56 { |
| 57 return Impl::weakTableRegistered(closure); | 57 return Impl::weakTableRegistered(closure); |
| 58 } | 58 } |
| 59 #endif | 59 #endif |
| 60 | 60 |
| 61 virtual bool isMarked(const void* objectPointer) override | |
| 62 { | |
| 63 return Impl::isMarked(objectPointer); | |
| 64 } | |
| 65 | |
| 66 virtual bool ensureMarked(const void* objectPointer) override | 61 virtual bool ensureMarked(const void* objectPointer) override |
| 67 { | 62 { |
| 68 return Impl::ensureMarked(objectPointer); | 63 return Impl::ensureMarked(objectPointer); |
| 69 } | 64 } |
| 70 | 65 |
| 71 #if ENABLE(GC_PROFILING) | 66 #if ENABLE(GC_PROFILING) |
| 72 virtual void recordObjectGraphEdge(const void* objectPointer) override | 67 virtual void recordObjectGraphEdge(const void* objectPointer) override |
| 73 { | 68 { |
| 74 MutexLocker locker(objectGraphMutex()); | 69 MutexLocker locker(objectGraphMutex()); |
| 75 String className(classOf(objectPointer)); | 70 String className(classOf(objectPointer)); |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 virtual void checkMarkingAllowed() override | 195 virtual void checkMarkingAllowed() override |
| 201 { | 196 { |
| 202 ASSERT(ThreadState::current()->isInGC()); | 197 ASSERT(ThreadState::current()->isInGC()); |
| 203 } | 198 } |
| 204 #endif | 199 #endif |
| 205 }; | 200 }; |
| 206 | 201 |
| 207 } // namespace blink | 202 } // namespace blink |
| 208 | 203 |
| 209 #endif | 204 #endif |
| OLD | NEW |