| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 243b10b222a0a662165d57a82a46b852d1ddf7f4..f311b523ffcf6f86c27d5f889a7399f7a565e535 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -10018,6 +10018,12 @@ Handle<ArrayList> ArrayList::Add(Handle<ArrayList> array, Handle<Object> obj1,
|
| return array;
|
| }
|
|
|
| +Handle<ArrayList> ArrayList::New(Isolate* isolate, int size) {
|
| + Handle<ArrayList> result = Handle<ArrayList>::cast(
|
| + isolate->factory()->NewFixedArray(size + kFirstIndex));
|
| + result->SetLength(0);
|
| + return result;
|
| +}
|
|
|
| bool ArrayList::IsFull() {
|
| int capacity = length();
|
|
|