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

Method parseState

deps/v8/tools/profile.mjs:390–410  ·  view source on GitHub ↗

* Parser for dynamic code optimization state.

(s)

Source from the content-addressed store, hash-verified

388 * Parser for dynamic code optimization state.
389 */
390 static parseState(s) {
391 switch (s) {
392 case '':
393 return this.CodeState.COMPILED;
394 case '~':
395 return this.CodeState.IGNITION;
396 case '^':
397 return this.CodeState.SPARKPLUG;
398 case '+':
399 case '+\'':
400 case 'o+':
401 case 'o+\'':
402 return this.CodeState.MAGLEV;
403 case '*':
404 case '*\'':
405 case 'o*':
406 case 'o*\'':
407 return this.CodeState.TURBOFAN;
408 }
409 throw new Error(`unknown code state: ${s}`);
410 }
411
412 static getKindFromState(state) {
413 if (state === this.CodeState.COMPILED) {

Callers 2

processCodeCreationMethod · 0.80
processCodeCreationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected