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

Method getScriptOffset

deps/v8/tools/profview/profview.js:1660–1668  ·  view source on GitHub ↗
(codeOffset)

Source from the content-addressed store, hash-verified

1658 }
1659
1660 getScriptOffset(codeOffset) {
1661 console.assert(codeOffset >= 0);
1662 for (let i = this.offsetTable.length - 2; i >= 0; i -= 2) {
1663 if (this.offsetTable[i] <= codeOffset) {
1664 return this.offsetTable[i + 1];
1665 }
1666 }
1667 return this.offsetTable[1];
1668 }
1669}
1670
1671class HelpView {

Callers 1

generateSourceViewMethod · 0.45

Calls 1

assertMethod · 0.80

Tested by

no test coverage detected