OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "platform/PlatformExport.h" | 34 #include "platform/PlatformExport.h" |
35 #include "platform/heap/AddressSanitizer.h" | 35 #include "platform/heap/AddressSanitizer.h" |
36 #include "wtf/HashSet.h" | 36 #include "wtf/HashSet.h" |
37 #include "wtf/OwnPtr.h" | 37 #include "wtf/OwnPtr.h" |
38 #include "wtf/PassOwnPtr.h" | 38 #include "wtf/PassOwnPtr.h" |
39 #include "wtf/ThreadSpecific.h" | 39 #include "wtf/ThreadSpecific.h" |
40 #include "wtf/Threading.h" | 40 #include "wtf/Threading.h" |
41 #include "wtf/ThreadingPrimitives.h" | 41 #include "wtf/ThreadingPrimitives.h" |
42 #include "wtf/Vector.h" | 42 #include "wtf/Vector.h" |
43 | 43 |
44 namespace WebCore { | 44 namespace blink { |
45 | 45 |
46 class BaseHeap; | 46 class BaseHeap; |
47 class BaseHeapPage; | 47 class BaseHeapPage; |
48 class FinalizedHeapObjectHeader; | 48 class FinalizedHeapObjectHeader; |
49 struct GCInfo; | 49 struct GCInfo; |
50 class HeapContainsCache; | 50 class HeapContainsCache; |
51 class HeapObjectHeader; | 51 class HeapObjectHeader; |
52 class PageMemory; | 52 class PageMemory; |
53 class PersistentNode; | 53 class PersistentNode; |
54 class Visitor; | 54 class Visitor; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 #define USED_FROM_MULTIPLE_THREADS(Class) \ | 110 #define USED_FROM_MULTIPLE_THREADS(Class) \ |
111 class Class; \ | 111 class Class; \ |
112 template<> struct ThreadingTrait<Class> { \ | 112 template<> struct ThreadingTrait<Class> { \ |
113 static const ThreadAffinity Affinity = AnyThread; \ | 113 static const ThreadAffinity Affinity = AnyThread; \ |
114 } | 114 } |
115 | 115 |
116 #define USED_FROM_MULTIPLE_THREADS_NAMESPACE(Namespace, Class) \ | 116 #define USED_FROM_MULTIPLE_THREADS_NAMESPACE(Namespace, Class) \ |
117 namespace Namespace { \ | 117 namespace Namespace { \ |
118 class Class; \ | 118 class Class; \ |
119 } \ | 119 } \ |
120 namespace WebCore { \ | 120 namespace blink { \ |
121 template<> struct ThreadingTrait<Namespace::Class> { \ | 121 template<> struct ThreadingTrait<Namespace::Class> { \ |
122 static const ThreadAffinity Affinity = AnyThread; \ | 122 static const ThreadAffinity Affinity = AnyThread; \ |
123 }; \ | 123 }; \ |
124 } | 124 } |
125 | 125 |
126 template<typename U> class ThreadingTrait<const U> : public ThreadingTrait<U> {
}; | 126 template<typename U> class ThreadingTrait<const U> : public ThreadingTrait<U> {
}; |
127 | 127 |
128 // List of typed heaps. The list is used to generate the implementation | 128 // List of typed heaps. The list is used to generate the implementation |
129 // of typed heap related methods. | 129 // of typed heap related methods. |
130 // | 130 // |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 // HeapPage header. We use some of the bits to determine | 712 // HeapPage header. We use some of the bits to determine |
713 // whether the page is part of a terminting thread or | 713 // whether the page is part of a terminting thread or |
714 // if the page is traced after being terminated (orphaned). | 714 // if the page is traced after being terminated (orphaned). |
715 uintptr_t m_terminating : 1; | 715 uintptr_t m_terminating : 1; |
716 uintptr_t m_tracedAfterOrphaned : 1; | 716 uintptr_t m_tracedAfterOrphaned : 1; |
717 }; | 717 }; |
718 | 718 |
719 } | 719 } |
720 | 720 |
721 #endif // ThreadState_h | 721 #endif // ThreadState_h |
OLD | NEW |