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

Function codeTypeToText

deps/v8/tools/profview/profview.js:414–456  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

412}
413
414function codeTypeToText(type) {
415 switch (type) {
416 case "UNKNOWN":
417 return "Unknown";
418 case "CPP_PARSE":
419 return "C++ Parser";
420 case "CPP_COMP_BASELINE":
421 return "C++ Baseline Compiler";
422 case "CPP_COMP_BC":
423 return "C++ Bytecode Compiler";
424 case "CPP_COMP":
425 return "C++ Compiler";
426 case "CPP_GC":
427 return "C++ GC";
428 case "CPP_EXT":
429 return "C++ External";
430 case "CPP_LOGGING":
431 return "C++ Logging";
432 case "CPP":
433 return "C++";
434 case "LIB":
435 return "Library";
436 case "IC":
437 return "IC";
438 case "BC":
439 return "Bytecode";
440 case "STUB":
441 return "Stub";
442 case "BUILTIN":
443 return "Builtin";
444 case "REGEXP":
445 return "RegExp";
446 case "JS_IGNITION":
447 return "JS Ignition";
448 case "JS_SPARKPLUG":
449 return "JS Sparkplug";
450 case "JS_MAGLEV":
451 return "JS Maglev";
452 case "JS_TURBOFAN":
453 return "JS Turbofan";
454 }
455 console.error("Unknown type: " + type);
456}
457
458function createTypeNode(type) {
459 if (type === "CAT") {

Callers 1

createTypeNodeFunction · 0.85

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…