| 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/TraceTraits.h" | 9 #include "platform/heap/TraceTraits.h" |
| 10 #include "wtf/Assertions.h" | 10 #include "wtf/Assertions.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 TraceCollectionIfEnabled<WTF::ShouldBeTraced<Traits>::value, Traits::wea
kHandlingFlag, WTF::WeakPointersActWeak, T, Traits>::trace(visitor, t); | 128 TraceCollectionIfEnabled<WTF::ShouldBeTraced<Traits>::value, Traits::wea
kHandlingFlag, WTF::WeakPointersActWeak, T, Traits>::trace(visitor, t); |
| 129 } | 129 } |
| 130 | 130 |
| 131 template<typename VisitorDispatcher> | 131 template<typename VisitorDispatcher> |
| 132 static void registerDelayedMarkNoTracing(VisitorDispatcher visitor, const vo
id* object) | 132 static void registerDelayedMarkNoTracing(VisitorDispatcher visitor, const vo
id* object) |
| 133 { | 133 { |
| 134 visitor->registerDelayedMarkNoTracing(object); | 134 visitor->registerDelayedMarkNoTracing(object); |
| 135 } | 135 } |
| 136 | 136 |
| 137 template<typename VisitorDispatcher> | 137 template<typename VisitorDispatcher> |
| 138 static void registerWeakMembers(VisitorDispatcher visitor, const void* closu
re, const void* object, WeakPointerCallback callback) | 138 static void registerWeakMembers(VisitorDispatcher visitor, const void* closu
re, const void* object, WeakCallback callback) |
| 139 { | 139 { |
| 140 visitor->registerWeakMembers(closure, object, callback); | 140 visitor->registerWeakMembers(closure, object, callback); |
| 141 } | 141 } |
| 142 | 142 |
| 143 template<typename VisitorDispatcher> | 143 template<typename VisitorDispatcher> |
| 144 static void registerWeakTable(VisitorDispatcher visitor, const void* closure
, EphemeronCallback iterationCallback, EphemeronCallback iterationDoneCallback) | 144 static void registerWeakTable(VisitorDispatcher visitor, const void* closure
, EphemeronCallback iterationCallback, EphemeronCallback iterationDoneCallback) |
| 145 { | 145 { |
| 146 visitor->registerWeakTable(closure, iterationCallback, iterationDoneCall
back); | 146 visitor->registerWeakTable(closure, iterationCallback, iterationDoneCall
back); |
| 147 } | 147 } |
| 148 | 148 |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 template<typename T, size_t i, typename U> | 449 template<typename T, size_t i, typename U> |
| 450 inline void swap(HeapListHashSet<T, i, U>& a, HeapListHashSet<T, i, U>& b) { a.s
wap(b); } | 450 inline void swap(HeapListHashSet<T, i, U>& a, HeapListHashSet<T, i, U>& b) { a.s
wap(b); } |
| 451 template<typename T, typename U, typename V> | 451 template<typename T, typename U, typename V> |
| 452 inline void swap(HeapLinkedHashSet<T, U, V>& a, HeapLinkedHashSet<T, U, V>& b) {
a.swap(b); } | 452 inline void swap(HeapLinkedHashSet<T, U, V>& a, HeapLinkedHashSet<T, U, V>& b) {
a.swap(b); } |
| 453 template<typename T, typename U, typename V> | 453 template<typename T, typename U, typename V> |
| 454 inline void swap(HeapHashCountedSet<T, U, V>& a, HeapHashCountedSet<T, U, V>& b)
{ a.swap(b); } | 454 inline void swap(HeapHashCountedSet<T, U, V>& a, HeapHashCountedSet<T, U, V>& b)
{ a.swap(b); } |
| 455 | 455 |
| 456 } // namespace blink | 456 } // namespace blink |
| 457 | 457 |
| 458 #endif | 458 #endif |
| OLD | NEW |