| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 173 |
| 174 template <typename VisitorDispatcher> | 174 template <typename VisitorDispatcher> |
| 175 static void registerWeakTable(VisitorDispatcher visitor, | 175 static void registerWeakTable(VisitorDispatcher visitor, |
| 176 const void* closure, | 176 const void* closure, |
| 177 EphemeronCallback iterationCallback, | 177 EphemeronCallback iterationCallback, |
| 178 EphemeronCallback iterationDoneCallback) { | 178 EphemeronCallback iterationDoneCallback) { |
| 179 visitor->registerWeakTable(closure, iterationCallback, | 179 visitor->registerWeakTable(closure, iterationCallback, |
| 180 iterationDoneCallback); | 180 iterationDoneCallback); |
| 181 } | 181 } |
| 182 | 182 |
| 183 #if ENABLE(ASSERT) | 183 #if DCHECK_IS_ON() |
| 184 template <typename VisitorDispatcher> | 184 template <typename VisitorDispatcher> |
| 185 static bool weakTableRegistered(VisitorDispatcher visitor, | 185 static bool weakTableRegistered(VisitorDispatcher visitor, |
| 186 const void* closure) { | 186 const void* closure) { |
| 187 return visitor->weakTableRegistered(closure); | 187 return visitor->weakTableRegistered(closure); |
| 188 } | 188 } |
| 189 #endif | 189 #endif |
| 190 | 190 |
| 191 template <typename T, typename VisitorDispatcher> | 191 template <typename T, typename VisitorDispatcher> |
| 192 static void registerBackingStoreReference(VisitorDispatcher visitor, | 192 static void registerBackingStoreReference(VisitorDispatcher visitor, |
| 193 T** slot) { | 193 T** slot) { |
| (...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 const blink::HeapHashCountedSet<Value, HashFunctions, Traits>& set, | 832 const blink::HeapHashCountedSet<Value, HashFunctions, Traits>& set, |
| 833 VectorType& vector) { | 833 VectorType& vector) { |
| 834 copyToVector(static_cast<const HashCountedSet<Value, HashFunctions, Traits, | 834 copyToVector(static_cast<const HashCountedSet<Value, HashFunctions, Traits, |
| 835 blink::HeapAllocator>&>(set), | 835 blink::HeapAllocator>&>(set), |
| 836 vector); | 836 vector); |
| 837 } | 837 } |
| 838 | 838 |
| 839 } // namespace WTF | 839 } // namespace WTF |
| 840 | 840 |
| 841 #endif | 841 #endif |
| OLD | NEW |