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

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

Issue 2621873003: [heap, debugger] Introduce out-of-memory listener for debugger. (Closed)
Patch Set: use debug-interface 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/api.cc ('k') | src/heap/heap.h » ('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 b5c7dab516cd2645c905231dc378c80958025d00..70c561962b07867e319fa49e30526ab49624bd39 100644
--- a/src/debug/debug-interface.h
+++ b/src/debug/debug-interface.h
@@ -139,6 +139,17 @@ void PrepareStep(Isolate* isolate, StepAction action);
void ClearStepping(Isolate* isolate);
/**
+ * Out-of-memory callback function.
+ * The function is invoked when the heap size is close to the hard limit.
+ *
+ * \param isolate the isolate on which the callback was installed.
+ * \param data the parameter provided during callback installation.
+ */
+typedef void (*OutOfMemoryCallback)(Isolate* isolate, void* data);
kozy 2017/01/10 17:18:41 We don't really need isolate here since we'll pass
ulan 2017/01/10 17:22:00 Done.
+void SetOutOfMemoryCallback(Isolate* isolate, OutOfMemoryCallback callback,
+ void* data);
+
+/**
* Native wrapper around v8::internal::Script object.
*/
class Script {
« no previous file with comments | « src/api.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698