| 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 2940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2951 inline Object** GetEnumCacheSlot(); | 2951 inline Object** GetEnumCacheSlot(); |
| 2952 | 2952 |
| 2953 void ClearEnumCache(); | 2953 void ClearEnumCache(); |
| 2954 | 2954 |
| 2955 // Initialize or change the enum cache, | 2955 // Initialize or change the enum cache, |
| 2956 // using the supplied storage for the small "bridge". | 2956 // using the supplied storage for the small "bridge". |
| 2957 static void SetEnumCache(Handle<DescriptorArray> descriptors, | 2957 static void SetEnumCache(Handle<DescriptorArray> descriptors, |
| 2958 Isolate* isolate, Handle<FixedArray> new_cache, | 2958 Isolate* isolate, Handle<FixedArray> new_cache, |
| 2959 Handle<FixedArray> new_index_cache); | 2959 Handle<FixedArray> new_index_cache); |
| 2960 | 2960 |
| 2961 bool CanHoldValue(int descriptor, Object* value); | |
| 2962 | |
| 2963 // Accessors for fetching instance descriptor at descriptor number. | 2961 // Accessors for fetching instance descriptor at descriptor number. |
| 2964 inline Name* GetKey(int descriptor_number); | 2962 inline Name* GetKey(int descriptor_number); |
| 2965 inline Object** GetKeySlot(int descriptor_number); | 2963 inline Object** GetKeySlot(int descriptor_number); |
| 2966 inline Object* GetValue(int descriptor_number); | 2964 inline Object* GetValue(int descriptor_number); |
| 2967 inline void SetValue(int descriptor_number, Object* value); | 2965 inline void SetValue(int descriptor_number, Object* value); |
| 2968 inline Object** GetValueSlot(int descriptor_number); | 2966 inline Object** GetValueSlot(int descriptor_number); |
| 2969 static inline int GetValueOffset(int descriptor_number); | 2967 static inline int GetValueOffset(int descriptor_number); |
| 2970 inline Object** GetDescriptorStartSlot(int descriptor_number); | 2968 inline Object** GetDescriptorStartSlot(int descriptor_number); |
| 2971 inline Object** GetDescriptorEndSlot(int descriptor_number); | 2969 inline Object** GetDescriptorEndSlot(int descriptor_number); |
| 2972 inline PropertyDetails GetDetails(int descriptor_number); | 2970 inline PropertyDetails GetDetails(int descriptor_number); |
| (...skipping 7877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10850 } | 10848 } |
| 10851 return value; | 10849 return value; |
| 10852 } | 10850 } |
| 10853 }; | 10851 }; |
| 10854 | 10852 |
| 10855 | 10853 |
| 10856 } // NOLINT, false-positive due to second-order macros. | 10854 } // NOLINT, false-positive due to second-order macros. |
| 10857 } // NOLINT, false-positive due to second-order macros. | 10855 } // NOLINT, false-positive due to second-order macros. |
| 10858 | 10856 |
| 10859 #endif // V8_OBJECTS_H_ | 10857 #endif // V8_OBJECTS_H_ |
| OLD | NEW |