| 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 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 3829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3840 int* entry_out = nullptr); | 3840 int* entry_out = nullptr); |
| 3841 | 3841 |
| 3842 // Returns iteration indices array for the |dictionary|. | 3842 // Returns iteration indices array for the |dictionary|. |
| 3843 // Values are direct indices in the |HashTable| array. | 3843 // Values are direct indices in the |HashTable| array. |
| 3844 static Handle<FixedArray> BuildIterationIndicesArray( | 3844 static Handle<FixedArray> BuildIterationIndicesArray( |
| 3845 Handle<Derived> dictionary); | 3845 Handle<Derived> dictionary); |
| 3846 | 3846 |
| 3847 static const int kMaxNumberKeyIndex = DerivedHashTable::kPrefixStartIndex; | 3847 static const int kMaxNumberKeyIndex = DerivedHashTable::kPrefixStartIndex; |
| 3848 static const int kNextEnumerationIndexIndex = kMaxNumberKeyIndex + 1; | 3848 static const int kNextEnumerationIndexIndex = kMaxNumberKeyIndex + 1; |
| 3849 | 3849 |
| 3850 static const bool kIsEnumerable = Shape::kIsEnumerable; | |
| 3851 | |
| 3852 protected: | 3850 protected: |
| 3853 // Generic at put operation. | 3851 // Generic at put operation. |
| 3854 MUST_USE_RESULT static Handle<Derived> AtPut( | 3852 MUST_USE_RESULT static Handle<Derived> AtPut( |
| 3855 Handle<Derived> dictionary, | 3853 Handle<Derived> dictionary, |
| 3856 Key key, | 3854 Key key, |
| 3857 Handle<Object> value); | 3855 Handle<Object> value); |
| 3858 // Add entry to dictionary. Returns entry value. | 3856 // Add entry to dictionary. Returns entry value. |
| 3859 static int AddEntry(Handle<Derived> dictionary, Key key, Handle<Object> value, | 3857 static int AddEntry(Handle<Derived> dictionary, Key key, Handle<Object> value, |
| 3860 PropertyDetails details, uint32_t hash); | 3858 PropertyDetails details, uint32_t hash); |
| 3861 // Generate new enumeration indices to avoid enumeration index overflow. | 3859 // Generate new enumeration indices to avoid enumeration index overflow. |
| (...skipping 8007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11869 } | 11867 } |
| 11870 return value; | 11868 return value; |
| 11871 } | 11869 } |
| 11872 }; | 11870 }; |
| 11873 | 11871 |
| 11874 | 11872 |
| 11875 } // NOLINT, false-positive due to second-order macros. | 11873 } // NOLINT, false-positive due to second-order macros. |
| 11876 } // NOLINT, false-positive due to second-order macros. | 11874 } // NOLINT, false-positive due to second-order macros. |
| 11877 | 11875 |
| 11878 #endif // V8_OBJECTS_H_ | 11876 #endif // V8_OBJECTS_H_ |
| OLD | NEW |