Index: src/factory.h |
diff --git a/src/factory.h b/src/factory.h |
index 9d46d02d4c0a7af890ca1905ebfb136900b24a55..9c559624fd6a1c0ee5fad66f5f70990f6a38f5e1 100644 |
--- a/src/factory.h |
+++ b/src/factory.h |
@@ -325,6 +325,11 @@ class Factory V8_FINAL { |
Handle<ScopeInfo> scope_info); |
// JS arrays are pretenured when allocated by the parser. |
+ |
+ Handle<JSArray> NewJSArray( |
+ ElementsKind elements_kind, |
+ PretenureFlag pretenure = NOT_TENURED); |
+ |
Handle<JSArray> NewJSArray( |
ElementsKind elements_kind, |
int length, |
@@ -343,6 +348,7 @@ class Factory V8_FINAL { |
INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE, pretenure); |
} |
+ // Allocate a JSArray with no elements |
Handle<JSArray> NewJSArrayWithElements( |
Handle<FixedArrayBase> elements, |
ElementsKind elements_kind, |