| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 10555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10566 class InterceptorInfo: public Struct { | 10566 class InterceptorInfo: public Struct { |
| 10567 public: | 10567 public: |
| 10568 DECL_ACCESSORS(getter, Object) | 10568 DECL_ACCESSORS(getter, Object) |
| 10569 DECL_ACCESSORS(setter, Object) | 10569 DECL_ACCESSORS(setter, Object) |
| 10570 DECL_ACCESSORS(query, Object) | 10570 DECL_ACCESSORS(query, Object) |
| 10571 DECL_ACCESSORS(deleter, Object) | 10571 DECL_ACCESSORS(deleter, Object) |
| 10572 DECL_ACCESSORS(enumerator, Object) | 10572 DECL_ACCESSORS(enumerator, Object) |
| 10573 DECL_ACCESSORS(data, Object) | 10573 DECL_ACCESSORS(data, Object) |
| 10574 DECL_BOOLEAN_ACCESSORS(can_intercept_symbols) | 10574 DECL_BOOLEAN_ACCESSORS(can_intercept_symbols) |
| 10575 DECL_BOOLEAN_ACCESSORS(all_can_read) | 10575 DECL_BOOLEAN_ACCESSORS(all_can_read) |
| 10576 DECL_BOOLEAN_ACCESSORS(non_masking) |
| 10576 | 10577 |
| 10577 inline int flags() const; | 10578 inline int flags() const; |
| 10578 inline void set_flags(int flags); | 10579 inline void set_flags(int flags); |
| 10579 | 10580 |
| 10580 DECLARE_CAST(InterceptorInfo) | 10581 DECLARE_CAST(InterceptorInfo) |
| 10581 | 10582 |
| 10582 // Dispatched behavior. | 10583 // Dispatched behavior. |
| 10583 DECLARE_PRINTER(InterceptorInfo) | 10584 DECLARE_PRINTER(InterceptorInfo) |
| 10584 DECLARE_VERIFIER(InterceptorInfo) | 10585 DECLARE_VERIFIER(InterceptorInfo) |
| 10585 | 10586 |
| 10586 static const int kGetterOffset = HeapObject::kHeaderSize; | 10587 static const int kGetterOffset = HeapObject::kHeaderSize; |
| 10587 static const int kSetterOffset = kGetterOffset + kPointerSize; | 10588 static const int kSetterOffset = kGetterOffset + kPointerSize; |
| 10588 static const int kQueryOffset = kSetterOffset + kPointerSize; | 10589 static const int kQueryOffset = kSetterOffset + kPointerSize; |
| 10589 static const int kDeleterOffset = kQueryOffset + kPointerSize; | 10590 static const int kDeleterOffset = kQueryOffset + kPointerSize; |
| 10590 static const int kEnumeratorOffset = kDeleterOffset + kPointerSize; | 10591 static const int kEnumeratorOffset = kDeleterOffset + kPointerSize; |
| 10591 static const int kDataOffset = kEnumeratorOffset + kPointerSize; | 10592 static const int kDataOffset = kEnumeratorOffset + kPointerSize; |
| 10592 static const int kFlagsOffset = kDataOffset + kPointerSize; | 10593 static const int kFlagsOffset = kDataOffset + kPointerSize; |
| 10593 static const int kSize = kFlagsOffset + kPointerSize; | 10594 static const int kSize = kFlagsOffset + kPointerSize; |
| 10594 | 10595 |
| 10595 static const int kCanInterceptSymbolsBit = 0; | 10596 static const int kCanInterceptSymbolsBit = 0; |
| 10596 static const int kAllCanReadBit = 1; | 10597 static const int kAllCanReadBit = 1; |
| 10598 static const int kNonMasking = 2; |
| 10597 | 10599 |
| 10598 private: | 10600 private: |
| 10599 DISALLOW_IMPLICIT_CONSTRUCTORS(InterceptorInfo); | 10601 DISALLOW_IMPLICIT_CONSTRUCTORS(InterceptorInfo); |
| 10600 }; | 10602 }; |
| 10601 | 10603 |
| 10602 | 10604 |
| 10603 class CallHandlerInfo: public Struct { | 10605 class CallHandlerInfo: public Struct { |
| 10604 public: | 10606 public: |
| 10605 DECL_ACCESSORS(callback, Object) | 10607 DECL_ACCESSORS(callback, Object) |
| 10606 DECL_ACCESSORS(data, Object) | 10608 DECL_ACCESSORS(data, Object) |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10987 } else { | 10989 } else { |
| 10988 value &= ~(1 << bit_position); | 10990 value &= ~(1 << bit_position); |
| 10989 } | 10991 } |
| 10990 return value; | 10992 return value; |
| 10991 } | 10993 } |
| 10992 }; | 10994 }; |
| 10993 | 10995 |
| 10994 } } // namespace v8::internal | 10996 } } // namespace v8::internal |
| 10995 | 10997 |
| 10996 #endif // V8_OBJECTS_H_ | 10998 #endif // V8_OBJECTS_H_ |
| OLD | NEW |