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

Unified Diff: src/field-index.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/fast-dtoa.cc ('k') | src/field-index-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/field-index.h
diff --git a/src/field-index.h b/src/field-index.h
index 08c84058e0048b5a64effc9e15eb17a21fb3d106..56df7ec758a025ccae8c24c2ea9c26859e31250b 100644
--- a/src/field-index.h
+++ b/src/field-index.h
@@ -48,14 +48,14 @@ class FieldIndex V8_FINAL {
}
int outobject_array_index() const {
- ASSERT(!is_inobject());
+ DCHECK(!is_inobject());
return index() - first_inobject_property_offset() / kPointerSize;
}
// Zero-based from the first inobject property. Overflows to out-of-object
// properties.
int property_index() const {
- ASSERT(!IsHiddenField::decode(bit_field_));
+ DCHECK(!IsHiddenField::decode(bit_field_));
int result = index() - first_inobject_property_offset() / kPointerSize;
if (!is_inobject()) {
result += InObjectPropertyBits::decode(bit_field_);
@@ -74,7 +74,7 @@ class FieldIndex V8_FINAL {
FieldIndex(bool is_inobject, int local_index, bool is_double,
int inobject_properties, int first_inobject_property_offset,
bool is_hidden = false) {
- ASSERT((first_inobject_property_offset & (kPointerSize - 1)) == 0);
+ DCHECK((first_inobject_property_offset & (kPointerSize - 1)) == 0);
bit_field_ = IsInObjectBits::encode(is_inobject) |
IsDoubleBits::encode(is_double) |
FirstInobjectPropertyOffsetBits::encode(first_inobject_property_offset) |
@@ -84,7 +84,7 @@ class FieldIndex V8_FINAL {
}
int first_inobject_property_offset() const {
- ASSERT(!IsHiddenField::decode(bit_field_));
+ DCHECK(!IsHiddenField::decode(bit_field_));
return FirstInobjectPropertyOffsetBits::decode(bit_field_);
}
« no previous file with comments | « src/fast-dtoa.cc ('k') | src/field-index-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698