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

Unified Diff: src/debug/debug-interface.h

Issue 2678143002: [inspector] introduced debug::GeneratorObject (Closed)
Patch Set: addressed comments Created 3 years, 10 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/api.cc ('k') | src/inspector/debugger-script.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug-interface.h
diff --git a/src/debug/debug-interface.h b/src/debug/debug-interface.h
index 8aa00db80007bbf45a95aaca70148dc6fb920496..07a75a078b734841edf82d0468e0fac782a4fc09 100644
--- a/src/debug/debug-interface.h
+++ b/src/debug/debug-interface.h
@@ -182,6 +182,19 @@ v8::MaybeLocal<v8::Array> EntriesPreview(Isolate* isolate,
v8::Local<v8::Value> value,
bool* is_key_value);
+/**
+ * Native wrapper around v8::internal::JSGeneratorObject object.
+ */
+class GeneratorObject {
+ public:
+ v8::MaybeLocal<debug::Script> Script();
+ v8::Local<v8::Function> Function();
+ debug::Location SuspendedLocation();
+ bool IsSuspended();
+
+ static v8::Local<debug::GeneratorObject> Cast(v8::Local<v8::Value> value);
+};
+
} // namespace debug
} // namespace v8
« no previous file with comments | « src/api.cc ('k') | src/inspector/debugger-script.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698