Index: src/elements.cc |
diff --git a/src/elements.cc b/src/elements.cc |
index 77abf4e42b871b848f91a6cbe00df15545b42252..5cef12bbd216df2db3e6192607a69e5ff1efd332 100644 |
--- a/src/elements.cc |
+++ b/src/elements.cc |
@@ -581,14 +581,8 @@ class ElementsAccessorBase : public ElementsAccessor { |
// When objects are first allocated, its elements are Failures. |
if (fixed_array_base->IsFailure()) return; |
if (!fixed_array_base->IsHeapObject()) return; |
- Map* map = fixed_array_base->map(); |
// Arrays that have been shifted in place can't be verified. |
- Heap* heap = holder->GetHeap(); |
- if (map == heap->one_pointer_filler_map() || |
- map == heap->two_pointer_filler_map() || |
- map == heap->free_space_map()) { |
- return; |
- } |
+ if (fixed_array_base->IsFiller()) return; |
int length = 0; |
if (holder->IsJSArray()) { |
Object* length_obj = JSArray::cast(holder)->length(); |