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 10353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10364 // Object.defineProperty(obj, "foo", {get: undefined}); | 10364 // Object.defineProperty(obj, "foo", {get: undefined}); |
10365 // assertTrue("foo" in obj); | 10365 // assertTrue("foo" in obj); |
10366 inline bool IsJSAccessor(Object* obj); | 10366 inline bool IsJSAccessor(Object* obj); |
10367 | 10367 |
10368 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessorPair); | 10368 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessorPair); |
10369 }; | 10369 }; |
10370 | 10370 |
10371 | 10371 |
10372 class AccessCheckInfo: public Struct { | 10372 class AccessCheckInfo: public Struct { |
10373 public: | 10373 public: |
10374 DECL_ACCESSORS(named_callback, Object) | |
10375 DECL_ACCESSORS(indexed_callback, Object) | |
10376 DECL_ACCESSORS(callback, Object) | 10374 DECL_ACCESSORS(callback, Object) |
10377 DECL_ACCESSORS(data, Object) | 10375 DECL_ACCESSORS(data, Object) |
10378 | 10376 |
10379 DECLARE_CAST(AccessCheckInfo) | 10377 DECLARE_CAST(AccessCheckInfo) |
10380 | 10378 |
10381 // Dispatched behavior. | 10379 // Dispatched behavior. |
10382 DECLARE_PRINTER(AccessCheckInfo) | 10380 DECLARE_PRINTER(AccessCheckInfo) |
10383 DECLARE_VERIFIER(AccessCheckInfo) | 10381 DECLARE_VERIFIER(AccessCheckInfo) |
10384 | 10382 |
10385 static const int kNamedCallbackOffset = HeapObject::kHeaderSize; | 10383 static const int kCallbackOffset = HeapObject::kHeaderSize; |
10386 static const int kIndexedCallbackOffset = kNamedCallbackOffset + kPointerSize; | |
10387 static const int kCallbackOffset = kIndexedCallbackOffset + kPointerSize; | |
10388 static const int kDataOffset = kCallbackOffset + kPointerSize; | 10384 static const int kDataOffset = kCallbackOffset + kPointerSize; |
10389 static const int kSize = kDataOffset + kPointerSize; | 10385 static const int kSize = kDataOffset + kPointerSize; |
10390 | 10386 |
10391 private: | 10387 private: |
10392 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessCheckInfo); | 10388 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessCheckInfo); |
10393 }; | 10389 }; |
10394 | 10390 |
10395 | 10391 |
10396 class InterceptorInfo: public Struct { | 10392 class InterceptorInfo: public Struct { |
10397 public: | 10393 public: |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10797 } | 10793 } |
10798 return value; | 10794 return value; |
10799 } | 10795 } |
10800 }; | 10796 }; |
10801 | 10797 |
10802 | 10798 |
10803 } // NOLINT, false-positive due to second-order macros. | 10799 } // NOLINT, false-positive due to second-order macros. |
10804 } // NOLINT, false-positive due to second-order macros. | 10800 } // NOLINT, false-positive due to second-order macros. |
10805 | 10801 |
10806 #endif // V8_OBJECTS_H_ | 10802 #endif // V8_OBJECTS_H_ |
OLD | NEW |