| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/assert-scope.h" | 10 #include "src/assert-scope.h" |
| (...skipping 2835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2846 kReloadLengthAfterAllocation, | 2846 kReloadLengthAfterAllocation, |
| 2847 }; | 2847 }; |
| 2848 static Handle<ArrayList> Add(Handle<ArrayList> array, Handle<Object> obj, | 2848 static Handle<ArrayList> Add(Handle<ArrayList> array, Handle<Object> obj, |
| 2849 AddMode mode = kNone); | 2849 AddMode mode = kNone); |
| 2850 static Handle<ArrayList> Add(Handle<ArrayList> array, Handle<Object> obj1, | 2850 static Handle<ArrayList> Add(Handle<ArrayList> array, Handle<Object> obj1, |
| 2851 Handle<Object> obj2, AddMode = kNone); | 2851 Handle<Object> obj2, AddMode = kNone); |
| 2852 inline int Length(); | 2852 inline int Length(); |
| 2853 inline void SetLength(int length); | 2853 inline void SetLength(int length); |
| 2854 inline Object* Get(int index); | 2854 inline Object* Get(int index); |
| 2855 inline Object** Slot(int index); | 2855 inline Object** Slot(int index); |
| 2856 inline void Set(int index, Object* obj, | 2856 inline void Set(int index, Object* obj); |
| 2857 WriteBarrierMode mode = UPDATE_WRITE_BARRIER); | |
| 2858 inline void Clear(int index, Object* undefined); | 2857 inline void Clear(int index, Object* undefined); |
| 2859 bool IsFull(); | 2858 bool IsFull(); |
| 2860 DECLARE_CAST(ArrayList) | 2859 DECLARE_CAST(ArrayList) |
| 2861 | 2860 |
| 2862 private: | 2861 private: |
| 2863 static Handle<ArrayList> EnsureSpace(Handle<ArrayList> array, int length); | 2862 static Handle<ArrayList> EnsureSpace(Handle<ArrayList> array, int length); |
| 2864 static const int kLengthIndex = 0; | 2863 static const int kLengthIndex = 0; |
| 2865 static const int kFirstIndex = 1; | 2864 static const int kFirstIndex = 1; |
| 2866 DISALLOW_IMPLICIT_CONSTRUCTORS(ArrayList); | 2865 DISALLOW_IMPLICIT_CONSTRUCTORS(ArrayList); |
| 2867 }; | 2866 }; |
| (...skipping 7939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10807 } | 10806 } |
| 10808 return value; | 10807 return value; |
| 10809 } | 10808 } |
| 10810 }; | 10809 }; |
| 10811 | 10810 |
| 10812 | 10811 |
| 10813 } // NOLINT, false-positive due to second-order macros. | 10812 } // NOLINT, false-positive due to second-order macros. |
| 10814 } // NOLINT, false-positive due to second-order macros. | 10813 } // NOLINT, false-positive due to second-order macros. |
| 10815 | 10814 |
| 10816 #endif // V8_OBJECTS_H_ | 10815 #endif // V8_OBJECTS_H_ |
| OLD | NEW |