Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(894)

Unified Diff: Source/devtools/front_end/JSHeapSnapshot.js

Issue 197533009: Remove WebInspector.HeapSnapshotArraySlice (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/HeapSnapshot.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/JSHeapSnapshot.js
diff --git a/Source/devtools/front_end/JSHeapSnapshot.js b/Source/devtools/front_end/JSHeapSnapshot.js
index a59f49e7960a50577afc6dc7c2ec862164f8dbde..60ef492264eef55174919775ae697606323b2754 100644
--- a/Source/devtools/front_end/JSHeapSnapshot.js
+++ b/Source/devtools/front_end/JSHeapSnapshot.js
@@ -58,7 +58,7 @@ WebInspector.JSHeapSnapshot.prototype = {
},
/**
- * @param {!Array.<number>} edges
+ * @param {!Uint32Array} edges
* @param {number} edgeIndex
* @return {!WebInspector.JSHeapSnapshotEdge}
*/
@@ -147,7 +147,7 @@ WebInspector.JSHeapSnapshot.prototype = {
&& globalObjEdge.node().isHidden()
&& globalObjEdge._hasStringName()
&& (globalObjEdge._nameOrIndex() in propNames))
- this._containmentEdges[globalObjEdge._edges._start + globalObjEdge.edgeIndex + this._edgeTypeOffset] = this._edgeInvisibleType;
+ globalObjEdge._edges[globalObjEdge.edgeIndex + this._edgeTypeOffset] = this._edgeInvisibleType;
}
}
},
@@ -666,7 +666,7 @@ WebInspector.JSHeapSnapshotNode.prototype = {
* @constructor
* @extends {WebInspector.HeapSnapshotEdge}
* @param {!WebInspector.JSHeapSnapshot} snapshot
- * @param {!Array.<number>} edges
+ * @param {!Uint32Array} edges
* @param {number=} edgeIndex
*/
WebInspector.JSHeapSnapshotEdge = function(snapshot, edges, edgeIndex)
@@ -680,7 +680,8 @@ WebInspector.JSHeapSnapshotEdge.prototype = {
*/
clone: function()
{
- return new WebInspector.JSHeapSnapshotEdge(this._snapshot, this._edges, this.edgeIndex);
+ var snapshot = /** @type {!WebInspector.JSHeapSnapshot} */ (this._snapshot);
+ return new WebInspector.JSHeapSnapshotEdge(snapshot, this._edges, this.edgeIndex);
},
/**
@@ -789,12 +790,12 @@ WebInspector.JSHeapSnapshotEdge.prototype = {
_nameOrIndex: function()
{
- return this._edges.item(this.edgeIndex + this._snapshot._edgeNameOffset);
+ return this._edges[this.edgeIndex + this._snapshot._edgeNameOffset];
},
_type: function()
{
- return this._edges.item(this.edgeIndex + this._snapshot._edgeTypeOffset);
+ return this._edges[this.edgeIndex + this._snapshot._edgeTypeOffset];
},
__proto__: WebInspector.HeapSnapshotEdge.prototype
« no previous file with comments | « Source/devtools/front_end/HeapSnapshot.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698