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 2769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2780 static Handle<ArrayList> Add(Handle<ArrayList> array, Handle<Object> obj, | 2780 static Handle<ArrayList> Add(Handle<ArrayList> array, Handle<Object> obj, |
2781 AddMode mode = kNone); | 2781 AddMode mode = kNone); |
2782 static Handle<ArrayList> Add(Handle<ArrayList> array, Handle<Object> obj1, | 2782 static Handle<ArrayList> Add(Handle<ArrayList> array, Handle<Object> obj1, |
2783 Handle<Object> obj2, AddMode = kNone); | 2783 Handle<Object> obj2, AddMode = kNone); |
2784 inline int Length(); | 2784 inline int Length(); |
2785 inline void SetLength(int length); | 2785 inline void SetLength(int length); |
2786 inline Object* Get(int index); | 2786 inline Object* Get(int index); |
2787 inline Object** Slot(int index); | 2787 inline Object** Slot(int index); |
2788 inline void Set(int index, Object* obj); | 2788 inline void Set(int index, Object* obj); |
2789 inline void Clear(int index, Object* undefined); | 2789 inline void Clear(int index, Object* undefined); |
| 2790 bool IsFull(); |
2790 DECLARE_CAST(ArrayList) | 2791 DECLARE_CAST(ArrayList) |
2791 | 2792 |
2792 private: | 2793 private: |
2793 static Handle<ArrayList> EnsureSpace(Handle<ArrayList> array, int length); | 2794 static Handle<ArrayList> EnsureSpace(Handle<ArrayList> array, int length); |
2794 static const int kLengthIndex = 0; | 2795 static const int kLengthIndex = 0; |
2795 static const int kFirstIndex = 1; | 2796 static const int kFirstIndex = 1; |
2796 DISALLOW_IMPLICIT_CONSTRUCTORS(ArrayList); | 2797 DISALLOW_IMPLICIT_CONSTRUCTORS(ArrayList); |
2797 }; | 2798 }; |
2798 | 2799 |
2799 | 2800 |
(...skipping 7884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10684 } | 10685 } |
10685 return value; | 10686 return value; |
10686 } | 10687 } |
10687 }; | 10688 }; |
10688 | 10689 |
10689 | 10690 |
10690 } // NOLINT, false-positive due to second-order macros. | 10691 } // NOLINT, false-positive due to second-order macros. |
10691 } // NOLINT, false-positive due to second-order macros. | 10692 } // NOLINT, false-positive due to second-order macros. |
10692 | 10693 |
10693 #endif // V8_OBJECTS_H_ | 10694 #endif // V8_OBJECTS_H_ |
OLD | NEW |