Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Unified Diff: src/js/macros.py

Issue 2606093002: [promises] Refactor debug code (Closed)
Patch Set: fix stuff Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/js/async-await.js ('k') | src/js/promise.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/macros.py
diff --git a/src/js/macros.py b/src/js/macros.py
index 9fb665def7c55b0ac1270227c73d188582856d4d..ffa988b819ff8a731dbe6d1ba837b8bc00bd7d15 100644
--- a/src/js/macros.py
+++ b/src/js/macros.py
@@ -201,9 +201,22 @@ define kRegExpPrototypeOldFlagGetter = 31;
# [[PromiseState]] values:
# These values must be kept in sync with v8::Promise::PromiseState in
# include/v8.h
-define kPending = 0;
-define kFulfilled = 1;
define kRejected = 2;
define kResolveCallback = 0;
define kRejectCallback = 1;
+
+# These values must be kept in sync with PromiseDebugActionName in
+# src/debug/debug.h
+define kAsyncFunction = 1;
+define kPromiseResolve = 2;
+define kPromiseReject = 3;
+define kPromiseResolveThenableJob = 4;
+
+# These values must be kept in sync with PromiseDebugActionType in
+# src/debug/debug.h
+define kEnqueue = 0;
+define kEnqueueRecurring = 1;
+define kCancel = 2;
+define kWillHandle = 3;
+define kDidHandle = 4;
« no previous file with comments | « src/js/async-await.js ('k') | src/js/promise.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698