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 6520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6531 }; | 6531 }; |
6532 | 6532 |
6533 // A container struct to hold state required for PromiseResolveThenableJob. | 6533 // A container struct to hold state required for PromiseResolveThenableJob. |
6534 class PromiseResolveThenableJobInfo : public Struct { | 6534 class PromiseResolveThenableJobInfo : public Struct { |
6535 public: | 6535 public: |
6536 DECL_ACCESSORS(thenable, JSReceiver) | 6536 DECL_ACCESSORS(thenable, JSReceiver) |
6537 DECL_ACCESSORS(then, JSReceiver) | 6537 DECL_ACCESSORS(then, JSReceiver) |
6538 DECL_ACCESSORS(resolve, JSFunction) | 6538 DECL_ACCESSORS(resolve, JSFunction) |
6539 DECL_ACCESSORS(reject, JSFunction) | 6539 DECL_ACCESSORS(reject, JSFunction) |
6540 | 6540 |
6541 DECL_INT_ACCESSORS(debug_id) | |
6542 | |
6543 DECL_ACCESSORS(context, Context) | 6541 DECL_ACCESSORS(context, Context) |
6544 | 6542 |
6545 static const int kThenableOffset = Struct::kHeaderSize; | 6543 static const int kThenableOffset = Struct::kHeaderSize; |
6546 static const int kThenOffset = kThenableOffset + kPointerSize; | 6544 static const int kThenOffset = kThenableOffset + kPointerSize; |
6547 static const int kResolveOffset = kThenOffset + kPointerSize; | 6545 static const int kResolveOffset = kThenOffset + kPointerSize; |
6548 static const int kRejectOffset = kResolveOffset + kPointerSize; | 6546 static const int kRejectOffset = kResolveOffset + kPointerSize; |
6549 static const int kDebugIdOffset = kRejectOffset + kPointerSize; | 6547 static const int kContextOffset = kRejectOffset + kPointerSize; |
6550 static const int kContextOffset = kDebugIdOffset + kPointerSize; | |
6551 static const int kSize = kContextOffset + kPointerSize; | 6548 static const int kSize = kContextOffset + kPointerSize; |
6552 | 6549 |
6553 DECLARE_CAST(PromiseResolveThenableJobInfo) | 6550 DECLARE_CAST(PromiseResolveThenableJobInfo) |
6554 DECLARE_PRINTER(PromiseResolveThenableJobInfo) | 6551 DECLARE_PRINTER(PromiseResolveThenableJobInfo) |
6555 DECLARE_VERIFIER(PromiseResolveThenableJobInfo) | 6552 DECLARE_VERIFIER(PromiseResolveThenableJobInfo) |
6556 | 6553 |
6557 private: | 6554 private: |
6558 DISALLOW_IMPLICIT_CONSTRUCTORS(PromiseResolveThenableJobInfo); | 6555 DISALLOW_IMPLICIT_CONSTRUCTORS(PromiseResolveThenableJobInfo); |
6559 }; | 6556 }; |
6560 | 6557 |
(...skipping 15 matching lines...) Expand all Loading... |
6576 | 6573 |
6577 DECL_ACCESSORS(context, Context) | 6574 DECL_ACCESSORS(context, Context) |
6578 | 6575 |
6579 static const int kValueOffset = Struct::kHeaderSize; | 6576 static const int kValueOffset = Struct::kHeaderSize; |
6580 static const int kTasksOffset = kValueOffset + kPointerSize; | 6577 static const int kTasksOffset = kValueOffset + kPointerSize; |
6581 static const int kDeferredPromiseOffset = kTasksOffset + kPointerSize; | 6578 static const int kDeferredPromiseOffset = kTasksOffset + kPointerSize; |
6582 static const int kDeferredOnResolveOffset = | 6579 static const int kDeferredOnResolveOffset = |
6583 kDeferredPromiseOffset + kPointerSize; | 6580 kDeferredPromiseOffset + kPointerSize; |
6584 static const int kDeferredOnRejectOffset = | 6581 static const int kDeferredOnRejectOffset = |
6585 kDeferredOnResolveOffset + kPointerSize; | 6582 kDeferredOnResolveOffset + kPointerSize; |
6586 static const int kDebugIdOffset = kDeferredOnRejectOffset + kPointerSize; | 6583 static const int kContextOffset = kDeferredOnRejectOffset + kPointerSize; |
6587 static const int kContextOffset = kDebugIdOffset + kPointerSize; | |
6588 static const int kSize = kContextOffset + kPointerSize; | 6584 static const int kSize = kContextOffset + kPointerSize; |
6589 | 6585 |
6590 DECLARE_CAST(PromiseReactionJobInfo) | 6586 DECLARE_CAST(PromiseReactionJobInfo) |
6591 DECLARE_PRINTER(PromiseReactionJobInfo) | 6587 DECLARE_PRINTER(PromiseReactionJobInfo) |
6592 DECLARE_VERIFIER(PromiseReactionJobInfo) | 6588 DECLARE_VERIFIER(PromiseReactionJobInfo) |
6593 | 6589 |
6594 private: | 6590 private: |
6595 DISALLOW_IMPLICIT_CONSTRUCTORS(PromiseReactionJobInfo); | 6591 DISALLOW_IMPLICIT_CONSTRUCTORS(PromiseReactionJobInfo); |
6596 }; | 6592 }; |
6597 | 6593 |
(...skipping 5127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11725 } | 11721 } |
11726 }; | 11722 }; |
11727 | 11723 |
11728 | 11724 |
11729 } // NOLINT, false-positive due to second-order macros. | 11725 } // NOLINT, false-positive due to second-order macros. |
11730 } // NOLINT, false-positive due to second-order macros. | 11726 } // NOLINT, false-positive due to second-order macros. |
11731 | 11727 |
11732 #include "src/objects/object-macros-undef.h" | 11728 #include "src/objects/object-macros-undef.h" |
11733 | 11729 |
11734 #endif // V8_OBJECTS_H_ | 11730 #endif // V8_OBJECTS_H_ |
OLD | NEW |