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

Unified Diff: src/runtime.cc

Issue 362783002: Introduce debug events for Microtask queue. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 6 years, 6 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/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index 888f665d21c8d8ab126a7d0ff9703d534094d5aa..29dcbfafafa0aa72634cdb25bd6364a65cd772a3 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -5535,6 +5535,15 @@ RUNTIME_FUNCTION(Runtime_DebugPromiseEvent) {
}
+RUNTIME_FUNCTION(Runtime_DebugAsyncTaskEvent) {
+ ASSERT(args.length() == 1);
+ HandleScope scope(isolate);
+ CONVERT_ARG_HANDLE_CHECKED(JSObject, data, 0);
+ isolate->debug()->OnAsyncTaskEvent(data);
+ return isolate->heap()->undefined_value();
+}
+
+
RUNTIME_FUNCTION(Runtime_DeleteProperty) {
HandleScope scope(isolate);
ASSERT(args.length() == 3);

Powered by Google App Engine
This is Rietveld 408576698