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

Method addSourceBlock

deps/v8/tools/profview/profview.js:1633–1638  ·  view source on GitHub ↗
(codeId, source)

Source from the content-addressed store, hash-verified

1631 }
1632
1633 addSourceBlock(codeId, source) {
1634 this.codes.set(codeId, {
1635 positionTable: new SourcePositionTable(source.positions),
1636 offsets: []
1637 });
1638 }
1639
1640 addOffsetSample(codeId, codeOffset) {
1641 let codeIdOffsets = this.codes.get(codeId).offsets;

Callers 1

constructorMethod · 0.80

Calls 1

setMethod · 0.45

Tested by

no test coverage detected