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

Unified Diff: Source/platform/heap/HeapAllocator.cpp

Issue 1211243006: Oilpan: Replace checkHeader() with ASSERT(checkHeader()) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/platform/heap/HeapAllocator.h ('k') | Source/platform/heap/TraceTraits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/HeapAllocator.cpp
diff --git a/Source/platform/heap/HeapAllocator.cpp b/Source/platform/heap/HeapAllocator.cpp
index e5c95718768dc4e969897e640c90217dfb50f0f4..a5299d339b1feda34b4efc8ab4562e25726f1040 100644
--- a/Source/platform/heap/HeapAllocator.cpp
+++ b/Source/platform/heap/HeapAllocator.cpp
@@ -24,7 +24,7 @@ void HeapAllocator::backingFree(void* address)
return;
HeapObjectHeader* header = HeapObjectHeader::fromPayload(address);
- header->checkHeader();
+ ASSERT(header->checkHeader());
NormalPageHeap* heap = static_cast<NormalPage*>(page)->heapForNormalPage();
state->promptlyFreed(header->gcInfoIndex());
heap->promptlyFreeObject(header);
@@ -63,7 +63,7 @@ bool HeapAllocator::backingExpand(void* address, size_t newSize)
return false;
HeapObjectHeader* header = HeapObjectHeader::fromPayload(address);
- header->checkHeader();
+ ASSERT(header->checkHeader());
NormalPageHeap* heap = static_cast<NormalPage*>(page)->heapForNormalPage();
bool succeed = heap->expandObject(header, newSize);
if (succeed)
@@ -110,7 +110,7 @@ void HeapAllocator::backingShrink(void* address, size_t quantizedCurrentSize, si
return;
HeapObjectHeader* header = HeapObjectHeader::fromPayload(address);
- header->checkHeader();
+ ASSERT(header->checkHeader());
NormalPageHeap* heap = static_cast<NormalPage*>(page)->heapForNormalPage();
bool succeed = heap->shrinkObject(header, quantizedShrunkSize);
if (succeed)
« no previous file with comments | « Source/platform/heap/HeapAllocator.h ('k') | Source/platform/heap/TraceTraits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698