| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index d097e1ad3beb46119642625724b785eef06cdd47..57c5ef9ebaefd34e1d3bb1bbccb80d3f2e9a197e 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -2422,6 +2422,12 @@ class JSObject: public JSReceiver {
|
| FixedArrayBase* elements,
|
| uint32_t length,
|
| EnsureElementsMode mode);
|
| + static void EnsureCanContainElements(
|
| + Handle<JSObject> object,
|
| + Arguments* arguments,
|
| + uint32_t first_arg,
|
| + uint32_t arg_count,
|
| + EnsureElementsMode mode);
|
| MUST_USE_RESULT MaybeObject* EnsureCanContainElements(
|
| Arguments* arguments,
|
| uint32_t first_arg,
|
| @@ -10011,11 +10017,14 @@ class JSArray: public JSObject {
|
| // Initialize the array with the given capacity. The function may
|
| // fail due to out-of-memory situations, but only if the requested
|
| // capacity is non-zero.
|
| + static void Initialize(Handle<JSArray> array, int capacity, int length = 0);
|
| MUST_USE_RESULT MaybeObject* Initialize(int capacity, int length = 0);
|
|
|
| // Initializes the array to a certain length.
|
| inline bool AllowsSetElementsLength();
|
| // Can cause GC.
|
| + static Handle<Object> SetElementsLength(Handle<JSArray> array,
|
| + Handle<Object> length);
|
| MUST_USE_RESULT MaybeObject* SetElementsLength(Object* length);
|
|
|
| // Set the content of the array to the content of storage.
|
|
|