(codeId, code)
| 113 | } |
| 114 | |
| 115 | function childIdFromCode(codeId, code) { |
| 116 | // For JavaScript function, pretend there is one instance of optimized |
| 117 | // function and one instance of unoptimized function per SFI. |
| 118 | // Otherwise, just compute the id from code id. |
| 119 | let type = resolveCodeKind(code); |
| 120 | if (type === "JSOPT") { |
| 121 | return code.func * 4 + 1; |
| 122 | } else if (type === "JSUNOPT") { |
| 123 | return code.func * 4 + 2; |
| 124 | } else { |
| 125 | return codeId * 4; |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | // We store list of ticks and positions within the ticks stack by |
| 130 | // storing flattened triplets of { tickIndex, depth, count }. |
no test coverage detected
searching dependent graphs…