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

Unified Diff: src/js/async-await.js

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/isolate.cc ('k') | src/js/macros.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/async-await.js
diff --git a/src/js/async-await.js b/src/js/async-await.js
index f5958d13e482d0ef43073a332cfca1f2767c348f..732d5abb94c7d4e64b36f0a008887534d65a4c22 100644
--- a/src/js/async-await.js
+++ b/src/js/async-await.js
@@ -129,7 +129,7 @@ function AsyncFunctionPromiseCreate() {
// resumptions from await.
var id = %DebugNextMicrotaskId();
SET_PRIVATE(promise, promiseAsyncStackIDSymbol, id);
- %DebugAsyncTaskEvent("enqueueRecurring", id, "async function");
+ %DebugAsyncTaskEvent(kEnqueueRecurring, id, kAsyncFunction);
}
return promise;
}
@@ -142,7 +142,7 @@ function AsyncFunctionPromiseRelease(promise) {
// Don't send invalid events when catch prediction is turned on in
// the middle of some async operation.
if (!IS_UNDEFINED(id)) {
- %DebugAsyncTaskEvent("cancel", id, "async function");
+ %DebugAsyncTaskEvent(kCancel, id, kAsyncFunction);
}
// Pop the Promise under construction in an async function on
// from catch prediction stack.
« no previous file with comments | « src/isolate.cc ('k') | src/js/macros.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698