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

Unified Diff: src/property-details.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/property.h ('k') | src/prototype.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/property-details.h
diff --git a/src/property-details.h b/src/property-details.h
index cfe257efcc40652f2734bc21d45b38de0745eeb9..7eb2e4ea9da8f660183f185bc759e01248813fa4 100644
--- a/src/property-details.h
+++ b/src/property-details.h
@@ -112,8 +112,8 @@ class Representation {
if (kind_ == kExternal && other.kind_ == kExternal) return false;
if (kind_ == kNone && other.kind_ == kExternal) return false;
- ASSERT(kind_ != kExternal);
- ASSERT(other.kind_ != kExternal);
+ DCHECK(kind_ != kExternal);
+ DCHECK(other.kind_ != kExternal);
if (IsHeapObject()) return other.IsNone();
if (kind_ == kUInteger8 && other.kind_ == kInteger8) return false;
if (kind_ == kUInteger16 && other.kind_ == kInteger16) return false;
@@ -133,7 +133,7 @@ class Representation {
}
int size() const {
- ASSERT(!IsNone());
+ DCHECK(!IsNone());
if (IsInteger8() || IsUInteger8()) {
return sizeof(uint8_t);
}
@@ -197,8 +197,8 @@ class PropertyDetails BASE_EMBEDDED {
| AttributesField::encode(attributes)
| DictionaryStorageField::encode(index);
- ASSERT(type == this->type());
- ASSERT(attributes == this->attributes());
+ DCHECK(type == this->type());
+ DCHECK(attributes == this->attributes());
}
PropertyDetails(PropertyAttributes attributes,
@@ -247,7 +247,7 @@ class PropertyDetails BASE_EMBEDDED {
}
Representation representation() const {
- ASSERT(type() != NORMAL);
+ DCHECK(type() != NORMAL);
return DecodeRepresentation(RepresentationField::decode(value_));
}
« no previous file with comments | « src/property.h ('k') | src/prototype.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698