Title: [117924] trunk/Source/WebCore
- Revision
- 117924
- Author
- [email protected]
- Date
- 2012-05-22 00:30:20 -0700 (Tue, 22 May 2012)
Log Message
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):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (117923 => 117924)
--- trunk/Source/WebCore/ChangeLog 2012-05-22 07:25:22 UTC (rev 117923)
+++ trunk/Source/WebCore/ChangeLog 2012-05-22 07:30:20 UTC (rev 117924)
@@ -1,3 +1,14 @@
+2012-05-21 Ilya Tikhonovsky <[email protected]>
+
+ 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 <[email protected]>
[V8] Replace 'throwError(); return Undefined();' with 'return throwError()'
Modified: trunk/Source/WebCore/inspector/front-end/HeapSnapshot.js (117923 => 117924)
--- trunk/Source/WebCore/inspector/front-end/HeapSnapshot.js 2012-05-22 07:25:22 UTC (rev 117923)
+++ trunk/Source/WebCore/inspector/front-end/HeapSnapshot.js 2012-05-22 07:30:20 UTC (rev 117924)
@@ -458,7 +458,7 @@
get dominatorIndex()
{
- return this._nodes[this.nodeIndex + this._snapshot._dominatorOffset];
+ return this._snapshot._dominatorsTree[this.nodeIndex / this._snapshot._nodeFieldCount];
},
get edges()
@@ -680,7 +680,6 @@
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;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes