| Index: Source/devtools/front_end/JSHeapSnapshot.js
|
| diff --git a/Source/devtools/front_end/JSHeapSnapshot.js b/Source/devtools/front_end/JSHeapSnapshot.js
|
| index 8b4873a7a32a9f4a08ac410b4cb381c0eebf26a2..1fa2aeb965613036674b5baa58c52aeeb9f8134c 100644
|
| --- a/Source/devtools/front_end/JSHeapSnapshot.js
|
| +++ b/Source/devtools/front_end/JSHeapSnapshot.js
|
| @@ -48,6 +48,23 @@ WebInspector.JSHeapSnapshot = function(profile, progress)
|
| }
|
|
|
| WebInspector.JSHeapSnapshot.prototype = {
|
| + maxJsNodeId: function()
|
| + {
|
| + var nodeFieldCount = this._nodeFieldCount;
|
| + var nodes = this._nodes;
|
| + var nodesLength = nodes.length;
|
| + var id = 0;
|
| + for (var nodeIndex = this._nodeIdOffset; nodeIndex < nodesLength; nodeIndex += nodeFieldCount) {
|
| + var nextId = nodes[nodeIndex];
|
| + // JS objects have odd ids, skip native objects.
|
| + if (nextId % 2 === 0)
|
| + continue;
|
| + if (id < nodes[nodeIndex])
|
| + id = nodes[nodeIndex];
|
| + }
|
| + return id;
|
| + },
|
| +
|
| createNode: function(nodeIndex)
|
| {
|
| return new WebInspector.JSHeapSnapshotNode(this, nodeIndex);
|
|
|