OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 2781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2792 static Handle<ArrayList> Add(Handle<ArrayList> array, Handle<Object> obj, | 2792 static Handle<ArrayList> Add(Handle<ArrayList> array, Handle<Object> obj, |
2793 AddMode mode = kNone); | 2793 AddMode mode = kNone); |
2794 static Handle<ArrayList> Add(Handle<ArrayList> array, Handle<Object> obj1, | 2794 static Handle<ArrayList> Add(Handle<ArrayList> array, Handle<Object> obj1, |
2795 Handle<Object> obj2, AddMode = kNone); | 2795 Handle<Object> obj2, AddMode = kNone); |
2796 inline int Length(); | 2796 inline int Length(); |
2797 inline void SetLength(int length); | 2797 inline void SetLength(int length); |
2798 inline Object* Get(int index); | 2798 inline Object* Get(int index); |
2799 inline Object** Slot(int index); | 2799 inline Object** Slot(int index); |
2800 inline void Set(int index, Object* obj); | 2800 inline void Set(int index, Object* obj); |
2801 inline void Clear(int index, Object* undefined); | 2801 inline void Clear(int index, Object* undefined); |
| 2802 bool IsFull(); |
2802 DECLARE_CAST(ArrayList) | 2803 DECLARE_CAST(ArrayList) |
2803 | 2804 |
2804 private: | 2805 private: |
2805 static Handle<ArrayList> EnsureSpace(Handle<ArrayList> array, int length); | 2806 static Handle<ArrayList> EnsureSpace(Handle<ArrayList> array, int length); |
2806 static const int kLengthIndex = 0; | 2807 static const int kLengthIndex = 0; |
2807 static const int kFirstIndex = 1; | 2808 static const int kFirstIndex = 1; |
2808 DISALLOW_IMPLICIT_CONSTRUCTORS(ArrayList); | 2809 DISALLOW_IMPLICIT_CONSTRUCTORS(ArrayList); |
2809 }; | 2810 }; |
2810 | 2811 |
2811 | 2812 |
(...skipping 7909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10721 } | 10722 } |
10722 return value; | 10723 return value; |
10723 } | 10724 } |
10724 }; | 10725 }; |
10725 | 10726 |
10726 | 10727 |
10727 } // NOLINT, false-positive due to second-order macros. | 10728 } // NOLINT, false-positive due to second-order macros. |
10728 } // NOLINT, false-positive due to second-order macros. | 10729 } // NOLINT, false-positive due to second-order macros. |
10729 | 10730 |
10730 #endif // V8_OBJECTS_H_ | 10731 #endif // V8_OBJECTS_H_ |
OLD | NEW |