Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index f06b8be1d98246d3ea9b5f3237b7a96ae211572c..772fd3314735c09d6a90d5c41cb37361c71379ef 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -4647,22 +4647,6 @@ MaybeObject* Heap::AllocateJSArrayStorage( |
} |
-MaybeObject* Heap::AllocateJSArrayWithElements( |
- FixedArrayBase* elements, |
- ElementsKind elements_kind, |
- int length, |
- PretenureFlag pretenure) { |
- MaybeObject* maybe_array = AllocateJSArray(elements_kind, pretenure); |
- JSArray* array; |
- if (!maybe_array->To(&array)) return maybe_array; |
- |
- array->set_elements(elements); |
- array->set_length(Smi::FromInt(length)); |
- array->ValidateElements(); |
- return array; |
-} |
- |
- |
MaybeObject* Heap::AllocateJSProxy(Object* handler, Object* prototype) { |
// Allocate map. |
// TODO(rossberg): Once we optimize proxies, think about a scheme to share |