Index: src/factory.h |
diff --git a/src/factory.h b/src/factory.h |
index 558ff85a983c957d37b9bed14b1a24227a3586d5..9d881f3229a22b331f5732499597b8ba0dddd98c 100644 |
--- a/src/factory.h |
+++ b/src/factory.h |
@@ -330,9 +330,11 @@ class Factory { |
// JS objects are pretenured when allocated by the bootstrapper and |
// runtime. |
- Handle<JSObject> NewJSObjectFromMap(Handle<Map> map, |
- PretenureFlag pretenure = NOT_TENURED, |
- bool allocate_properties = true); |
+ Handle<JSObject> NewJSObjectFromMap( |
+ Handle<Map> map, |
+ PretenureFlag pretenure = NOT_TENURED, |
+ bool allocate_properties = true, |
+ Handle<AllocationSite> allocation_site = Handle<AllocationSite>::null()); |
Handle<JSObject> NewJSObjectFromMapForDeoptimizer( |
Handle<Map> map, PretenureFlag pretenure = NOT_TENURED); |
@@ -352,6 +354,12 @@ class Factory { |
ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, |
PretenureFlag pretenure = NOT_TENURED); |
+ void NewJSArrayStorage( |
+ Handle<JSArray> array, |
+ int length, |
+ int capacity, |
+ ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS); |
+ |
void SetElementsCapacityAndLength(Handle<JSArray> array, |
int capacity, |
int length); |