| Index: src/objects.h | 
| diff --git a/src/objects.h b/src/objects.h | 
| index 5961dc060f82ac581ccda19073d2375e2dfe9b34..6192fbb63408d21743d94dd2824b410f68908759 100644 | 
| --- a/src/objects.h | 
| +++ b/src/objects.h | 
| @@ -2631,9 +2631,15 @@ class WeakFixedArray : public FixedArray { | 
| // Generic array grows dynamically with O(1) amortized insertion. | 
| class ArrayList : public FixedArray { | 
| public: | 
| -  static Handle<ArrayList> Add(Handle<ArrayList> array, Handle<Object> obj); | 
| +  enum AddMode { | 
| +    kNone, | 
| +    // Use this if GC can delete elements from the array. | 
| +    kReloadLengthAfterAllocation, | 
| +  }; | 
| +  static Handle<ArrayList> Add(Handle<ArrayList> array, Handle<Object> obj, | 
| +                               AddMode mode = kNone); | 
| static Handle<ArrayList> Add(Handle<ArrayList> array, Handle<Object> obj1, | 
| -                               Handle<Object> obj2); | 
| +                               Handle<Object> obj2, AddMode = kNone); | 
| inline int Length(); | 
| inline void SetLength(int length); | 
| inline Object* Get(int index); | 
|  |