Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 042618e163af376da809d09daa114d5d24d535ae..eb27233ce57f99659556e4183361ae58ffda73d0 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -10393,6 +10393,12 @@ Handle<ArrayList> ArrayList::Add(Handle<ArrayList> array, Handle<Object> obj1, |
} |
+bool ArrayList::IsFull() { |
+ int capacity = length(); |
+ return kFirstIndex + Length() == capacity; |
+} |
+ |
+ |
Handle<ArrayList> ArrayList::EnsureSpace(Handle<ArrayList> array, int length) { |
int capacity = array->length(); |
bool empty = (capacity == 0); |