| 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" |
| 11 #include "wtf/Allocator.h" | 11 #include "platform/wtf/Allocator.h" |
| 12 #include "wtf/Assertions.h" | 12 #include "platform/wtf/Assertions.h" |
| 13 #include "wtf/Deque.h" | 13 #include "platform/wtf/Deque.h" |
| 14 #include "wtf/HashCountedSet.h" | 14 #include "platform/wtf/HashCountedSet.h" |
| 15 #include "wtf/HashMap.h" | 15 #include "platform/wtf/HashMap.h" |
| 16 #include "wtf/HashSet.h" | 16 #include "platform/wtf/HashSet.h" |
| 17 #include "wtf/HashTable.h" | 17 #include "platform/wtf/HashTable.h" |
| 18 #include "wtf/LinkedHashSet.h" | 18 #include "platform/wtf/LinkedHashSet.h" |
| 19 #include "wtf/ListHashSet.h" | 19 #include "platform/wtf/ListHashSet.h" |
| 20 #include "wtf/TypeTraits.h" | 20 #include "platform/wtf/TypeTraits.h" |
| 21 #include "wtf/Vector.h" | 21 #include "platform/wtf/Vector.h" |
| 22 | 22 |
| 23 namespace blink { | 23 namespace blink { |
| 24 | 24 |
| 25 template <typename T, typename Traits = WTF::VectorTraits<T>> | 25 template <typename T, typename Traits = WTF::VectorTraits<T>> |
| 26 class HeapVectorBacking { | 26 class HeapVectorBacking { |
| 27 DISALLOW_NEW(); | 27 DISALLOW_NEW(); |
| 28 IS_GARBAGE_COLLECTED_TYPE(); | 28 IS_GARBAGE_COLLECTED_TYPE(); |
| 29 | 29 |
| 30 public: | 30 public: |
| 31 static void finalize(void* pointer); | 31 static void finalize(void* pointer); |
| (...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 const blink::HeapHashCountedSet<Value, HashFunctions, Traits>& set, | 834 const blink::HeapHashCountedSet<Value, HashFunctions, Traits>& set, |
| 835 VectorType& vector) { | 835 VectorType& vector) { |
| 836 copyToVector(static_cast<const HashCountedSet<Value, HashFunctions, Traits, | 836 copyToVector(static_cast<const HashCountedSet<Value, HashFunctions, Traits, |
| 837 blink::HeapAllocator>&>(set), | 837 blink::HeapAllocator>&>(set), |
| 838 vector); | 838 vector); |
| 839 } | 839 } |
| 840 | 840 |
| 841 } // namespace WTF | 841 } // namespace WTF |
| 842 | 842 |
| 843 #endif | 843 #endif |
| OLD | NEW |