MCPcopy Index your code
hub / github.com/nodejs/node / expandDeoptFunctionList

Method expandDeoptFunctionList

deps/v8/tools/profview/profview.js:1353–1377  ·  view source on GitHub ↗
(row, arrow, list, indent, kind)

Source from the content-addressed store, hash-verified

1351 }
1352
1353 function expandDeoptFunctionList(row, arrow, list, indent, kind) {
1354 let index = row.rowIndex;
1355 for (let i = 0; i < list.length; i++) {
1356 let childRow = rows.insertRow(index + 1);
1357 childRow.id = row.id + i + "/";
1358
1359 let textCell = childRow.insertCell(-1);
1360 textCell.appendChild(createIndentNode(indent));
1361 let childArrow = createArrowNode();
1362 textCell.appendChild(childArrow);
1363 textCell.appendChild(
1364 createFunctionNode(list[i].f.name, list[i].f.codes[0]));
1365
1366 let numberCell = childRow.insertCell(-1);
1367 numberCell.textContent = list[i].instances.length;
1368 numberCell.style.textIndent = indent + "em";
1369
1370 childArrow.textContent = COLLAPSED_ARROW;
1371 childRow.onclick = () => {
1372 expandDeoptInstances(
1373 childRow, childArrow, list[i].instances, indent + 1);
1374 };
1375 }
1376 makeCollapsible(row, arrow);
1377 }
1378
1379 function expandOptimizedFunctionList(row, arrow, list, indent) {
1380 let index = row.rowIndex;

Callers

nothing calls this directly

Calls 3

createIndentNodeFunction · 0.85
createArrowNodeFunction · 0.85
createFunctionNodeFunction · 0.85

Tested by

no test coverage detected