| 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/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 2965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2976 INLINE(int Search(Name* name, int number_of_own_descriptors)); | 2976 INLINE(int Search(Name* name, int number_of_own_descriptors)); |
| 2977 | 2977 |
| 2978 // As the above, but uses DescriptorLookupCache and updates it when | 2978 // As the above, but uses DescriptorLookupCache and updates it when |
| 2979 // necessary. | 2979 // necessary. |
| 2980 INLINE(int SearchWithCache(Name* name, Map* map)); | 2980 INLINE(int SearchWithCache(Name* name, Map* map)); |
| 2981 | 2981 |
| 2982 bool IsEqualUpTo(DescriptorArray* desc, int nof_descriptors); | 2982 bool IsEqualUpTo(DescriptorArray* desc, int nof_descriptors); |
| 2983 | 2983 |
| 2984 // Allocates a DescriptorArray, but returns the singleton | 2984 // Allocates a DescriptorArray, but returns the singleton |
| 2985 // empty descriptor array object if number_of_descriptors is 0. | 2985 // empty descriptor array object if number_of_descriptors is 0. |
| 2986 static Handle<DescriptorArray> Allocate(Isolate* isolate, | 2986 static Handle<DescriptorArray> Allocate( |
| 2987 int number_of_descriptors, | 2987 Isolate* isolate, int number_of_descriptors, int slack, |
| 2988 int slack = 0); | 2988 PretenureFlag pretenure = NOT_TENURED); |
| 2989 | 2989 |
| 2990 DECLARE_CAST(DescriptorArray) | 2990 DECLARE_CAST(DescriptorArray) |
| 2991 | 2991 |
| 2992 // Constant for denoting key was not found. | 2992 // Constant for denoting key was not found. |
| 2993 static const int kNotFound = -1; | 2993 static const int kNotFound = -1; |
| 2994 | 2994 |
| 2995 static const int kDescriptorLengthIndex = 0; | 2995 static const int kDescriptorLengthIndex = 0; |
| 2996 static const int kEnumCacheIndex = 1; | 2996 static const int kEnumCacheIndex = 1; |
| 2997 static const int kFirstIndex = 2; | 2997 static const int kFirstIndex = 2; |
| 2998 | 2998 |
| (...skipping 7799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10798 } | 10798 } |
| 10799 return value; | 10799 return value; |
| 10800 } | 10800 } |
| 10801 }; | 10801 }; |
| 10802 | 10802 |
| 10803 | 10803 |
| 10804 } // NOLINT, false-positive due to second-order macros. | 10804 } // NOLINT, false-positive due to second-order macros. |
| 10805 } // NOLINT, false-positive due to second-order macros. | 10805 } // NOLINT, false-positive due to second-order macros. |
| 10806 | 10806 |
| 10807 #endif // V8_OBJECTS_H_ | 10807 #endif // V8_OBJECTS_H_ |
| OLD | NEW |