| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index a2bb9391ee64fb2bf8fe7332c39353d8fef19999..f7c6fb850d6bb330864673a3ab233a0766edf519 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -960,6 +960,15 @@ Handle<JSArray> Factory::NewJSArrayWithElements(Handle<FixedArrayBase> elements,
|
| }
|
|
|
|
|
| +Handle<JSArray> Factory::NewEmptyJSArray(ElementsKind elements_kind,
|
| + PretenureFlag pretenure) {
|
| + CALL_HEAP_FUNCTION(
|
| + isolate(),
|
| + isolate()->heap()->AllocateEmptyJSArray(elements_kind, pretenure),
|
| + JSArray);
|
| +}
|
| +
|
| +
|
| void Factory::SetElementsCapacityAndLength(Handle<JSArray> array,
|
| int capacity,
|
| int length) {
|
|
|