DescriptorArray::IsEmpty is never called with a Smi.
Review URL: https://chromiumcodereview.appspot.com/
10555024
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11846
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
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();
}