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 10745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10756 }; | 10756 }; |
10757 | 10757 |
10758 | 10758 |
10759 class InterceptorInfo: public Struct { | 10759 class InterceptorInfo: public Struct { |
10760 public: | 10760 public: |
10761 DECL_ACCESSORS(getter, Object) | 10761 DECL_ACCESSORS(getter, Object) |
10762 DECL_ACCESSORS(setter, Object) | 10762 DECL_ACCESSORS(setter, Object) |
10763 DECL_ACCESSORS(query, Object) | 10763 DECL_ACCESSORS(query, Object) |
10764 DECL_ACCESSORS(deleter, Object) | 10764 DECL_ACCESSORS(deleter, Object) |
10765 DECL_ACCESSORS(enumerator, Object) | 10765 DECL_ACCESSORS(enumerator, Object) |
10766 DECL_ACCESSORS(definer, Object) | |
10767 DECL_ACCESSORS(data, Object) | 10766 DECL_ACCESSORS(data, Object) |
10768 DECL_BOOLEAN_ACCESSORS(can_intercept_symbols) | 10767 DECL_BOOLEAN_ACCESSORS(can_intercept_symbols) |
10769 DECL_BOOLEAN_ACCESSORS(all_can_read) | 10768 DECL_BOOLEAN_ACCESSORS(all_can_read) |
10770 DECL_BOOLEAN_ACCESSORS(non_masking) | 10769 DECL_BOOLEAN_ACCESSORS(non_masking) |
10771 | 10770 |
10772 inline int flags() const; | 10771 inline int flags() const; |
10773 inline void set_flags(int flags); | 10772 inline void set_flags(int flags); |
10774 | 10773 |
10775 DECLARE_CAST(InterceptorInfo) | 10774 DECLARE_CAST(InterceptorInfo) |
10776 | 10775 |
10777 // Dispatched behavior. | 10776 // Dispatched behavior. |
10778 DECLARE_PRINTER(InterceptorInfo) | 10777 DECLARE_PRINTER(InterceptorInfo) |
10779 DECLARE_VERIFIER(InterceptorInfo) | 10778 DECLARE_VERIFIER(InterceptorInfo) |
10780 | 10779 |
10781 static const int kGetterOffset = HeapObject::kHeaderSize; | 10780 static const int kGetterOffset = HeapObject::kHeaderSize; |
10782 static const int kSetterOffset = kGetterOffset + kPointerSize; | 10781 static const int kSetterOffset = kGetterOffset + kPointerSize; |
10783 static const int kQueryOffset = kSetterOffset + kPointerSize; | 10782 static const int kQueryOffset = kSetterOffset + kPointerSize; |
10784 static const int kDeleterOffset = kQueryOffset + kPointerSize; | 10783 static const int kDeleterOffset = kQueryOffset + kPointerSize; |
10785 static const int kEnumeratorOffset = kDeleterOffset + kPointerSize; | 10784 static const int kEnumeratorOffset = kDeleterOffset + kPointerSize; |
10786 static const int kDefinerOffset = kEnumeratorOffset + kPointerSize; | 10785 static const int kDataOffset = kEnumeratorOffset + kPointerSize; |
10787 static const int kDataOffset = kDefinerOffset + kPointerSize; | |
10788 static const int kFlagsOffset = kDataOffset + kPointerSize; | 10786 static const int kFlagsOffset = kDataOffset + kPointerSize; |
10789 static const int kSize = kFlagsOffset + kPointerSize; | 10787 static const int kSize = kFlagsOffset + kPointerSize; |
10790 | 10788 |
10791 static const int kCanInterceptSymbolsBit = 0; | 10789 static const int kCanInterceptSymbolsBit = 0; |
10792 static const int kAllCanReadBit = 1; | 10790 static const int kAllCanReadBit = 1; |
10793 static const int kNonMasking = 2; | 10791 static const int kNonMasking = 2; |
10794 | 10792 |
10795 private: | 10793 private: |
10796 DISALLOW_IMPLICIT_CONSTRUCTORS(InterceptorInfo); | 10794 DISALLOW_IMPLICIT_CONSTRUCTORS(InterceptorInfo); |
10797 }; | 10795 }; |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11175 } | 11173 } |
11176 return value; | 11174 return value; |
11177 } | 11175 } |
11178 }; | 11176 }; |
11179 | 11177 |
11180 | 11178 |
11181 } // NOLINT, false-positive due to second-order macros. | 11179 } // NOLINT, false-positive due to second-order macros. |
11182 } // NOLINT, false-positive due to second-order macros. | 11180 } // NOLINT, false-positive due to second-order macros. |
11183 | 11181 |
11184 #endif // V8_OBJECTS_H_ | 11182 #endif // V8_OBJECTS_H_ |
OLD | NEW |