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

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

Issue 2786843002: Make HeapObjectHeader::checkHeader private. (Closed)
Patch Set: Move back to DCHECK; will do CHECK in a follow-up CL. Created 3 years, 8 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 #include "platform/heap/GCInfo.h" 5 #include "platform/heap/GCInfo.h"
6 6
7 #include "platform/heap/Handle.h" 7 #include "platform/heap/Handle.h"
8 #include "platform/heap/Heap.h" 8 #include "platform/heap/Heap.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 s_gcInfoTableSize = newSize; 57 s_gcInfoTableSize = newSize;
58 } 58 }
59 59
60 void GCInfoTable::init() { 60 void GCInfoTable::init() {
61 RELEASE_ASSERT(!s_gcInfoTable); 61 RELEASE_ASSERT(!s_gcInfoTable);
62 resize(); 62 resize();
63 } 63 }
64 64
65 #if DCHECK_IS_ON() 65 #if DCHECK_IS_ON()
66 void assertObjectHasGCInfo(const void* payload, size_t gcInfoIndex) { 66 void assertObjectHasGCInfo(const void* payload, size_t gcInfoIndex) {
67 HeapObjectHeader::fromPayload(payload)->checkHeader(); 67 HeapObjectHeader::checkFromPayload(payload);
68 #if !defined(COMPONENT_BUILD) 68 #if !defined(COMPONENT_BUILD)
69 // On component builds we cannot compare the gcInfos as they are statically 69 // On component builds we cannot compare the gcInfos as they are statically
70 // defined in each of the components and hence will not match. 70 // defined in each of the components and hence will not match.
71 ASSERT(HeapObjectHeader::fromPayload(payload)->gcInfoIndex() == gcInfoIndex); 71 ASSERT(HeapObjectHeader::fromPayload(payload)->gcInfoIndex() == gcInfoIndex);
72 #endif 72 #endif
73 } 73 }
74 #endif 74 #endif
75 75
76 } // namespace blink 76 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698