https://bugs.webkit.org/show_bug.cgi?id=87024
Reviewed by Yury Semikhatsky.
* inspector/front-end/HeapSnapshot.js:
(WebInspector.HeapSnapshotNode.prototype.get dominatorIndex):
(WebInspector.HeapSnapshot.prototype._init):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117924
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-05-21 Ilya Tikhonovsky <loislo@chromium.org>
+
+ Web Inspector: migrate dominatorIndex code to the front-end calculated dominatorsTree.
+ https://bugs.webkit.org/show_bug.cgi?id=87024
+
+ Reviewed by Yury Semikhatsky.
+
+ * inspector/front-end/HeapSnapshot.js:
+ (WebInspector.HeapSnapshotNode.prototype.get dominatorIndex):
+ (WebInspector.HeapSnapshot.prototype._init):
+
2012-05-22 Kentaro Hara <haraken@chromium.org>
[V8] Replace 'throwError(); return Undefined();' with 'return throwError()'
get dominatorIndex()
{
- return this._nodes[this.nodeIndex + this._snapshot._dominatorOffset];
+ return this._snapshot._dominatorsTree[this.nodeIndex / this._snapshot._nodeFieldCount];
},
get edges()
this._nodeIdOffset = meta.node_fields.indexOf("id");
this._nodeSelfSizeOffset = meta.node_fields.indexOf("self_size");
this._nodeRetainedSizeOffset = meta.node_fields.indexOf("retained_size");
- this._dominatorOffset = meta.node_fields.indexOf("dominator");
this._firstEdgeIndexOffset = meta.node_fields.indexOf("edges_index");
this._nodeFieldCount = meta.node_fields.length;