(state)
| 425 | } |
| 426 | |
| 427 | static vmStateString(state) { |
| 428 | switch (state) { |
| 429 | case this.VMState.JS: |
| 430 | return 'JS'; |
| 431 | case this.VMState.GC: |
| 432 | return 'GC'; |
| 433 | case this.VMState.PARSER: |
| 434 | return 'Parse'; |
| 435 | case this.VMState.BYTECODE_COMPILER: |
| 436 | return 'Compile Bytecode'; |
| 437 | case this.VMState.COMPILER: |
| 438 | return 'Compile'; |
| 439 | case this.VMState.OTHER: |
| 440 | return 'Other'; |
| 441 | case this.VMState.EXTERNAL: |
| 442 | return 'External'; |
| 443 | case this.VMState.EXTERNAL_IDLE: |
| 444 | return 'ExternalIdle'; |
| 445 | case this.VMState.IDLE: |
| 446 | return 'Idle'; |
| 447 | } |
| 448 | return 'unknown'; |
| 449 | } |
| 450 | |
| 451 | /** |
| 452 | * Called whenever the specified operation has failed finding a function |
no outgoing calls
no test coverage detected