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

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

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/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 5c31eb2f204692d3d081c54d7c07832c34cd0328..1409dad7c5e1f2b1fb2bc1b649fb4db5b7f23878 100644
--- a/src/runtime/runtime-debug.cc
+++ b/src/runtime/runtime-debug.cc
@@ -1899,10 +1899,12 @@ RUNTIME_FUNCTION(Runtime_DebugNextMicrotaskId) {
RUNTIME_FUNCTION(Runtime_DebugAsyncTaskEvent) {
DCHECK(args.length() == 3);
HandleScope scope(isolate);
- CONVERT_ARG_HANDLE_CHECKED(String, type, 0);
- CONVERT_ARG_HANDLE_CHECKED(Object, id, 1);
- CONVERT_ARG_HANDLE_CHECKED(String, name, 2);
- isolate->debug()->OnAsyncTaskEvent(type, id, name);
+ CONVERT_SMI_ARG_CHECKED(type, 0);
+ CONVERT_SMI_ARG_CHECKED(id, 1);
+ CONVERT_SMI_ARG_CHECKED(name, 2);
+ isolate->debug()->OnAsyncTaskEvent(static_cast<PromiseDebugActionType>(type),
+ id,
+ static_cast<PromiseDebugActionName>(name));
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