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

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

Issue 2415023002: [promises] Move async debug event creation to c++ (Closed)
Patch Set: use consts Created 4 years, 2 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
Index: src/js/async-await.js
diff --git a/src/js/async-await.js b/src/js/async-await.js
index b733f3d9fa90b81de782ba79d17916d6101b41ea..7f2cb7db1df1f4b2d008759728e76369b3763b45 100644
--- a/src/js/async-await.js
+++ b/src/js/async-await.js
@@ -145,11 +145,7 @@ function AsyncFunctionPromiseCreate() {
// resumptions from await.
var id = PromiseNextMicrotaskID();
SET_PRIVATE(promise, promiseAsyncStackIDSymbol, id);
- %DebugAsyncTaskEvent({
- type: "enqueueRecurring",
- id: id,
- name: "async function",
- });
+ %DebugAsyncTaskEvent("enqueueRecurring", id, "async function");
}
return promise;
}
@@ -158,11 +154,7 @@ function AsyncFunctionPromiseRelease(promise) {
if (DEBUG_IS_ACTIVE) {
// Cancel
var id = GET_PRIVATE(promise, promiseAsyncStackIDSymbol);
- %DebugAsyncTaskEvent({
- type: "cancel",
- id: id,
- name: "async function",
- });
+ %DebugAsyncTaskEvent("cancel", id, "async function");
// Pop the Promise under construction in an async function on
// from catch prediction stack.
%DebugPopPromise();

Powered by Google App Engine
This is Rietveld 408576698