Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: third_party/WebKit/Source/platform/heap/GCInfo.h

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: m_domTreeVersion initialization Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "wtf/Allocator.h"
10 #include "wtf/Assertions.h" 10 #include "wtf/Assertions.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 TraceCallback m_trace; 149 TraceCallback m_trace;
150 FinalizationCallback m_finalize; 150 FinalizationCallback m_finalize;
151 bool m_nonTrivialFinalizer; 151 bool m_nonTrivialFinalizer;
152 bool m_hasVTable; 152 bool m_hasVTable;
153 }; 153 };
154 154
155 // s_gcInfoTable holds the per-class GCInfo descriptors; each heap 155 // s_gcInfoTable holds the per-class GCInfo descriptors; each heap
156 // object header keeps its index into this table. 156 // object header keeps its index into this table.
157 extern PLATFORM_EXPORT GCInfo const** s_gcInfoTable; 157 extern PLATFORM_EXPORT GCInfo const** s_gcInfoTable;
158 158
159 #if ENABLE(ASSERT) 159 #if DCHECK_IS_ON()
160 PLATFORM_EXPORT void assertObjectHasGCInfo(const void*, size_t gcInfoIndex); 160 PLATFORM_EXPORT void assertObjectHasGCInfo(const void*, size_t gcInfoIndex);
161 #endif 161 #endif
162 162
163 class GCInfoTable { 163 class GCInfoTable {
164 STATIC_ONLY(GCInfoTable); 164 STATIC_ONLY(GCInfoTable);
165 165
166 public: 166 public:
167 PLATFORM_EXPORT static void ensureGCInfoIndex(const GCInfo*, size_t*); 167 PLATFORM_EXPORT static void ensureGCInfoIndex(const GCInfo*, size_t*);
168 168
169 static void init(); 169 static void init();
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 template <typename T, size_t inlineCapacity> 273 template <typename T, size_t inlineCapacity>
274 struct GCInfoTrait<HeapDeque<T, inlineCapacity>> 274 struct GCInfoTrait<HeapDeque<T, inlineCapacity>>
275 : public GCInfoTrait<Deque<T, inlineCapacity, HeapAllocator>> {}; 275 : public GCInfoTrait<Deque<T, inlineCapacity, HeapAllocator>> {};
276 template <typename T, typename U, typename V> 276 template <typename T, typename U, typename V>
277 struct GCInfoTrait<HeapHashCountedSet<T, U, V>> 277 struct GCInfoTrait<HeapHashCountedSet<T, U, V>>
278 : public GCInfoTrait<HashCountedSet<T, U, V, HeapAllocator>> {}; 278 : public GCInfoTrait<HashCountedSet<T, U, V, HeapAllocator>> {};
279 279
280 } // namespace blink 280 } // namespace blink
281 281
282 #endif 282 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/CallbackStack.cpp ('k') | third_party/WebKit/Source/platform/heap/GCInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698