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

Unified Diff: src/runtime.cc

Issue 357603005: Introduce debug events for promises. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 6d7fca973450fb8e39bdb74e7bc49dea2f63957e..25df9bf8465e08b4169b9448033b6fb6b84f5172 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -5521,6 +5521,15 @@ RUNTIME_FUNCTION(Runtime_DebugPromiseHandleEpilogue) {
}
+RUNTIME_FUNCTION(Runtime_DebugPromiseEvent) {
+ ASSERT(args.length() == 1);
+ HandleScope scope(isolate);
+ CONVERT_ARG_HANDLE_CHECKED(JSObject, data, 0);
+ isolate->debug()->OnPromiseEvent(data);
+ return isolate->heap()->undefined_value();
+}
+
+
// Set an own property, even if it is READ_ONLY. If the property does not
// exist, it will be added with attributes NONE.
RUNTIME_FUNCTION(Runtime_IgnoreAttributesAndSetProperty) {

Powered by Google App Engine
This is Rietveld 408576698