| 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 GCInfo_h | 5 #ifndef GCInfo_h |
| 6 #define GCInfo_h | 6 #define GCInfo_h |
| 7 | 7 |
| 8 #include "platform/heap/Visitor.h" | 8 #include "platform/heap/Visitor.h" |
| 9 #include "wtf/Allocator.h" | 9 #include "platform/wtf/Allocator.h" |
| 10 #include "wtf/Assertions.h" | 10 #include "platform/wtf/Assertions.h" |
| 11 #include "wtf/Atomics.h" | 11 #include "platform/wtf/Atomics.h" |
| 12 #include "wtf/Deque.h" | 12 #include "platform/wtf/Deque.h" |
| 13 #include "wtf/HashCountedSet.h" | 13 #include "platform/wtf/HashCountedSet.h" |
| 14 #include "wtf/HashMap.h" | 14 #include "platform/wtf/HashMap.h" |
| 15 #include "wtf/HashSet.h" | 15 #include "platform/wtf/HashSet.h" |
| 16 #include "wtf/HashTable.h" | 16 #include "platform/wtf/HashTable.h" |
| 17 #include "wtf/LinkedHashSet.h" | 17 #include "platform/wtf/LinkedHashSet.h" |
| 18 #include "wtf/ListHashSet.h" | 18 #include "platform/wtf/ListHashSet.h" |
| 19 #include "wtf/TypeTraits.h" | 19 #include "platform/wtf/TypeTraits.h" |
| 20 #include "wtf/Vector.h" | 20 #include "platform/wtf/Vector.h" |
| 21 | 21 |
| 22 namespace blink { | 22 namespace blink { |
| 23 | 23 |
| 24 // The FinalizerTraitImpl specifies how to finalize objects. Object | 24 // The FinalizerTraitImpl specifies how to finalize objects. Object |
| 25 // that inherit from GarbageCollectedFinalized are finalized by | 25 // that inherit from GarbageCollectedFinalized are finalized by |
| 26 // calling their 'finalize' method which by default will call the | 26 // calling their 'finalize' method which by default will call the |
| 27 // destructor on the object. | 27 // destructor on the object. |
| 28 template <typename T, bool isGarbageCollectedFinalized> | 28 template <typename T, bool isGarbageCollectedFinalized> |
| 29 struct FinalizerTraitImpl; | 29 struct FinalizerTraitImpl; |
| 30 | 30 |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 template <typename T, size_t inlineCapacity> | 272 template <typename T, size_t inlineCapacity> |
| 273 struct GCInfoTrait<HeapDeque<T, inlineCapacity>> | 273 struct GCInfoTrait<HeapDeque<T, inlineCapacity>> |
| 274 : public GCInfoTrait<Deque<T, inlineCapacity, HeapAllocator>> {}; | 274 : public GCInfoTrait<Deque<T, inlineCapacity, HeapAllocator>> {}; |
| 275 template <typename T, typename U, typename V> | 275 template <typename T, typename U, typename V> |
| 276 struct GCInfoTrait<HeapHashCountedSet<T, U, V>> | 276 struct GCInfoTrait<HeapHashCountedSet<T, U, V>> |
| 277 : public GCInfoTrait<HashCountedSet<T, U, V, HeapAllocator>> {}; | 277 : public GCInfoTrait<HashCountedSet<T, U, V, HeapAllocator>> {}; |
| 278 | 278 |
| 279 } // namespace blink | 279 } // namespace blink |
| 280 | 280 |
| 281 #endif | 281 #endif |
| OLD | NEW |