| 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 9760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9771 static const int kHashOffset = kHandlerOffset + kPointerSize; | 9771 static const int kHashOffset = kHandlerOffset + kPointerSize; |
| 9772 static const int kSize = kHashOffset + kPointerSize; | 9772 static const int kSize = kHashOffset + kPointerSize; |
| 9773 | 9773 |
| 9774 typedef FixedBodyDescriptor<JSReceiver::kPropertiesOffset, kSize, kSize> | 9774 typedef FixedBodyDescriptor<JSReceiver::kPropertiesOffset, kSize, kSize> |
| 9775 BodyDescriptor; | 9775 BodyDescriptor; |
| 9776 | 9776 |
| 9777 MUST_USE_RESULT Object* GetIdentityHash(); | 9777 MUST_USE_RESULT Object* GetIdentityHash(); |
| 9778 | 9778 |
| 9779 static Handle<Smi> GetOrCreateIdentityHash(Handle<JSProxy> proxy); | 9779 static Handle<Smi> GetOrCreateIdentityHash(Handle<JSProxy> proxy); |
| 9780 | 9780 |
| 9781 private: | 9781 static Maybe<bool> SetPrivateProperty(Isolate* isolate, Handle<JSProxy> proxy, |
| 9782 static Maybe<bool> AddPrivateProperty(Isolate* isolate, Handle<JSProxy> proxy, | |
| 9783 Handle<Symbol> private_name, | 9782 Handle<Symbol> private_name, |
| 9784 PropertyDescriptor* desc, | 9783 PropertyDescriptor* desc, |
| 9785 ShouldThrow should_throw); | 9784 ShouldThrow should_throw); |
| 9786 | 9785 |
| 9786 private: |
| 9787 DISALLOW_IMPLICIT_CONSTRUCTORS(JSProxy); | 9787 DISALLOW_IMPLICIT_CONSTRUCTORS(JSProxy); |
| 9788 }; | 9788 }; |
| 9789 | 9789 |
| 9790 | 9790 |
| 9791 class JSCollection : public JSObject { | 9791 class JSCollection : public JSObject { |
| 9792 public: | 9792 public: |
| 9793 // [table]: the backing hash table | 9793 // [table]: the backing hash table |
| 9794 DECL_ACCESSORS(table, Object) | 9794 DECL_ACCESSORS(table, Object) |
| 9795 | 9795 |
| 9796 static const int kTableOffset = JSObject::kHeaderSize; | 9796 static const int kTableOffset = JSObject::kHeaderSize; |
| (...skipping 1040 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 |