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

Method getKindFromState

deps/v8/tools/profile.mjs:412–425  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

410 }
411
412 static getKindFromState(state) {
413 if (state === this.CodeState.COMPILED) {
414 return "Builtin";
415 } else if (state === this.CodeState.IGNITION) {
416 return "Unopt";
417 } else if (state === this.CodeState.SPARKPLUG) {
418 return "Sparkplug";
419 } else if (state === this.CodeState.MAGLEV) {
420 return "Maglev";
421 } else if (state === this.CodeState.TURBOFAN) {
422 return "Opt";
423 }
424 throw new Error(`unknown code state: ${state}`);
425 }
426
427 static vmStateString(state) {
428 switch (state) {

Callers 3

profile.mjsFile · 0.80
processCodeCreationMethod · 0.80
extractCodeEntryTypeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected