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

Method finalize

deps/v8/tools/parse-processor.mjs:87–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 }
86
87 finalize() {
88 this.firstEventTimestamp = this.timestampMin(
89 this.deserializationTimestamp, this.parseTimestamp,
90 this.preparseTimestamp, this.resolutionTimestamp,
91 this.executionTimestamp);
92
93 this.firstParseEventTimestamp = this.timestampMin(
94 this.deserializationTimestamp, this.parseTimestamp,
95 this.preparseTimestamp, this.resolutionTimestamp);
96
97 this.firstCompileEventTimestamp = this.rawTimestampMin(
98 this.deserializationTimestamp, this.compileTimestamp,
99 this.baselineTimestamp, this.lazyCompileTimestamp);
100 // Any excuted script needs to be compiled.
101 if (this.hasBeenExecuted() &&
102 (this.firstCompileEventTimestamp <= 0 ||
103 this.executionTimestamp < this.firstCompileTimestamp)) {
104 console.error('Compile < execution timestamp', this);
105 }
106
107 if (this.ownBytes < 0) console.error(this, 'Own bytes must be positive');
108 }
109
110 hasBeenExecuted() {
111 return this.executionTimestamp > 0;

Callers

nothing calls this directly

Calls 4

timestampMinMethod · 0.95
rawTimestampMinMethod · 0.95
hasBeenExecutedMethod · 0.95
errorMethod · 0.45

Tested by

no test coverage detected