| 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 6733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6744 DECLARE_CAST(Struct) | 6744 DECLARE_CAST(Struct) |
| 6745 }; | 6745 }; |
| 6746 | 6746 |
| 6747 // A container struct to hold state required for PromiseResolveThenableJob. | 6747 // A container struct to hold state required for PromiseResolveThenableJob. |
| 6748 class PromiseResolveThenableJobInfo : public Struct { | 6748 class PromiseResolveThenableJobInfo : public Struct { |
| 6749 public: | 6749 public: |
| 6750 DECL_ACCESSORS(thenable, JSReceiver) | 6750 DECL_ACCESSORS(thenable, JSReceiver) |
| 6751 DECL_ACCESSORS(then, JSReceiver) | 6751 DECL_ACCESSORS(then, JSReceiver) |
| 6752 DECL_ACCESSORS(resolve, JSFunction) | 6752 DECL_ACCESSORS(resolve, JSFunction) |
| 6753 DECL_ACCESSORS(reject, JSFunction) | 6753 DECL_ACCESSORS(reject, JSFunction) |
| 6754 DECL_ACCESSORS(before_debug_event, Object) | 6754 DECL_ACCESSORS(debug_id, Object) |
| 6755 DECL_ACCESSORS(after_debug_event, Object) | 6755 DECL_ACCESSORS(debug_name, Object) |
| 6756 | 6756 |
| 6757 static const int kThenableOffset = Struct::kHeaderSize; | 6757 static const int kThenableOffset = Struct::kHeaderSize; |
| 6758 static const int kThenOffset = kThenableOffset + kPointerSize; | 6758 static const int kThenOffset = kThenableOffset + kPointerSize; |
| 6759 static const int kResolveOffset = kThenOffset + kPointerSize; | 6759 static const int kResolveOffset = kThenOffset + kPointerSize; |
| 6760 static const int kRejectOffset = kResolveOffset + kPointerSize; | 6760 static const int kRejectOffset = kResolveOffset + kPointerSize; |
| 6761 static const int kBeforeDebugEventOffset = kRejectOffset + kPointerSize; | 6761 static const int kDebugIdOffset = kRejectOffset + kPointerSize; |
| 6762 static const int kAfterDebugEventOffset = | 6762 static const int kDebugNameOffset = kDebugIdOffset + kPointerSize; |
| 6763 kBeforeDebugEventOffset + kPointerSize; | 6763 static const int kSize = kDebugNameOffset + kPointerSize; |
| 6764 static const int kSize = kAfterDebugEventOffset + kPointerSize; | |
| 6765 | 6764 |
| 6766 DECLARE_CAST(PromiseResolveThenableJobInfo) | 6765 DECLARE_CAST(PromiseResolveThenableJobInfo) |
| 6767 DECLARE_PRINTER(PromiseResolveThenableJobInfo) | 6766 DECLARE_PRINTER(PromiseResolveThenableJobInfo) |
| 6768 DECLARE_VERIFIER(PromiseResolveThenableJobInfo) | 6767 DECLARE_VERIFIER(PromiseResolveThenableJobInfo) |
| 6769 | 6768 |
| 6770 private: | 6769 private: |
| 6771 DISALLOW_IMPLICIT_CONSTRUCTORS(PromiseResolveThenableJobInfo); | 6770 DISALLOW_IMPLICIT_CONSTRUCTORS(PromiseResolveThenableJobInfo); |
| 6772 }; | 6771 }; |
| 6773 | 6772 |
| 6774 // Struct to hold state required for PromiseReactionJob. | 6773 // Struct to hold state required for PromiseReactionJob. |
| 6775 class PromiseReactionJobInfo : public Struct { | 6774 class PromiseReactionJobInfo : public Struct { |
| 6776 public: | 6775 public: |
| 6777 DECL_ACCESSORS(value, Object) | 6776 DECL_ACCESSORS(value, Object) |
| 6778 DECL_ACCESSORS(tasks, Object) | 6777 DECL_ACCESSORS(tasks, Object) |
| 6779 DECL_ACCESSORS(deferred, Object) | 6778 DECL_ACCESSORS(deferred, Object) |
| 6780 DECL_ACCESSORS(before_debug_event, Object) | 6779 DECL_ACCESSORS(debug_id, Object) |
| 6781 DECL_ACCESSORS(after_debug_event, Object) | 6780 DECL_ACCESSORS(debug_name, Object) |
| 6782 DECL_ACCESSORS(context, Context) | 6781 DECL_ACCESSORS(context, Context) |
| 6783 | 6782 |
| 6784 static const int kValueOffset = Struct::kHeaderSize; | 6783 static const int kValueOffset = Struct::kHeaderSize; |
| 6785 static const int kTasksOffset = kValueOffset + kPointerSize; | 6784 static const int kTasksOffset = kValueOffset + kPointerSize; |
| 6786 static const int kDeferredOffset = kTasksOffset + kPointerSize; | 6785 static const int kDeferredOffset = kTasksOffset + kPointerSize; |
| 6787 static const int kBeforeDebugEventOffset = kDeferredOffset + kPointerSize; | 6786 static const int kDebugIdOffset = kDeferredOffset + kPointerSize; |
| 6788 static const int kAfterDebugEventOffset = | 6787 static const int kDebugNameOffset = kDebugIdOffset + kPointerSize; |
| 6789 kBeforeDebugEventOffset + kPointerSize; | 6788 static const int kContextOffset = kDebugNameOffset + kPointerSize; |
| 6790 static const int kContextOffset = kAfterDebugEventOffset + kPointerSize; | |
| 6791 static const int kSize = kContextOffset + kPointerSize; | 6789 static const int kSize = kContextOffset + kPointerSize; |
| 6792 | 6790 |
| 6793 DECLARE_CAST(PromiseReactionJobInfo) | 6791 DECLARE_CAST(PromiseReactionJobInfo) |
| 6794 DECLARE_PRINTER(PromiseReactionJobInfo) | 6792 DECLARE_PRINTER(PromiseReactionJobInfo) |
| 6795 DECLARE_VERIFIER(PromiseReactionJobInfo) | 6793 DECLARE_VERIFIER(PromiseReactionJobInfo) |
| 6796 | 6794 |
| 6797 private: | 6795 private: |
| 6798 DISALLOW_IMPLICIT_CONSTRUCTORS(PromiseReactionJobInfo); | 6796 DISALLOW_IMPLICIT_CONSTRUCTORS(PromiseReactionJobInfo); |
| 6799 }; | 6797 }; |
| 6800 | 6798 |
| (...skipping 4806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11607 } | 11605 } |
| 11608 return value; | 11606 return value; |
| 11609 } | 11607 } |
| 11610 }; | 11608 }; |
| 11611 | 11609 |
| 11612 | 11610 |
| 11613 } // NOLINT, false-positive due to second-order macros. | 11611 } // NOLINT, false-positive due to second-order macros. |
| 11614 } // NOLINT, false-positive due to second-order macros. | 11612 } // NOLINT, false-positive due to second-order macros. |
| 11615 | 11613 |
| 11616 #endif // V8_OBJECTS_H_ | 11614 #endif // V8_OBJECTS_H_ |
| OLD | NEW |