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 10773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10784 }; | 10784 }; |
10785 | 10785 |
10786 | 10786 |
10787 class InterceptorInfo: public Struct { | 10787 class InterceptorInfo: public Struct { |
10788 public: | 10788 public: |
10789 DECL_ACCESSORS(getter, Object) | 10789 DECL_ACCESSORS(getter, Object) |
10790 DECL_ACCESSORS(setter, Object) | 10790 DECL_ACCESSORS(setter, Object) |
10791 DECL_ACCESSORS(query, Object) | 10791 DECL_ACCESSORS(query, Object) |
10792 DECL_ACCESSORS(deleter, Object) | 10792 DECL_ACCESSORS(deleter, Object) |
10793 DECL_ACCESSORS(enumerator, Object) | 10793 DECL_ACCESSORS(enumerator, Object) |
| 10794 DECL_ACCESSORS(definer, Object) |
10794 DECL_ACCESSORS(data, Object) | 10795 DECL_ACCESSORS(data, Object) |
10795 DECL_BOOLEAN_ACCESSORS(can_intercept_symbols) | 10796 DECL_BOOLEAN_ACCESSORS(can_intercept_symbols) |
10796 DECL_BOOLEAN_ACCESSORS(all_can_read) | 10797 DECL_BOOLEAN_ACCESSORS(all_can_read) |
10797 DECL_BOOLEAN_ACCESSORS(non_masking) | 10798 DECL_BOOLEAN_ACCESSORS(non_masking) |
10798 | 10799 |
10799 inline int flags() const; | 10800 inline int flags() const; |
10800 inline void set_flags(int flags); | 10801 inline void set_flags(int flags); |
10801 | 10802 |
10802 DECLARE_CAST(InterceptorInfo) | 10803 DECLARE_CAST(InterceptorInfo) |
10803 | 10804 |
10804 // Dispatched behavior. | 10805 // Dispatched behavior. |
10805 DECLARE_PRINTER(InterceptorInfo) | 10806 DECLARE_PRINTER(InterceptorInfo) |
10806 DECLARE_VERIFIER(InterceptorInfo) | 10807 DECLARE_VERIFIER(InterceptorInfo) |
10807 | 10808 |
10808 static const int kGetterOffset = HeapObject::kHeaderSize; | 10809 static const int kGetterOffset = HeapObject::kHeaderSize; |
10809 static const int kSetterOffset = kGetterOffset + kPointerSize; | 10810 static const int kSetterOffset = kGetterOffset + kPointerSize; |
10810 static const int kQueryOffset = kSetterOffset + kPointerSize; | 10811 static const int kQueryOffset = kSetterOffset + kPointerSize; |
10811 static const int kDeleterOffset = kQueryOffset + kPointerSize; | 10812 static const int kDeleterOffset = kQueryOffset + kPointerSize; |
10812 static const int kEnumeratorOffset = kDeleterOffset + kPointerSize; | 10813 static const int kEnumeratorOffset = kDeleterOffset + kPointerSize; |
10813 static const int kDataOffset = kEnumeratorOffset + kPointerSize; | 10814 static const int kDefinerOffset = kEnumeratorOffset + kPointerSize; |
| 10815 static const int kDataOffset = kDefinerOffset + kPointerSize; |
10814 static const int kFlagsOffset = kDataOffset + kPointerSize; | 10816 static const int kFlagsOffset = kDataOffset + kPointerSize; |
10815 static const int kSize = kFlagsOffset + kPointerSize; | 10817 static const int kSize = kFlagsOffset + kPointerSize; |
10816 | 10818 |
10817 static const int kCanInterceptSymbolsBit = 0; | 10819 static const int kCanInterceptSymbolsBit = 0; |
10818 static const int kAllCanReadBit = 1; | 10820 static const int kAllCanReadBit = 1; |
10819 static const int kNonMasking = 2; | 10821 static const int kNonMasking = 2; |
10820 | 10822 |
10821 private: | 10823 private: |
10822 DISALLOW_IMPLICIT_CONSTRUCTORS(InterceptorInfo); | 10824 DISALLOW_IMPLICIT_CONSTRUCTORS(InterceptorInfo); |
10823 }; | 10825 }; |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11201 } | 11203 } |
11202 return value; | 11204 return value; |
11203 } | 11205 } |
11204 }; | 11206 }; |
11205 | 11207 |
11206 | 11208 |
11207 } // NOLINT, false-positive due to second-order macros. | 11209 } // NOLINT, false-positive due to second-order macros. |
11208 } // NOLINT, false-positive due to second-order macros. | 11210 } // NOLINT, false-positive due to second-order macros. |
11209 | 11211 |
11210 #endif // V8_OBJECTS_H_ | 11212 #endif // V8_OBJECTS_H_ |
OLD | NEW |