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

Side by Side Diff: Source/platform/heap/MarkingVisitorImpl.h

Issue 1149943003: Oilpan: Rename weak callback related methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 | Annotate | Revision Log
OLDNEW
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 MarkingVisitorImpl_h 5 #ifndef MarkingVisitorImpl_h
6 #define MarkingVisitorImpl_h 6 #define MarkingVisitorImpl_h
7 7
8 #include "platform/heap/Heap.h" 8 #include "platform/heap/Heap.h"
9 #include "platform/heap/ThreadState.h" 9 #include "platform/heap/ThreadState.h"
10 #include "platform/heap/Visitor.h" 10 #include "platform/heap/Visitor.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 markHeader(header, header->payload(), callback); 62 markHeader(header, header->payload(), callback);
63 } 63 }
64 64
65 inline void registerDelayedMarkNoTracing(const void* objectPointer) 65 inline void registerDelayedMarkNoTracing(const void* objectPointer)
66 { 66 {
67 Heap::pushPostMarkingCallback(const_cast<void*>(objectPointer), &markNoT racingCallback); 67 Heap::pushPostMarkingCallback(const_cast<void*>(objectPointer), &markNoT racingCallback);
68 } 68 }
69 69
70 inline void registerWeakMembers(const void* closure, const void* objectPoint er, WeakPointerCallback callback) 70 inline void registerWeakMembers(const void* closure, const void* objectPoint er, WeakPointerCallback callback)
71 { 71 {
72 Heap::pushWeakPointerCallback(const_cast<void*>(closure), const_cast<voi d*>(objectPointer), callback); 72 Heap::pushThreadLocalWeakCallback(const_cast<void*>(closure), const_cast <void*>(objectPointer), callback);
73 } 73 }
74 74
75 inline void registerWeakTable(const void* closure, EphemeronCallback iterati onCallback, EphemeronCallback iterationDoneCallback) 75 inline void registerWeakTable(const void* closure, EphemeronCallback iterati onCallback, EphemeronCallback iterationDoneCallback)
76 { 76 {
77 Heap::registerWeakTable(const_cast<void*>(closure), iterationCallback, i terationDoneCallback); 77 Heap::registerWeakTable(const_cast<void*>(closure), iterationCallback, i terationDoneCallback);
78 } 78 }
79 79
80 #if ENABLE(ASSERT) 80 #if ENABLE(ASSERT)
81 inline bool weakTableRegistered(const void* closure) 81 inline bool weakTableRegistered(const void* closure)
82 { 82 {
(...skipping 29 matching lines...) Expand all
112 } 112 }
113 113
114 Derived* toDerived() 114 Derived* toDerived()
115 { 115 {
116 return static_cast<Derived*>(this); 116 return static_cast<Derived*>(this);
117 } 117 }
118 118
119 protected: 119 protected:
120 inline void registerWeakCellWithCallback(void** cell, WeakPointerCallback ca llback) 120 inline void registerWeakCellWithCallback(void** cell, WeakPointerCallback ca llback)
121 { 121 {
122 Heap::pushWeakCellPointerCallback(cell, callback); 122 Heap::pushGlobalWeakCallback(cell, callback);
123 } 123 }
124 124
125 private: 125 private:
126 static void markNoTracingCallback(Visitor* visitor, void* object) 126 static void markNoTracingCallback(Visitor* visitor, void* object)
127 { 127 {
128 visitor->markNoTracing(object); 128 visitor->markNoTracing(object);
129 } 129 }
130 }; 130 };
131 131
132 } // namespace blink 132 } // namespace blink
133 133
134 #endif 134 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698