| 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 TraceTraits_h | 5 #ifndef TraceTraits_h |
| 6 #define TraceTraits_h | 6 #define TraceTraits_h |
| 7 | 7 |
| 8 #include "platform/heap/GCInfo.h" | 8 #include "platform/heap/GCInfo.h" |
| 9 #include "platform/heap/Heap.h" | 9 #include "platform/heap/Heap.h" |
| 10 #include "platform/heap/InlinedGlobalMarkingVisitor.h" | 10 #include "platform/heap/InlinedGlobalMarkingVisitor.h" |
| 11 #include "platform/heap/Visitor.h" | 11 #include "platform/heap/Visitor.h" |
| 12 #include "wtf/Assertions.h" | 12 #include "wtf/Assertions.h" |
| 13 #include "wtf/Deque.h" | 13 #include "wtf/Deque.h" |
| 14 #include "wtf/HashCountedSet.h" | 14 #include "wtf/HashCountedSet.h" |
| 15 #include "wtf/HashMap.h" | 15 #include "wtf/HashMap.h" |
| 16 #include "wtf/HashSet.h" | 16 #include "wtf/HashSet.h" |
| 17 #include "wtf/HashTable.h" | 17 #include "wtf/HashTable.h" |
| 18 #include "wtf/LinkedHashSet.h" | 18 #include "wtf/LinkedHashSet.h" |
| 19 #include "wtf/ListHashSet.h" | 19 #include "wtf/ListHashSet.h" |
| 20 #include "wtf/TypeTraits.h" | 20 #include "wtf/TypeTraits.h" |
| 21 #include "wtf/Vector.h" | 21 #include "wtf/Vector.h" |
| 22 | 22 |
| 23 namespace blink { | 23 namespace blink { |
| 24 | 24 |
| 25 template<typename T> class CrossThreadPersistent; | 25 template<typename T> class CrossThreadPersistent; |
| 26 template<typename T> struct GCInfoTrait; | 26 template<typename T> struct GCInfoTrait; |
| 27 class HeapObjectHeader; | 27 class HeapObjectHeader; |
| 28 template<typename T> class Member; | 28 template<typename T> class Member; |
| 29 template<typename T, bool> class NeedsAdjustAndMark; | |
| 30 template<typename T> class TraceTrait; | 29 template<typename T> class TraceTrait; |
| 31 template<typename T> class WeakMember; | 30 template<typename T> class WeakMember; |
| 32 | 31 |
| 33 template<typename T, bool = NeedsAdjustAndMark<T>::value> class DefaultTraceTrai
t; | 32 template<typename T, bool = NeedsAdjustAndMark<T>::value> class DefaultTraceTrai
t; |
| 34 | 33 |
| 35 template<typename T> | 34 template<typename T> |
| 36 class DefaultTraceTrait<T, false> { | 35 class DefaultTraceTrait<T, false> { |
| 37 public: | 36 public: |
| 38 template<typename VisitorDispatcher> | 37 template<typename VisitorDispatcher> |
| 39 static void mark(VisitorDispatcher visitor, const T* t) | 38 static void mark(VisitorDispatcher visitor, const T* t) |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 // since iterating over the hash table backing will find the whole | 568 // since iterating over the hash table backing will find the whole |
| 570 // chain. | 569 // chain. |
| 571 visitor->markNoTracing(node); | 570 visitor->markNoTracing(node); |
| 572 return false; | 571 return false; |
| 573 } | 572 } |
| 574 }; | 573 }; |
| 575 | 574 |
| 576 } // namespace WTF | 575 } // namespace WTF |
| 577 | 576 |
| 578 #endif | 577 #endif |
| OLD | NEW |