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

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

Issue 204913005: Remove HeapSnapshot._markInvisibleEdges (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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 8a44638827320d538cabdaab7e121b71233b2c17..f1af0f2436e066953c00acd003eefeb761cf3ed5 100644
--- a/Source/devtools/front_end/JSHeapSnapshot.js
+++ b/Source/devtools/front_end/JSHeapSnapshot.js
@@ -125,33 +125,6 @@ WebInspector.JSHeapSnapshot.prototype = {
delete this._flags;
},
- _markInvisibleEdges: function()
- {
- // Mark hidden edges of global objects as invisible.
- // FIXME: This is a temporary measure. Normally, we should
- // really hide all hidden nodes.
- for (var iter = this.rootNode().edges(); iter.hasNext(); iter.next()) {
- var edge = iter.edge;
- if (!edge.isShortcut())
- continue;
- var node = edge.node();
- var propNames = {};
- for (var innerIter = node.edges(); innerIter.hasNext(); innerIter.next()) {
- var globalObjEdge = innerIter.edge;
- if (globalObjEdge.isShortcut())
- propNames[globalObjEdge._nameOrIndex()] = true;
- }
- for (var innerIter = node.edges(); innerIter.hasNext(); innerIter.next()) {
- var globalObjEdge = innerIter.edge;
- if (!globalObjEdge.isShortcut()
- && globalObjEdge.node().isHidden()
- && globalObjEdge._hasStringName()
- && (globalObjEdge._nameOrIndex() in propNames))
- globalObjEdge._edges[globalObjEdge.edgeIndex + this._edgeTypeOffset] = this._edgeInvisibleType;
- }
- }
- },
-
_calculateFlags: function()
{
this._flags = new Uint32Array(this.nodeCount);
« 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