| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 067f35782292ae6049066ac0be25ca502329fb5d..b63b1c3b45f741293b292dae432464bda8454d78 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -1906,7 +1906,8 @@ class JSObject: public JSReceiver {
|
|
|
| // Would we convert a fast elements array to dictionary mode given
|
| // an access at key?
|
| - bool WouldConvertToSlowElements(Handle<Object> key);
|
| + bool WouldConvertToSlowElements(uint32_t index);
|
| + inline bool WouldConvertToSlowElements(Handle<Object> key);
|
| // Do we want to keep the elements in fast case when increasing the
|
| // capacity?
|
| bool ShouldConvertToSlowElements(int new_capacity);
|
| @@ -1966,6 +1967,12 @@ class JSObject: public JSReceiver {
|
| kDontAllowSmiElements
|
| };
|
|
|
| + static Handle<FixedArray> SetFastElementsCapacity(
|
| + Handle<JSObject> object, int capacity,
|
| + SetFastElementsCapacitySmiMode smi_mode);
|
| + static Handle<FixedArrayBase> SetFastDoubleElementsCapacity(
|
| + Handle<JSObject> object, int capacity);
|
| +
|
| // Replace the elements' backing store with fast elements of the given
|
| // capacity. Update the length for JSArrays. Returns the new backing
|
| // store.
|
| @@ -1974,10 +1981,8 @@ class JSObject: public JSReceiver {
|
| int capacity,
|
| int length,
|
| SetFastElementsCapacitySmiMode smi_mode);
|
| - static void SetFastDoubleElementsCapacityAndLength(
|
| - Handle<JSObject> object,
|
| - int capacity,
|
| - int length);
|
| + static Handle<FixedArrayBase> SetFastDoubleElementsCapacityAndLength(
|
| + Handle<JSObject> object, int capacity, int length);
|
|
|
| // Lookup interceptors are used for handling properties controlled by host
|
| // objects.
|
|
|