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

Unified Diff: src/zone.cc

Issue 430503007: Rename ASSERT* to DCHECK*. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE and fixes Created 6 years, 4 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 | « src/x87/stub-cache-x87.cc ('k') | src/zone-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/zone.cc
diff --git a/src/zone.cc b/src/zone.cc
index d4fa42fd4115d308f08a7af8238dc22b5d90a43f..450e975c9487003365644c31fe46cb0741f81c0f 100644
--- a/src/zone.cc
+++ b/src/zone.cc
@@ -58,7 +58,7 @@ Zone::~Zone() {
DeleteAll();
DeleteKeptSegment();
- ASSERT(segment_bytes_allocated_ == 0);
+ DCHECK(segment_bytes_allocated_ == 0);
}
@@ -120,7 +120,7 @@ void Zone::DeleteKeptSegment() {
static const unsigned char kZapDeadByte = 0xcd;
#endif
- ASSERT(segment_head_ == NULL || segment_head_->next() == NULL);
+ DCHECK(segment_head_ == NULL || segment_head_->next() == NULL);
if (segment_head_ != NULL) {
int size = segment_head_->size();
#ifdef DEBUG
@@ -133,7 +133,7 @@ void Zone::DeleteKeptSegment() {
segment_head_ = NULL;
}
- ASSERT(segment_bytes_allocated_ == 0);
+ DCHECK(segment_bytes_allocated_ == 0);
}
@@ -160,8 +160,8 @@ void Zone::DeleteSegment(Segment* segment, int size) {
Address Zone::NewExpand(int size) {
// Make sure the requested size is already properly aligned and that
// there isn't enough room in the Zone to satisfy the request.
- ASSERT(size == RoundDown(size, kAlignment));
- ASSERT(size > limit_ - position_);
+ DCHECK(size == RoundDown(size, kAlignment));
+ DCHECK(size > limit_ - position_);
// Compute the new segment size. We use a 'high water mark'
// strategy, where we increase the segment size every time we expand
@@ -210,7 +210,7 @@ Address Zone::NewExpand(int size) {
return NULL;
}
limit_ = segment->end();
- ASSERT(position_ <= limit_);
+ DCHECK(position_ <= limit_);
return result;
}
« no previous file with comments | « src/x87/stub-cache-x87.cc ('k') | src/zone-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698