Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: third_party/WebKit/Source/platform/heap/GCInfo.cpp

Issue 2786843002: Make HeapObjectHeader::checkHeader private. (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/heap/GCInfo.cpp
diff --git a/third_party/WebKit/Source/platform/heap/GCInfo.cpp b/third_party/WebKit/Source/platform/heap/GCInfo.cpp
index ce0c36c26f30232057cd2054d5877e90cdc2185a..5c1d9793ee959f24da1e4038ef601cf9f99941b9 100644
--- a/third_party/WebKit/Source/platform/heap/GCInfo.cpp
+++ b/third_party/WebKit/Source/platform/heap/GCInfo.cpp
@@ -64,7 +64,8 @@ void GCInfoTable::init() {
void assertObjectHasGCInfo(const void* payload, size_t gcInfoIndex) {
- HeapObjectHeader::fromPayload(payload)->checkHeader();
+ // |fromPayload| checks the integrity of the |HeapObjectHeader|.
+ (void)HeapObjectHeader::fromPayload(payload);
#if !defined(COMPONENT_BUILD)
// On component builds we cannot compare the gcInfos as they are statically
// defined in each of the components and hence will not match.

Powered by Google App Engine
This is Rietveld 408576698