summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-08-27 10:21:07 +0100
committerSteve Block <steveblock@google.com>2010-08-27 10:27:17 +0100
commit791712a13f1814dd3ab5d1a5ab8ff5dbc476f6d6 (patch)
tree875cbc3272688c25996968c5165b4a957f0eeefb /include
parent756813857a4c2a4d8ad2e805969d5768d3cf43a0 (diff)
downloadandroid_external_v8-791712a13f1814dd3ab5d1a5ab8ff5dbc476f6d6.tar.gz
android_external_v8-791712a13f1814dd3ab5d1a5ab8ff5dbc476f6d6.tar.bz2
android_external_v8-791712a13f1814dd3ab5d1a5ab8ff5dbc476f6d6.zip
Update V8 to r5318 to fix crashing ARM bugs
Bug: 2947054 Change-Id: I9c7398edb1525477c75ace9d383efaf790d12c51
Diffstat (limited to 'include')
-rw-r--r--include/v8-profiler.h32
-rw-r--r--include/v8.h2
2 files changed, 28 insertions, 6 deletions
diff --git a/include/v8-profiler.h b/include/v8-profiler.h
index 9e3cb873..dd1b8caf 100644
--- a/include/v8-profiler.h
+++ b/include/v8-profiler.h
@@ -260,10 +260,17 @@ class V8EXPORT HeapGraphNode {
/**
* Returns node id. For the same heap object, the id remains the same
- * across all snapshots.
+ * across all snapshots. Not applicable to aggregated heap snapshots
+ * as they only contain aggregated instances.
*/
uint64_t GetId() const;
+ /**
+ * Returns the number of instances. Only applicable to aggregated
+ * heap snapshots.
+ */
+ int GetInstancesCount() const;
+
/** Returns node's own size, in bytes. */
int GetSelfSize() const;
@@ -313,6 +320,15 @@ class V8EXPORT HeapSnapshotsDiff {
*/
class V8EXPORT HeapSnapshot {
public:
+ enum Type {
+ kFull = 0, // Heap snapshot with all instances and references.
+ kAggregated = 1 // Snapshot doesn't contain individual heap entries,
+ //instead they are grouped by constructor name.
+ };
+
+ /** Returns heap snapshot type. */
+ Type GetType() const;
+
/** Returns heap snapshot UID (assigned by the profiler.) */
unsigned GetUid() const;
@@ -322,7 +338,10 @@ class V8EXPORT HeapSnapshot {
/** Returns the root node of the heap graph. */
const HeapGraphNode* GetRoot() const;
- /** Returns a diff between this snapshot and another one. */
+ /**
+ * Returns a diff between this snapshot and another one. Only snapshots
+ * of the same type can be compared.
+ */
const HeapSnapshotsDiff* CompareWith(const HeapSnapshot* snapshot) const;
};
@@ -341,8 +360,13 @@ class V8EXPORT HeapProfiler {
/** Returns a profile by uid. */
static const HeapSnapshot* FindSnapshot(unsigned uid);
- /** Takes a heap snapshot and returns it. Title may be an empty string. */
- static const HeapSnapshot* TakeSnapshot(Handle<String> title);
+ /**
+ * Takes a heap snapshot and returns it. Title may be an empty string.
+ * See HeapSnapshot::Type for types description.
+ */
+ static const HeapSnapshot* TakeSnapshot(
+ Handle<String> title,
+ HeapSnapshot::Type type = HeapSnapshot::kFull);
};
diff --git a/include/v8.h b/include/v8.h
index ff732269..d62d6696 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -1763,8 +1763,6 @@ class V8EXPORT AccessorInfo {
typedef Handle<Value> (*InvocationCallback)(const Arguments& args);
-typedef int (*LookupCallback)(Local<Object> self, Local<String> name);
-
/**
* NamedProperty[Getter|Setter] are used as interceptors on object.
* See ObjectTemplate::SetNamedPropertyHandler.