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

Method processCompilationCacheEvent

deps/v8/tools/parse-processor.mjs:1129–1138  ·  view source on GitHub ↗
(
      eventType, cacheType, scriptId, startPosition, endPosition, timestamp)

Source from the content-addressed store, hash-verified

1127 }
1128
1129 processCompilationCacheEvent(
1130 eventType, cacheType, scriptId, startPosition, endPosition, timestamp) {
1131 if (eventType !== 'hit') return;
1132 let compilationUnit = this.lookupScript(scriptId);
1133 if (startPosition > 0) {
1134 compilationUnit =
1135 compilationUnit.getFunktionAtStartPosition(startPosition);
1136 }
1137 compilationUnit.addCompilationCacheHit(toTimestamp(timestamp));
1138 }
1139
1140}
1141

Callers

nothing calls this directly

Calls 4

lookupScriptMethod · 0.95
toTimestampFunction · 0.85

Tested by

no test coverage detected