OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MarkingVisitorImpl_h | 5 #ifndef MarkingVisitorImpl_h |
6 #define MarkingVisitorImpl_h | 6 #define MarkingVisitorImpl_h |
7 | 7 |
8 #include "platform/heap/Heap.h" | 8 #include "platform/heap/Heap.h" |
9 #include "platform/heap/ThreadState.h" | 9 #include "platform/heap/ThreadState.h" |
10 #include "platform/heap/Visitor.h" | 10 #include "platform/heap/Visitor.h" |
11 #include "wtf/Allocator.h" | 11 #include "wtf/Allocator.h" |
12 #include "wtf/Functional.h" | |
13 #include "wtf/HashFunctions.h" | |
14 #include "wtf/Locker.h" | |
15 #include "wtf/TypeTraits.h" | |
16 | 12 |
17 namespace blink { | 13 namespace blink { |
18 | 14 |
19 template <typename Derived> | 15 template <typename Derived> |
20 class MarkingVisitorImpl { | 16 class MarkingVisitorImpl { |
21 USING_FAST_MALLOC(MarkingVisitorImpl); | 17 USING_FAST_MALLOC(MarkingVisitorImpl); |
22 protected: | 18 protected: |
23 inline void markHeader(HeapObjectHeader* header, const void* objectPointer,
TraceCallback callback) | 19 inline void markHeader(HeapObjectHeader* header, const void* objectPointer,
TraceCallback callback) |
24 { | 20 { |
25 ASSERT(header); | 21 ASSERT(header); |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 private: | 122 private: |
127 static void markNoTracingCallback(Visitor* visitor, void* object) | 123 static void markNoTracingCallback(Visitor* visitor, void* object) |
128 { | 124 { |
129 visitor->markNoTracing(object); | 125 visitor->markNoTracing(object); |
130 } | 126 } |
131 }; | 127 }; |
132 | 128 |
133 } // namespace blink | 129 } // namespace blink |
134 | 130 |
135 #endif | 131 #endif |
OLD | NEW |