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 6794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6805 | 6805 |
6806 // A container struct to hold state required for PromiseResolveThenableJob. | 6806 // A container struct to hold state required for PromiseResolveThenableJob. |
6807 class PromiseResolveThenableJobInfo : public Struct { | 6807 class PromiseResolveThenableJobInfo : public Struct { |
6808 public: | 6808 public: |
6809 DECL_ACCESSORS(thenable, JSReceiver) | 6809 DECL_ACCESSORS(thenable, JSReceiver) |
6810 DECL_ACCESSORS(then, JSReceiver) | 6810 DECL_ACCESSORS(then, JSReceiver) |
6811 DECL_ACCESSORS(resolve, JSFunction) | 6811 DECL_ACCESSORS(resolve, JSFunction) |
6812 DECL_ACCESSORS(reject, JSFunction) | 6812 DECL_ACCESSORS(reject, JSFunction) |
6813 DECL_ACCESSORS(debug_id, Object) | 6813 DECL_ACCESSORS(debug_id, Object) |
6814 DECL_ACCESSORS(debug_name, Object) | 6814 DECL_ACCESSORS(debug_name, Object) |
| 6815 DECL_ACCESSORS(context, Context) |
6815 | 6816 |
6816 static const int kThenableOffset = Struct::kHeaderSize; | 6817 static const int kThenableOffset = Struct::kHeaderSize; |
6817 static const int kThenOffset = kThenableOffset + kPointerSize; | 6818 static const int kThenOffset = kThenableOffset + kPointerSize; |
6818 static const int kResolveOffset = kThenOffset + kPointerSize; | 6819 static const int kResolveOffset = kThenOffset + kPointerSize; |
6819 static const int kRejectOffset = kResolveOffset + kPointerSize; | 6820 static const int kRejectOffset = kResolveOffset + kPointerSize; |
6820 static const int kDebugIdOffset = kRejectOffset + kPointerSize; | 6821 static const int kDebugIdOffset = kRejectOffset + kPointerSize; |
6821 static const int kDebugNameOffset = kDebugIdOffset + kPointerSize; | 6822 static const int kDebugNameOffset = kDebugIdOffset + kPointerSize; |
6822 static const int kSize = kDebugNameOffset + kPointerSize; | 6823 static const int kContextOffset = kDebugNameOffset + kPointerSize; |
| 6824 static const int kSize = kContextOffset + kPointerSize; |
6823 | 6825 |
6824 DECLARE_CAST(PromiseResolveThenableJobInfo) | 6826 DECLARE_CAST(PromiseResolveThenableJobInfo) |
6825 DECLARE_PRINTER(PromiseResolveThenableJobInfo) | 6827 DECLARE_PRINTER(PromiseResolveThenableJobInfo) |
6826 DECLARE_VERIFIER(PromiseResolveThenableJobInfo) | 6828 DECLARE_VERIFIER(PromiseResolveThenableJobInfo) |
6827 | 6829 |
6828 private: | 6830 private: |
6829 DISALLOW_IMPLICIT_CONSTRUCTORS(PromiseResolveThenableJobInfo); | 6831 DISALLOW_IMPLICIT_CONSTRUCTORS(PromiseResolveThenableJobInfo); |
6830 }; | 6832 }; |
6831 | 6833 |
6832 // Struct to hold state required for PromiseReactionJob. | 6834 // Struct to hold state required for PromiseReactionJob. |
(...skipping 4988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11821 } | 11823 } |
11822 return value; | 11824 return value; |
11823 } | 11825 } |
11824 }; | 11826 }; |
11825 | 11827 |
11826 | 11828 |
11827 } // NOLINT, false-positive due to second-order macros. | 11829 } // NOLINT, false-positive due to second-order macros. |
11828 } // NOLINT, false-positive due to second-order macros. | 11830 } // NOLINT, false-positive due to second-order macros. |
11829 | 11831 |
11830 #endif // V8_OBJECTS_H_ | 11832 #endif // V8_OBJECTS_H_ |
OLD | NEW |