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 { |