diff --git a/src/hydrogen.cc b/src/hydrogen.cc index 1268927252..33c90c2387 100644 --- a/src/hydrogen.cc +++ b/src/hydrogen.cc @@ -3514,11 +3514,6 @@ HAllocate* HGraphBuilder::JSArrayBuilder::AllocateArray( HValue* elements_size = builder()->BuildCalculateElementsSize(kind_, capacity); - // Bail out for large objects. - HValue* max_regular_heap_object_size = - builder()->Add(Page::kMaxRegularHeapObjectSize); - builder()->Add(elements_size, max_regular_heap_object_size); - // Allocate (dealing with failure appropriately) HAllocate* array_object = builder()->AllocateJSArrayObject(mode_);