Index: src/runtime/runtime.h |
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h |
index e17a6885896f9629280ff31cf0aece038cc8f093..2923bd8802e1af9b4ae6e7290fcf3e8e921515c9 100644 |
--- a/src/runtime/runtime.h |
+++ b/src/runtime/runtime.h |
@@ -289,9 +289,6 @@ namespace internal { |
F(AllocateSeqTwoByteString, 1, 1) \ |
F(CheckIsBootstrapping, 0, 1) \ |
F(CreateListFromArrayLike, 1, 1) \ |
- F(EnqueueMicrotask, 1, 1) \ |
- F(EnqueuePromiseReactionJob, 1, 1) \ |
- F(EnqueuePromiseResolveThenableJob, 1, 1) \ |
F(GetAndResetRuntimeCallStats, -1 /* <= 2 */, 1) \ |
F(ExportExperimentalFromRuntime, 1, 1) \ |
F(ExportFromRuntime, 1, 1) \ |
@@ -303,16 +300,6 @@ namespace internal { |
F(NewSyntaxError, 2, 1) \ |
F(NewTypeError, 2, 1) \ |
F(OrdinaryHasInstance, 2, 1) \ |
- F(ReportPromiseReject, 2, 1) \ |
- F(PromiseHookInit, 2, 1) \ |
- F(PromiseHookResolve, 1, 1) \ |
- F(PromiseHookBefore, 1, 1) \ |
- F(PromiseHookAfter, 1, 1) \ |
- F(PromiseMarkAsHandled, 1, 1) \ |
- F(PromiseRejectEventFromStack, 2, 1) \ |
- F(PromiseRevokeReject, 1, 1) \ |
- F(PromiseResult, 1, 1) \ |
- F(PromiseStatus, 1, 1) \ |
F(PromoteScheduledException, 0, 1) \ |
F(ReThrow, 1, 1) \ |
F(RunMicrotasks, 0, 1) \ |
@@ -457,6 +444,21 @@ namespace internal { |
F(GreaterThanOrEqual, 2, 1) \ |
F(InstanceOf, 2, 1) |
+#define FOR_EACH_INTRINSIC_PROMISE(F) \ |
+ F(EnqueueMicrotask, 1, 1) \ |
+ F(EnqueuePromiseReactionJob, 1, 1) \ |
+ F(EnqueuePromiseResolveThenableJob, 1, 1) \ |
+ F(PromiseHookInit, 2, 1) \ |
+ F(PromiseHookResolve, 1, 1) \ |
+ F(PromiseHookBefore, 1, 1) \ |
+ F(PromiseHookAfter, 1, 1) \ |
+ F(PromiseMarkAsHandled, 1, 1) \ |
+ F(PromiseRejectEventFromStack, 2, 1) \ |
+ F(PromiseRevokeReject, 1, 1) \ |
+ F(PromiseResult, 1, 1) \ |
+ F(PromiseStatus, 1, 1) \ |
+ F(ReportPromiseReject, 2, 1) |
+ |
#define FOR_EACH_INTRINSIC_PROXY(F) \ |
F(IsJSProxy, 1, 1) \ |
F(JSProxyCall, -1 /* >= 2 */, 1) \ |
@@ -1000,6 +1002,7 @@ namespace internal { |
FOR_EACH_INTRINSIC_NUMBERS(F) \ |
FOR_EACH_INTRINSIC_OBJECT(F) \ |
FOR_EACH_INTRINSIC_OPERATORS(F) \ |
+ FOR_EACH_INTRINSIC_PROMISE(F) \ |
FOR_EACH_INTRINSIC_PROXY(F) \ |
FOR_EACH_INTRINSIC_REGEXP(F) \ |
FOR_EACH_INTRINSIC_SCOPES(F) \ |