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

Method processCompile

deps/v8/tools/parse-processor.mjs:1057–1076  ·  view source on GitHub ↗
(
      scriptId, startPosition, endPosition, duration, timestamp, functionName)

Source from the content-addressed store, hash-verified

1055 }
1056
1057 processCompile(
1058 scriptId, startPosition, endPosition, duration, timestamp, functionName) {
1059 let script = this.lookupScript(scriptId);
1060 if (startPosition === 0) {
1061 script.compileTimestamp = startOf(timestamp, duration);
1062 script.compileDuration = duration;
1063 script.bytesTotal = endPosition;
1064 return script;
1065 } else {
1066 let funktion = script.getFunktionAtStartPosition(startPosition);
1067 if (funktion === undefined) {
1068 // This should not happen since any funktion has to be parsed first.
1069 console.error('processCompile funktion not found', ...arguments);
1070 return;
1071 }
1072 funktion.compileTimestamp = startOf(timestamp, duration);
1073 funktion.compileDuration = duration;
1074 return funktion;
1075 }
1076 }
1077
1078 processCompileEval(
1079 scriptId, startPosition, endPosition, duration, timestamp, functionName) {

Callers 1

processCompileEvalMethod · 0.95

Calls 4

lookupScriptMethod · 0.95
startOfFunction · 0.85
errorMethod · 0.45

Tested by

no test coverage detected