Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 8d05411cd1beb6fe96482ebb2e20fcae2b9fa8b3..46eee845747ca79fc0bdeb05e160452de2c7ef67 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -6893,9 +6893,12 @@ class PromiseResolveThenableJobInfo : public Struct { |
DISALLOW_IMPLICIT_CONSTRUCTORS(PromiseResolveThenableJobInfo); |
}; |
+class JSPromise; |
+ |
// Struct to hold state required for PromiseReactionJob. |
class PromiseReactionJobInfo : public Struct { |
public: |
+ DECL_ACCESSORS(promise, JSPromise) |
DECL_ACCESSORS(value, Object) |
DECL_ACCESSORS(tasks, Object) |
DECL_ACCESSORS(deferred, Object) |
@@ -6903,7 +6906,8 @@ class PromiseReactionJobInfo : public Struct { |
DECL_ACCESSORS(debug_name, Object) |
DECL_ACCESSORS(context, Context) |
- static const int kValueOffset = Struct::kHeaderSize; |
+ static const int kPromiseOffset = Struct::kHeaderSize; |
+ static const int kValueOffset = kPromiseOffset + kPointerSize; |
static const int kTasksOffset = kValueOffset + kPointerSize; |
static const int kDeferredOffset = kTasksOffset + kPointerSize; |
static const int kDebugIdOffset = kDeferredOffset + kPointerSize; |