Commit 6568d73d authored by verwaest@chromium.org's avatar verwaest@chromium.org

Removing superfluous IsSmi check from DescriptorArray::IsEmpty.

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
parent 8367ca99
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment