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

Unified Diff: src/assembler.h

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/arm64/utils-arm64.cc ('k') | src/assembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/assembler.h
diff --git a/src/assembler.h b/src/assembler.h
index 6d9be8277f9dd931909bc47cee2d1b2afca1fb3c..dd73ce1d7de7e307ef2bca4adb76824b22f9a683 100644
--- a/src/assembler.h
+++ b/src/assembler.h
@@ -183,7 +183,7 @@ class CpuFeatures : public AllStatic {
static inline bool SupportsCrankshaft();
static inline unsigned cache_line_size() {
- ASSERT(cache_line_size_ != 0);
+ DCHECK(cache_line_size_ != 0);
return cache_line_size_;
}
@@ -223,8 +223,8 @@ class Label BASE_EMBEDDED {
}
INLINE(~Label()) {
- ASSERT(!is_linked());
- ASSERT(!is_near_linked());
+ DCHECK(!is_linked());
+ DCHECK(!is_near_linked());
}
INLINE(void Unuse()) { pos_ = 0; }
@@ -254,15 +254,15 @@ class Label BASE_EMBEDDED {
void bind_to(int pos) {
pos_ = -pos - 1;
- ASSERT(is_bound());
+ DCHECK(is_bound());
}
void link_to(int pos, Distance distance = kFar) {
if (distance == kNear) {
near_link_pos_ = pos + 1;
- ASSERT(is_near_linked());
+ DCHECK(is_near_linked());
} else {
pos_ = pos + 1;
- ASSERT(is_linked());
+ DCHECK(is_linked());
}
}
@@ -384,7 +384,7 @@ class RelocInfo {
mode <= LAST_REAL_RELOC_MODE;
}
static inline bool IsPseudoRelocMode(Mode mode) {
- ASSERT(!IsRealRelocMode(mode));
+ DCHECK(!IsRealRelocMode(mode));
return mode >= FIRST_PSEUDO_RELOC_MODE &&
mode <= LAST_PSEUDO_RELOC_MODE;
}
@@ -681,7 +681,7 @@ class RelocIterator: public Malloced {
// Return pointer valid until next next().
RelocInfo* rinfo() {
- ASSERT(!done());
+ DCHECK(!done());
return &rinfo_;
}
@@ -954,7 +954,7 @@ class ExternalReference BASE_EMBEDDED {
static void set_redirector(Isolate* isolate,
ExternalReferenceRedirector* redirector) {
// We can't stack them.
- ASSERT(isolate->external_reference_redirector() == NULL);
+ DCHECK(isolate->external_reference_redirector() == NULL);
isolate->set_external_reference_redirector(
reinterpret_cast<ExternalReferenceRedirectorPointer*>(redirector));
}
« no previous file with comments | « src/arm64/utils-arm64.cc ('k') | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698