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

Unified Diff: LayoutTests/inspector/profiler/heap-snapshot-test.js

Issue 204563002: 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
Index: LayoutTests/inspector/profiler/heap-snapshot-test.js
diff --git a/LayoutTests/inspector/profiler/heap-snapshot-test.js b/LayoutTests/inspector/profiler/heap-snapshot-test.js
index 9dce120b536aab1023b356e122378a424ced1d30..1b55784a0c3f8ddf535227ad83a6d79cbdd5c5ad 100644
--- a/LayoutTests/inspector/profiler/heap-snapshot-test.js
+++ b/LayoutTests/inspector/profiler/heap-snapshot-test.js
@@ -29,23 +29,23 @@ InspectorTest.createJSHeapSnapshotMockObject = function()
// b\ v /
// -> B (6) -bd- D (12)
//
- _nodes: [
+ _nodes: new Uint32Array([
0, 0, 2, // 0: root
1, 1, 2, // 3: A
1, 2, 2, // 6: B
1, 3, 1, // 9: C
1, 4, 0, // 12: D
- 1, 5, 0], // 15: E
- _containmentEdges: [
+ 1, 5, 0]), // 15: E
+ _containmentEdges: new Uint32Array([
2, 6, 3, // 0: shortcut 'a' to node 'A'
1, 7, 6, // 3: property 'b' to node 'B'
0, 1, 6, // 6: element '1' to node 'B'
1, 8, 9, // 9: property 'ac' to node 'C'
1, 9, 9, // 12: property 'bc' to node 'C'
1, 10, 12, // 15: property 'bd' to node 'D'
- 1, 11, 15], // 18: property 'ce' to node 'E'
+ 1, 11, 15]), // 18: property 'ce' to node 'E'
_strings: ["", "A", "B", "C", "D", "E", "a", "b", "ac", "bc", "bd", "ce"],
- _firstEdgeIndexes: [0, 6, 12, 18, 21, 21, 21],
+ _firstEdgeIndexes: new Uint32Array([0, 6, 12, 18, 21, 21, 21]),
createNode: WebInspector.JSHeapSnapshot.prototype.createNode,
createEdge: WebInspector.JSHeapSnapshot.prototype.createEdge,
createRetainingEdge: WebInspector.JSHeapSnapshot.prototype.createRetainingEdge
@@ -319,6 +319,8 @@ InspectorTest.HeapSnapshotBuilder.prototype = {
this._nodes[i]._serialize(rawSnapshot);
rawSnapshot.strings = this._strings.slice();
+ rawSnapshot.nodes = new Uint32Array(rawSnapshot.nodes);
+ rawSnapshot.edges = new Uint32Array(rawSnapshot.edges);
var meta = rawSnapshot.snapshot.meta;
rawSnapshot.snapshot.edge_count = rawSnapshot.edges.length / meta.edge_fields.length;

Powered by Google App Engine
This is Rietveld 408576698