Index: src/base/platform/platform-macos.cc |
diff --git a/src/base/platform/platform-macos.cc b/src/base/platform/platform-macos.cc |
index 0e62881dc94989c35eec95410fe693299327cf09..77771f46c1c7b208732ce773cefc919d090744d0 100644 |
--- a/src/base/platform/platform-macos.cc |
+++ b/src/base/platform/platform-macos.cc |
@@ -184,7 +184,7 @@ VirtualMemory::VirtualMemory(size_t size) |
VirtualMemory::VirtualMemory(size_t size, size_t alignment) |
: address_(NULL), size_(0) { |
- ASSERT(IsAligned(alignment, static_cast<intptr_t>(OS::AllocateAlignment()))); |
+ DCHECK(IsAligned(alignment, static_cast<intptr_t>(OS::AllocateAlignment()))); |
size_t request_size = RoundUp(size + alignment, |
static_cast<intptr_t>(OS::AllocateAlignment())); |
void* reservation = mmap(OS::GetRandomMmapAddr(), |
@@ -197,7 +197,7 @@ VirtualMemory::VirtualMemory(size_t size, size_t alignment) |
uint8_t* base = static_cast<uint8_t*>(reservation); |
uint8_t* aligned_base = RoundUp(base, alignment); |
- ASSERT_LE(base, aligned_base); |
+ DCHECK_LE(base, aligned_base); |
// Unmap extra memory reserved before and after the desired block. |
if (aligned_base != base) { |
@@ -207,7 +207,7 @@ VirtualMemory::VirtualMemory(size_t size, size_t alignment) |
} |
size_t aligned_size = RoundUp(size, OS::AllocateAlignment()); |
- ASSERT_LE(aligned_size, request_size); |
+ DCHECK_LE(aligned_size, request_size); |
if (aligned_size != request_size) { |
size_t suffix_size = request_size - aligned_size; |
@@ -215,7 +215,7 @@ VirtualMemory::VirtualMemory(size_t size, size_t alignment) |
request_size -= suffix_size; |
} |
- ASSERT(aligned_size == request_size); |
+ DCHECK(aligned_size == request_size); |
address_ = static_cast<void*>(aligned_base); |
size_ = aligned_size; |
@@ -225,7 +225,7 @@ VirtualMemory::VirtualMemory(size_t size, size_t alignment) |
VirtualMemory::~VirtualMemory() { |
if (IsReserved()) { |
bool result = ReleaseRegion(address(), size()); |
- ASSERT(result); |
+ DCHECK(result); |
USE(result); |
} |
} |