MCPcopy Create free account
hub / github.com/nodejs/node / finishSetup

Method finishSetup

deps/v8/tools/system-analyzer/log/map.mjs:226–244  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

224 }
225
226 finishSetup() {
227 const from = this.from;
228 const to = this.to;
229 if (to?.time < from?.time) {
230 // This happens for map deprecation where the transition tree is converted
231 // in reverse order.
232 console.warn('Invalid time order');
233 }
234 if (from) from.addEdge(this);
235 if (to === undefined) return;
236 to.edge = this;
237 if (from === undefined) return;
238 if (to === from) throw 'From and to must be distinct.';
239 let newDepth = from.depth + 1;
240 if (to.depth > 0 && to.depth != newDepth) {
241 console.warn('Depth has already been initialized');
242 }
243 to.depth = newDepth;
244 }
245
246 chunkIndex(chunks) {
247 // Did anybody say O(n)?

Callers 1

processMapMethod · 0.95

Calls 2

warnMethod · 0.80
addEdgeMethod · 0.80

Tested by

no test coverage detected