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

Unified Diff: src/safepoint-table.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/runtime-profiler.cc ('k') | src/safepoint-table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/safepoint-table.h
diff --git a/src/safepoint-table.h b/src/safepoint-table.h
index 63bafa74b94aff89f385ea15fc9f42694d733687..095719d574452d8fff7068d3d250b15908b31757 100644
--- a/src/safepoint-table.h
+++ b/src/safepoint-table.h
@@ -20,7 +20,7 @@ class SafepointEntry BASE_EMBEDDED {
SafepointEntry() : info_(0), bits_(NULL) {}
SafepointEntry(unsigned info, uint8_t* bits) : info_(info), bits_(bits) {
- ASSERT(is_valid());
+ DCHECK(is_valid());
}
bool is_valid() const { return bits_ != NULL; }
@@ -35,7 +35,7 @@ class SafepointEntry BASE_EMBEDDED {
}
int deoptimization_index() const {
- ASSERT(is_valid());
+ DCHECK(is_valid());
return DeoptimizationIndexField::decode(info_);
}
@@ -55,17 +55,17 @@ class SafepointEntry BASE_EMBEDDED {
kSaveDoublesFieldBits> { }; // NOLINT
int argument_count() const {
- ASSERT(is_valid());
+ DCHECK(is_valid());
return ArgumentsField::decode(info_);
}
bool has_doubles() const {
- ASSERT(is_valid());
+ DCHECK(is_valid());
return SaveDoublesField::decode(info_);
}
uint8_t* bits() {
- ASSERT(is_valid());
+ DCHECK(is_valid());
return bits_;
}
@@ -89,12 +89,12 @@ class SafepointTable BASE_EMBEDDED {
unsigned entry_size() const { return entry_size_; }
unsigned GetPcOffset(unsigned index) const {
- ASSERT(index < length_);
+ DCHECK(index < length_);
return Memory::uint32_at(GetPcOffsetLocation(index));
}
SafepointEntry GetEntry(unsigned index) const {
- ASSERT(index < length_);
+ DCHECK(index < length_);
unsigned info = Memory::uint32_at(GetInfoLocation(index));
uint8_t* bits = &Memory::uint8_at(entries_ + (index * entry_size_));
return SafepointEntry(info, bits);
« no previous file with comments | « src/runtime-profiler.cc ('k') | src/safepoint-table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698