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 2983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2994 int slack = 0); | 2994 int slack = 0); |
2995 | 2995 |
2996 // Sort the instance descriptors by the hash codes of their keys. | 2996 // Sort the instance descriptors by the hash codes of their keys. |
2997 void Sort(); | 2997 void Sort(); |
2998 | 2998 |
2999 // Search the instance descriptors for given name. | 2999 // Search the instance descriptors for given name. |
3000 INLINE(int Search(Name* name, int number_of_own_descriptors)); | 3000 INLINE(int Search(Name* name, int number_of_own_descriptors)); |
3001 | 3001 |
3002 // As the above, but uses DescriptorLookupCache and updates it when | 3002 // As the above, but uses DescriptorLookupCache and updates it when |
3003 // necessary. | 3003 // necessary. |
3004 INLINE(int SearchWithCache(Name* name, Map* map)); | 3004 INLINE(int SearchWithCache(Isolate* isolate, Name* name, Map* map)); |
3005 | 3005 |
3006 bool IsEqualUpTo(DescriptorArray* desc, int nof_descriptors); | 3006 bool IsEqualUpTo(DescriptorArray* desc, int nof_descriptors); |
3007 | 3007 |
3008 // Allocates a DescriptorArray, but returns the singleton | 3008 // Allocates a DescriptorArray, but returns the singleton |
3009 // empty descriptor array object if number_of_descriptors is 0. | 3009 // empty descriptor array object if number_of_descriptors is 0. |
3010 static Handle<DescriptorArray> Allocate( | 3010 static Handle<DescriptorArray> Allocate( |
3011 Isolate* isolate, int number_of_descriptors, int slack, | 3011 Isolate* isolate, int number_of_descriptors, int slack, |
3012 PretenureFlag pretenure = NOT_TENURED); | 3012 PretenureFlag pretenure = NOT_TENURED); |
3013 | 3013 |
3014 DECLARE_CAST(DescriptorArray) | 3014 DECLARE_CAST(DescriptorArray) |
(...skipping 7822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10837 } | 10837 } |
10838 return value; | 10838 return value; |
10839 } | 10839 } |
10840 }; | 10840 }; |
10841 | 10841 |
10842 | 10842 |
10843 } // NOLINT, false-positive due to second-order macros. | 10843 } // NOLINT, false-positive due to second-order macros. |
10844 } // NOLINT, false-positive due to second-order macros. | 10844 } // NOLINT, false-positive due to second-order macros. |
10845 | 10845 |
10846 #endif // V8_OBJECTS_H_ | 10846 #endif // V8_OBJECTS_H_ |
OLD | NEW |