Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 976d65e959fdc35e50a8efe8964ff9e00a1388c4..d31016c0dc02fbadb0452127f8263fe18db74eb5 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -4232,9 +4232,6 @@ MaybeObject* Heap::AllocateJSArrayAndStorage( |
ArrayStorageAllocationMode mode, |
PretenureFlag pretenure) { |
ASSERT(capacity >= length); |
- if (length != 0 && mode == INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE) { |
- elements_kind = GetHoleyElementsKind(elements_kind); |
- } |
MaybeObject* maybe_array = AllocateJSArray(elements_kind, pretenure); |
JSArray* array; |
if (!maybe_array->To(&array)) return maybe_array; |