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 2839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2850 kReloadLengthAfterAllocation, | 2850 kReloadLengthAfterAllocation, |
2851 }; | 2851 }; |
2852 static Handle<ArrayList> Add(Handle<ArrayList> array, Handle<Object> obj, | 2852 static Handle<ArrayList> Add(Handle<ArrayList> array, Handle<Object> obj, |
2853 AddMode mode = kNone); | 2853 AddMode mode = kNone); |
2854 static Handle<ArrayList> Add(Handle<ArrayList> array, Handle<Object> obj1, | 2854 static Handle<ArrayList> Add(Handle<ArrayList> array, Handle<Object> obj1, |
2855 Handle<Object> obj2, AddMode = kNone); | 2855 Handle<Object> obj2, AddMode = kNone); |
2856 inline int Length(); | 2856 inline int Length(); |
2857 inline void SetLength(int length); | 2857 inline void SetLength(int length); |
2858 inline Object* Get(int index); | 2858 inline Object* Get(int index); |
2859 inline Object** Slot(int index); | 2859 inline Object** Slot(int index); |
2860 inline void Set(int index, Object* obj, | 2860 inline void Set(int index, Object* obj); |
2861 WriteBarrierMode mode = UPDATE_WRITE_BARRIER); | |
2862 inline void Clear(int index, Object* undefined); | 2861 inline void Clear(int index, Object* undefined); |
2863 bool IsFull(); | 2862 bool IsFull(); |
2864 DECLARE_CAST(ArrayList) | 2863 DECLARE_CAST(ArrayList) |
2865 | 2864 |
2866 private: | 2865 private: |
2867 static Handle<ArrayList> EnsureSpace(Handle<ArrayList> array, int length); | 2866 static Handle<ArrayList> EnsureSpace(Handle<ArrayList> array, int length); |
2868 static const int kLengthIndex = 0; | 2867 static const int kLengthIndex = 0; |
2869 static const int kFirstIndex = 1; | 2868 static const int kFirstIndex = 1; |
2870 DISALLOW_IMPLICIT_CONSTRUCTORS(ArrayList); | 2869 DISALLOW_IMPLICIT_CONSTRUCTORS(ArrayList); |
2871 }; | 2870 }; |
(...skipping 7944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10816 } | 10815 } |
10817 return value; | 10816 return value; |
10818 } | 10817 } |
10819 }; | 10818 }; |
10820 | 10819 |
10821 | 10820 |
10822 } // NOLINT, false-positive due to second-order macros. | 10821 } // NOLINT, false-positive due to second-order macros. |
10823 } // NOLINT, false-positive due to second-order macros. | 10822 } // NOLINT, false-positive due to second-order macros. |
10824 | 10823 |
10825 #endif // V8_OBJECTS_H_ | 10824 #endif // V8_OBJECTS_H_ |
OLD | NEW |