Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 93e0b39ddd40a19a026f206d057053f32a303105..8292b04d4d1dece2d7afe5ba33e8ec6399a67aa8 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1874,15 +1874,14 @@ Object** FixedArray::data_start() { |
bool DescriptorArray::IsEmpty() { |
- ASSERT(this->IsSmi() || |
- this->MayContainTransitions() || |
+ ASSERT(length() >= kFirstIndex || |
this == HEAP->empty_descriptor_array()); |
- return this->IsSmi() || length() < kFirstIndex; |
+ return length() < kFirstIndex; |
} |
bool DescriptorArray::MayContainTransitions() { |
- return length() >= kTransitionsIndex; |
+ return !IsEmpty(); |
} |