Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index c1102b3cf86f6c2114ce463c2d72d176ecb546d5..11294011a0557ee339603308c9adb65891e41b44 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -3147,12 +3147,7 @@ int DescriptorArray::GetFieldIndex(int descriptor_number) { |
HeapType* DescriptorArray::GetFieldType(int descriptor_number) { |
DCHECK(GetDetails(descriptor_number).location() == kField); |
- Object* value = GetValue(descriptor_number); |
- if (value->IsWeakCell()) { |
- if (WeakCell::cast(value)->cleared()) return HeapType::Any(); |
- value = WeakCell::cast(value)->value(); |
- } |
- return HeapType::cast(value); |
+ return HeapType::cast(GetValue(descriptor_number)); |
} |