summaryrefslogtreecommitdiff
path: root/deps/v8/include
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/include')
-rw-r--r--deps/v8/include/v8-preparser.h7
-rw-r--r--deps/v8/include/v8-profiler.h4
-rw-r--r--deps/v8/include/v8.h18
3 files changed, 20 insertions, 9 deletions
diff --git a/deps/v8/include/v8-preparser.h b/deps/v8/include/v8-preparser.h
index 68ce50223e..9425f7d467 100644
--- a/deps/v8/include/v8-preparser.h
+++ b/deps/v8/include/v8-preparser.h
@@ -99,13 +99,6 @@ class UnicodeInputStream {
// Returns the next Unicode code-point in the input, or a negative value when
// there is no more input in the stream.
virtual int32_t Next() = 0;
-
- // Pushes a read character back into the stream, so that it will be the next
- // to be read by Advance(). The character pushed back must be the most
- // recently read character that hasn't already been pushed back (i.e., if
- // pushing back more than one character, they must occur in the opposite order
- // of the one they were read in).
- virtual void PushBack(int32_t ch) = 0;
};
diff --git a/deps/v8/include/v8-profiler.h b/deps/v8/include/v8-profiler.h
index 08f47ca36e..675a229854 100644
--- a/deps/v8/include/v8-profiler.h
+++ b/deps/v8/include/v8-profiler.h
@@ -245,7 +245,6 @@ class V8EXPORT HeapGraphPath {
class V8EXPORT HeapGraphNode {
public:
enum Type {
- kInternal = 0, // For compatibility, will be removed.
kHidden = 0, // Hidden node, may be filtered when shown to user.
kArray = 1, // An array of elements.
kString = 2, // A string.
@@ -413,7 +412,8 @@ class V8EXPORT HeapProfiler {
*/
static const HeapSnapshot* TakeSnapshot(
Handle<String> title,
- HeapSnapshot::Type type = HeapSnapshot::kFull);
+ HeapSnapshot::Type type = HeapSnapshot::kFull,
+ ActivityControl* control = NULL);
};
diff --git a/deps/v8/include/v8.h b/deps/v8/include/v8.h
index 8ecf63aebd..7fd063197e 100644
--- a/deps/v8/include/v8.h
+++ b/deps/v8/include/v8.h
@@ -3281,6 +3281,24 @@ class V8EXPORT OutputStream { // NOLINT
};
+/**
+ * An interface for reporting progress and controlling long-running
+ * activities.
+ */
+class V8EXPORT ActivityControl { // NOLINT
+ public:
+ enum ControlOption {
+ kContinue = 0,
+ kAbort = 1
+ };
+ virtual ~ActivityControl() {}
+ /**
+ * Notify about current progress. The activity can be stopped by
+ * returning kAbort as the callback result.
+ */
+ virtual ControlOption ReportProgressValue(int done, int total) = 0;
+};
+
// --- I m p l e m e n t a t i o n ---