| 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 HeapAllocator_h | 5 #ifndef HeapAllocator_h |
| 6 #define HeapAllocator_h | 6 #define HeapAllocator_h |
| 7 | 7 |
| 8 #include "platform/heap/Heap.h" | 8 #include "platform/heap/Heap.h" |
| 9 #include "platform/heap/Persistent.h" | 9 #include "platform/heap/Persistent.h" |
| 10 #include "platform/heap/TraceTraits.h" | 10 #include "platform/heap/TraceTraits.h" |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 template <typename VisitorDispatcher> | 165 template <typename VisitorDispatcher> |
| 166 static void registerDelayedMarkNoTracing(VisitorDispatcher visitor, | 166 static void registerDelayedMarkNoTracing(VisitorDispatcher visitor, |
| 167 const void* object) { | 167 const void* object) { |
| 168 visitor->registerDelayedMarkNoTracing(object); | 168 visitor->registerDelayedMarkNoTracing(object); |
| 169 } | 169 } |
| 170 | 170 |
| 171 template <typename VisitorDispatcher> | 171 template <typename VisitorDispatcher> |
| 172 static void registerWeakMembers(VisitorDispatcher visitor, | 172 static void registerWeakMembers(VisitorDispatcher visitor, |
| 173 const void* closure, | 173 const void* closure, |
| 174 const void* object, | |
| 175 WeakCallback callback) { | 174 WeakCallback callback) { |
| 176 visitor->registerWeakMembers(closure, object, callback); | 175 visitor->registerWeakCallback(const_cast<void*>(closure), callback); |
| 177 } | 176 } |
| 178 | 177 |
| 179 template <typename VisitorDispatcher> | 178 template <typename VisitorDispatcher> |
| 180 static void registerWeakTable(VisitorDispatcher visitor, | 179 static void registerWeakTable(VisitorDispatcher visitor, |
| 181 const void* closure, | 180 const void* closure, |
| 182 EphemeronCallback iterationCallback, | 181 EphemeronCallback iterationCallback, |
| 183 EphemeronCallback iterationDoneCallback) { | 182 EphemeronCallback iterationDoneCallback) { |
| 184 visitor->registerWeakTable(closure, iterationCallback, | 183 visitor->registerWeakTable(closure, iterationCallback, |
| 185 iterationDoneCallback); | 184 iterationDoneCallback); |
| 186 } | 185 } |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 const blink::HeapHashCountedSet<Value, HashFunctions, Traits>& set, | 836 const blink::HeapHashCountedSet<Value, HashFunctions, Traits>& set, |
| 838 VectorType& vector) { | 837 VectorType& vector) { |
| 839 copyToVector(static_cast<const HashCountedSet<Value, HashFunctions, Traits, | 838 copyToVector(static_cast<const HashCountedSet<Value, HashFunctions, Traits, |
| 840 blink::HeapAllocator>&>(set), | 839 blink::HeapAllocator>&>(set), |
| 841 vector); | 840 vector); |
| 842 } | 841 } |
| 843 | 842 |
| 844 } // namespace WTF | 843 } // namespace WTF |
| 845 | 844 |
| 846 #endif | 845 #endif |
| OLD | NEW |