| 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;
|
|
|