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

Function resolveCodeKindAndVmState

deps/v8/tools/profview/profile-utils.js:73–92  ·  view source on GitHub ↗
(code, vmState)

Source from the content-addressed store, hash-verified

71}
72
73function resolveCodeKindAndVmState(code, vmState) {
74 let kind = resolveCodeKind(code);
75 if (kind === "CPP") {
76 if (vmState === 1) {
77 kind = "CPP_GC";
78 } else if (vmState === 2) {
79 kind = "CPP_PARSE";
80 } else if (vmState === 3) {
81 kind = "CPP_COMP_BC";
82 } else if (vmState === 4) {
83 kind = "CPP_COMP";
84 } else if (vmState === 6) {
85 kind = "CPP_EXT";
86 } else if (vmState === 9) {
87 kind = "CPP_LOGGING";
88 }
89 // TODO(cbruni): add CPP_COMP_BASELINE
90 }
91 return kind;
92}
93
94function codeEquals(code1, code2, allowDifferentKinds = false) {
95 if (!code1 || !code2) return false;

Callers 5

createNodeFromStackEntryFunction · 0.85
addStackMethod · 0.85
addStackMethod · 0.85
addStackMethod · 0.85
addStackMethod · 0.85

Calls 1

resolveCodeKindFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…