| Index: Source/platform/heap/Heap.cpp
|
| diff --git a/Source/platform/heap/Heap.cpp b/Source/platform/heap/Heap.cpp
|
| index 098aec977518c7f7d1c464d59bc2511ca5de34b9..e20a13f0c3bab7c98819fef9bf1ea91a9af51ef9 100644
|
| --- a/Source/platform/heap/Heap.cpp
|
| +++ b/Source/platform/heap/Heap.cpp
|
| @@ -1583,7 +1583,7 @@ HeapPage<Header>::HeapPage(PageMemory* storage, ThreadHeap<Header>* heap, const
|
| : BaseHeapPage(storage, gcInfo, heap->threadState())
|
| , m_next(nullptr)
|
| {
|
| - COMPILE_ASSERT(!(sizeof(HeapPage<Header>) & allocationMask), page_header_incorrectly_aligned);
|
| + static_assert(!(sizeof(HeapPage<Header>) & allocationMask), "page header incorrectly aligned");
|
| m_objectStartBitMapComputed = false;
|
| ASSERT(isPageHeaderAddress(reinterpret_cast<Address>(this)));
|
| }
|
| @@ -2112,7 +2112,8 @@ public:
|
| { \
|
| if (!objectPointer) \
|
| return false; \
|
| - COMPILE_ASSERT(!NeedsAdjustAndMark<Type>::value, CanOnlyUseIsMarkedOnNonAdjustedTypes); \
|
| + static_assert(!NeedsAdjustAndMark<Type>::value, \
|
| + "ensureMarked can only be used on non adjusted types"); \
|
| if (Mode == ThreadLocalMarking && !objectInTerminatingThreadHeap(objectPointer)) \
|
| return false; \
|
| if (isMarked(objectPointer)) \
|
|
|