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

Unified Diff: src/runtime/runtime-debug.cc

Issue 2628173005: [inspector] merged type and name of async task event (Closed)
Patch Set: addressed comments Created 3 years, 11 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/objects-printer.cc ('k') | src/runtime/runtime-promise.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-debug.cc
diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc
index 317ac8ecde5de0a764963734b5c71948d6f5c565..6cef9094d12c24c4c0542b596d63775298ff7cf9 100644
--- a/src/runtime/runtime-debug.cc
+++ b/src/runtime/runtime-debug.cc
@@ -1893,8 +1893,7 @@ RUNTIME_FUNCTION(Runtime_DebugAsyncFunctionPromiseCreated) {
JSObject::SetProperty(promise, async_stack_id_symbol,
handle(Smi::FromInt(id), isolate), STRICT)
.Assert();
- isolate->debug()->OnAsyncTaskEvent(debug::kDebugEnqueueRecurring, id,
- kDebugAsyncFunction);
+ isolate->debug()->OnAsyncTaskEvent(debug::kDebugEnqueueAsyncFunction, id);
return isolate->heap()->undefined_value();
}
@@ -1905,10 +1904,9 @@ RUNTIME_FUNCTION(Runtime_DebugAsyncEventEnqueueRecurring) {
CONVERT_SMI_ARG_CHECKED(status, 1);
if (isolate->debug()->is_active()) {
isolate->debug()->OnAsyncTaskEvent(
- debug::kDebugEnqueueRecurring,
- isolate->debug()->NextAsyncTaskId(promise),
- status == v8::Promise::kFulfilled ? kDebugPromiseResolve
- : kDebugPromiseReject);
+ status == v8::Promise::kFulfilled ? debug::kDebugEnqueuePromiseResolve
+ : debug::kDebugEnqueuePromiseReject,
+ isolate->debug()->NextAsyncTaskId(promise));
}
return isolate->heap()->undefined_value();
}
« no previous file with comments | « src/objects-printer.cc ('k') | src/runtime/runtime-promise.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698