(state)
| 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) { |
no outgoing calls
no test coverage detected