summaryrefslogtreecommitdiff
path: root/deps/v8/src/objects/promise.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/objects/promise.h')
-rw-r--r--deps/v8/src/objects/promise.h29
1 files changed, 5 insertions, 24 deletions
diff --git a/deps/v8/src/objects/promise.h b/deps/v8/src/objects/promise.h
index 122ee7157f..0b15546d03 100644
--- a/deps/v8/src/objects/promise.h
+++ b/deps/v8/src/objects/promise.h
@@ -33,18 +33,8 @@ class PromiseReactionJobTask : public Microtask {
// a PromiseCapability (general case), or undefined (in case of await).
DECL_ACCESSORS(promise_or_capability, HeapObject)
-// Layout description.
-#define PROMISE_REACTION_JOB_FIELDS(V) \
- V(kArgumentOffset, kTaggedSize) \
- V(kContextOffset, kTaggedSize) \
- V(kHandlerOffset, kTaggedSize) \
- V(kPromiseOrCapabilityOffset, kTaggedSize) \
- /* Total size. */ \
- V(kSize, 0)
-
- DEFINE_FIELD_OFFSET_CONSTANTS(Microtask::kHeaderSize,
- PROMISE_REACTION_JOB_FIELDS)
-#undef PROMISE_REACTION_JOB_FIELDS
+ DEFINE_FIELD_OFFSET_CONSTANTS(
+ Microtask::kHeaderSize, TORQUE_GENERATED_PROMISE_REACTION_JOB_TASK_FIELDS)
// Dispatched behavior.
DECL_CAST(PromiseReactionJobTask)
@@ -83,18 +73,9 @@ class PromiseResolveThenableJobTask : public Microtask {
DECL_ACCESSORS(then, JSReceiver)
DECL_ACCESSORS(thenable, JSReceiver)
-// Layout description.
-#define PROMISE_RESOLVE_THENABLE_JOB_FIELDS(V) \
- V(kContextOffset, kTaggedSize) \
- V(kPromiseToResolveOffset, kTaggedSize) \
- V(kThenOffset, kTaggedSize) \
- V(kThenableOffset, kTaggedSize) \
- /* Total size. */ \
- V(kSize, 0)
-
- DEFINE_FIELD_OFFSET_CONSTANTS(Microtask::kHeaderSize,
- PROMISE_RESOLVE_THENABLE_JOB_FIELDS)
-#undef PROMISE_RESOLVE_THENABLE_JOB_FIELDS
+ DEFINE_FIELD_OFFSET_CONSTANTS(
+ Microtask::kHeaderSize,
+ TORQUE_GENERATED_PROMISE_RESOLVE_THENABLE_JOB_TASK_FIELDS)
// Dispatched behavior.
DECL_CAST(PromiseResolveThenableJobTask)