| 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 2523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2534 // the inline-stored identity hash. | 2534 // the inline-stored identity hash. |
| 2535 static Handle<Object> SetHiddenPropertiesHashTable( | 2535 static Handle<Object> SetHiddenPropertiesHashTable( |
| 2536 Handle<JSObject> object, | 2536 Handle<JSObject> object, |
| 2537 Handle<Object> value); | 2537 Handle<Object> value); |
| 2538 | 2538 |
| 2539 static Handle<Object> GetIdentityHash(Isolate* isolate, | 2539 static Handle<Object> GetIdentityHash(Isolate* isolate, |
| 2540 Handle<JSObject> object); | 2540 Handle<JSObject> object); |
| 2541 | 2541 |
| 2542 static Handle<Smi> GetOrCreateIdentityHash(Handle<JSObject> object); | 2542 static Handle<Smi> GetOrCreateIdentityHash(Handle<JSObject> object); |
| 2543 | 2543 |
| 2544 static Handle<SeededNumberDictionary> GetNormalizedElementDictionary( | |
| 2545 Handle<JSObject> object, Handle<FixedArrayBase> elements); | |
| 2546 | |
| 2547 // Helper for fast versions of preventExtensions, seal, and freeze. | 2544 // Helper for fast versions of preventExtensions, seal, and freeze. |
| 2548 // attrs is one of NONE, SEALED, or FROZEN (depending on the operation). | 2545 // attrs is one of NONE, SEALED, or FROZEN (depending on the operation). |
| 2549 template <PropertyAttributes attrs> | 2546 template <PropertyAttributes attrs> |
| 2550 MUST_USE_RESULT static Maybe<bool> PreventExtensionsWithTransition( | 2547 MUST_USE_RESULT static Maybe<bool> PreventExtensionsWithTransition( |
| 2551 Handle<JSObject> object, ShouldThrow should_throw); | 2548 Handle<JSObject> object, ShouldThrow should_throw); |
| 2552 | 2549 |
| 2553 MUST_USE_RESULT static Maybe<bool> SetPrototypeUnobserved( | 2550 MUST_USE_RESULT static Maybe<bool> SetPrototypeUnobserved( |
| 2554 Handle<JSObject> object, Handle<Object> value, bool from_javascript, | 2551 Handle<JSObject> object, Handle<Object> value, bool from_javascript, |
| 2555 ShouldThrow should_throw); | 2552 ShouldThrow should_throw); |
| 2556 | 2553 |
| (...skipping 8331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10888 } | 10885 } |
| 10889 return value; | 10886 return value; |
| 10890 } | 10887 } |
| 10891 }; | 10888 }; |
| 10892 | 10889 |
| 10893 | 10890 |
| 10894 } // NOLINT, false-positive due to second-order macros. | 10891 } // NOLINT, false-positive due to second-order macros. |
| 10895 } // NOLINT, false-positive due to second-order macros. | 10892 } // NOLINT, false-positive due to second-order macros. |
| 10896 | 10893 |
| 10897 #endif // V8_OBJECTS_H_ | 10894 #endif // V8_OBJECTS_H_ |
| OLD | NEW |