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 29 matching lines...) Expand all Loading... |
40 EphemeronCallback iterationDoneCallback) { | 40 EphemeronCallback iterationDoneCallback) { |
41 Impl::registerWeakTable(closure, iterationCallback, iterationDoneCallback); | 41 Impl::registerWeakTable(closure, iterationCallback, iterationDoneCallback); |
42 } | 42 } |
43 | 43 |
44 #if DCHECK_IS_ON() | 44 #if DCHECK_IS_ON() |
45 virtual bool weakTableRegistered(const void* closure) { | 45 virtual bool weakTableRegistered(const void* closure) { |
46 return Impl::weakTableRegistered(closure); | 46 return Impl::weakTableRegistered(closure); |
47 } | 47 } |
48 #endif | 48 #endif |
49 | 49 |
50 void registerMovingObjectReference(MovableReference* slot) override { | |
51 Impl::registerMovingObjectReference(slot); | |
52 } | |
53 | |
54 void registerMovingObjectCallback(MovableReference backingStore, | |
55 MovingObjectCallback callback, | |
56 void* callbackData) override { | |
57 Impl::registerMovingObjectCallback(backingStore, callback, callbackData); | |
58 } | |
59 | |
60 bool ensureMarked(const void* objectPointer) override { | 50 bool ensureMarked(const void* objectPointer) override { |
61 return Impl::ensureMarked(objectPointer); | 51 return Impl::ensureMarked(objectPointer); |
62 } | 52 } |
63 | 53 |
64 void registerWeakCellWithCallback(void** cell, | 54 void registerWeakCellWithCallback(void** cell, |
65 WeakCallback callback) override { | 55 WeakCallback callback) override { |
66 Impl::registerWeakCellWithCallback(cell, callback); | 56 Impl::registerWeakCellWithCallback(cell, callback); |
67 } | 57 } |
68 }; | 58 }; |
69 | 59 |
70 } // namespace blink | 60 } // namespace blink |
71 | 61 |
72 #endif | 62 #endif |
OLD | NEW |