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

Unified Diff: src/field-index-inl.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/field-index.h ('k') | src/fixed-dtoa.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/field-index-inl.h
diff --git a/src/field-index-inl.h b/src/field-index-inl.h
index f1591af50967f0b46b70e201cf74f79f4ab0ac56..5508adb16193a13030b33190e16a9aefc0211916 100644
--- a/src/field-index-inl.h
+++ b/src/field-index-inl.h
@@ -12,7 +12,7 @@ namespace internal {
inline FieldIndex FieldIndex::ForInObjectOffset(int offset, Map* map) {
- ASSERT((offset % kPointerSize) == 0);
+ DCHECK((offset % kPointerSize) == 0);
int index = offset / kPointerSize;
if (map == NULL) {
return FieldIndex(true, index, false, index + 1, 0, true);
@@ -29,7 +29,7 @@ inline FieldIndex FieldIndex::ForInObjectOffset(int offset, Map* map) {
inline FieldIndex FieldIndex::ForPropertyIndex(Map* map,
int property_index,
bool is_double) {
- ASSERT(map->instance_type() >= FIRST_NONSTRING_TYPE);
+ DCHECK(map->instance_type() >= FIRST_NONSTRING_TYPE);
int inobject_properties = map->inobject_properties();
bool is_inobject = property_index < inobject_properties;
int first_inobject_offset;
@@ -64,7 +64,7 @@ inline FieldIndex FieldIndex::ForLoadByFieldIndex(Map* map, int orig_index) {
}
FieldIndex result(is_inobject, field_index, is_double,
map->inobject_properties(), first_inobject_offset);
- ASSERT(result.GetLoadByFieldIndex() == orig_index);
+ DCHECK(result.GetLoadByFieldIndex() == orig_index);
return result;
}
« no previous file with comments | « src/field-index.h ('k') | src/fixed-dtoa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698