Index: src/objects-visiting.h |
diff --git a/src/objects-visiting.h b/src/objects-visiting.h |
index f6fda9df0a2c9ee0deff359f4a57454d020e9b99..b9a4b25fc302ab4f75dd105f556307ba2e8177e7 100644 |
--- a/src/objects-visiting.h |
+++ b/src/objects-visiting.h |
@@ -115,12 +115,12 @@ class StaticVisitorBase : public AllStatic { |
static VisitorId GetVisitorIdForSize(VisitorId base, |
VisitorId generic, |
int object_size) { |
- ASSERT((base == kVisitDataObject) || |
+ DCHECK((base == kVisitDataObject) || |
(base == kVisitStruct) || |
(base == kVisitJSObject)); |
- ASSERT(IsAligned(object_size, kPointerSize)); |
- ASSERT(kMinObjectSizeInWords * kPointerSize <= object_size); |
- ASSERT(object_size <= Page::kMaxRegularHeapObjectSize); |
+ DCHECK(IsAligned(object_size, kPointerSize)); |
+ DCHECK(kMinObjectSizeInWords * kPointerSize <= object_size); |
+ DCHECK(object_size <= Page::kMaxRegularHeapObjectSize); |
const VisitorId specialization = static_cast<VisitorId>( |
base + (object_size >> kPointerSizeLog2) - kMinObjectSizeInWords); |
@@ -151,7 +151,7 @@ class VisitorDispatchTable { |
} |
void Register(StaticVisitorBase::VisitorId id, Callback callback) { |
- ASSERT(id < StaticVisitorBase::kVisitorIdCount); // id is unsigned. |
+ DCHECK(id < StaticVisitorBase::kVisitorIdCount); // id is unsigned. |
callbacks_[id] = reinterpret_cast<base::AtomicWord>(callback); |
} |
@@ -219,7 +219,7 @@ class FlexibleBodyVisitor : public BodyVisitorBase<StaticVisitor> { |
template<int object_size> |
static inline ReturnType VisitSpecialized(Map* map, HeapObject* object) { |
- ASSERT(BodyDescriptor::SizeOf(map, object) == object_size); |
+ DCHECK(BodyDescriptor::SizeOf(map, object) == object_size); |
BodyVisitorBase<StaticVisitor>::IteratePointers( |
map->GetHeap(), |
object, |