Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/WebKit/Source/platform/heap/MarkingVisitor.h

Issue 2642933005: Have VisitorHelper<> handle moving object registration. (Closed)
Patch Set: msvc compile fix Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapTest.cpp ('k') | third_party/WebKit/Source/platform/heap/MarkingVisitorImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698