Index: src/transitions.cc |
diff --git a/src/transitions.cc b/src/transitions.cc |
index 6ac1ab054c847b126f214c1ebdb99c12197dbd04..96ed870e07b43465bccef7b29abe24b7305f246e 100644 |
--- a/src/transitions.cc |
+++ b/src/transitions.cc |
@@ -64,7 +64,7 @@ Handle<TransitionArray> TransitionArray::NewWith(Handle<Map> map, |
Handle<TransitionArray> TransitionArray::ExtendToFullTransitionArray( |
Handle<Map> containing_map) { |
- ASSERT(!containing_map->transitions()->IsFullTransitionArray()); |
+ DCHECK(!containing_map->transitions()->IsFullTransitionArray()); |
int nof = containing_map->transitions()->number_of_transitions(); |
// A transition array may shrink during GC. |
@@ -72,7 +72,7 @@ Handle<TransitionArray> TransitionArray::ExtendToFullTransitionArray( |
DisallowHeapAllocation no_gc; |
int new_nof = containing_map->transitions()->number_of_transitions(); |
if (new_nof != nof) { |
- ASSERT(new_nof == 0); |
+ DCHECK(new_nof == 0); |
result->Shrink(ToKeyIndex(0)); |
} else if (nof == 1) { |
result->NoIncrementalWriteBarrierCopyFrom( |
@@ -104,11 +104,11 @@ Handle<TransitionArray> TransitionArray::CopyInsert(Handle<Map> map, |
// The map's transition array may grown smaller during the allocation above as |
// it was weakly traversed, though it is guaranteed not to disappear. Trim the |
// result copy if needed, and recompute variables. |
- ASSERT(map->HasTransitionArray()); |
+ DCHECK(map->HasTransitionArray()); |
DisallowHeapAllocation no_gc; |
TransitionArray* array = map->transitions(); |
if (array->number_of_transitions() != number_of_transitions) { |
- ASSERT(array->number_of_transitions() < number_of_transitions); |
+ DCHECK(array->number_of_transitions() < number_of_transitions); |
number_of_transitions = array->number_of_transitions(); |
new_size = number_of_transitions; |