| 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 3751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3762 | 3762 |
| 3763 // Type specific at put (default NONE attributes is used when adding). | 3763 // Type specific at put (default NONE attributes is used when adding). |
| 3764 MUST_USE_RESULT static Handle<UnseededNumberDictionary> AtNumberPut( | 3764 MUST_USE_RESULT static Handle<UnseededNumberDictionary> AtNumberPut( |
| 3765 Handle<UnseededNumberDictionary> dictionary, | 3765 Handle<UnseededNumberDictionary> dictionary, |
| 3766 uint32_t key, | 3766 uint32_t key, |
| 3767 Handle<Object> value); | 3767 Handle<Object> value); |
| 3768 MUST_USE_RESULT static Handle<UnseededNumberDictionary> AddNumberEntry( | 3768 MUST_USE_RESULT static Handle<UnseededNumberDictionary> AddNumberEntry( |
| 3769 Handle<UnseededNumberDictionary> dictionary, | 3769 Handle<UnseededNumberDictionary> dictionary, |
| 3770 uint32_t key, | 3770 uint32_t key, |
| 3771 Handle<Object> value); | 3771 Handle<Object> value); |
| 3772 static Handle<UnseededNumberDictionary> DeleteKey( |
| 3773 Handle<UnseededNumberDictionary> dictionary, uint32_t key); |
| 3772 | 3774 |
| 3773 // Set an existing entry or add a new one if needed. | 3775 // Set an existing entry or add a new one if needed. |
| 3774 // Return the updated dictionary. | 3776 // Return the updated dictionary. |
| 3775 MUST_USE_RESULT static Handle<UnseededNumberDictionary> Set( | 3777 MUST_USE_RESULT static Handle<UnseededNumberDictionary> Set( |
| 3776 Handle<UnseededNumberDictionary> dictionary, | 3778 Handle<UnseededNumberDictionary> dictionary, |
| 3777 uint32_t key, | 3779 uint32_t key, |
| 3778 Handle<Object> value); | 3780 Handle<Object> value); |
| 3779 | 3781 |
| 3780 static const int kEntryValueIndex = 1; | 3782 static const int kEntryValueIndex = 1; |
| 3781 static const int kEntryDetailsIndex = 2; | 3783 static const int kEntryDetailsIndex = 2; |
| (...skipping 7211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10993 } | 10995 } |
| 10994 return value; | 10996 return value; |
| 10995 } | 10997 } |
| 10996 }; | 10998 }; |
| 10997 | 10999 |
| 10998 | 11000 |
| 10999 } // NOLINT, false-positive due to second-order macros. | 11001 } // NOLINT, false-positive due to second-order macros. |
| 11000 } // NOLINT, false-positive due to second-order macros. | 11002 } // NOLINT, false-positive due to second-order macros. |
| 11001 | 11003 |
| 11002 #endif // V8_OBJECTS_H_ | 11004 #endif // V8_OBJECTS_H_ |
| OLD | NEW |