| 30 | import {CompilationEnvironment} from '../compilation-env.js'; |
| 31 | |
| 32 | export class V8Compiler extends BaseCompiler { |
| 33 | static get key() { |
| 34 | return 'v8'; |
| 35 | } |
| 36 | |
| 37 | constructor(compilerInfo: PreliminaryCompilerInfo, env: CompilationEnvironment) { |
| 38 | super(compilerInfo, env); |
| 39 | this.compiler.demangler = ''; |
| 40 | this.demanglerClass = null; |
| 41 | } |
| 42 | |
| 43 | override getIrOutputFilename(inputFilename: string): string { |
| 44 | return this.filename(path.dirname(inputFilename) + '/code.asm'); |
| 45 | } |
| 46 | |
| 47 | public override getOutputFilename(dirPath: string, outputFilebase: string, key?: any) { |
| 48 | let filename; |
| 49 | if (key?.backendOptions?.customOutputFilename) { |
| 50 | filename = key.backendOptions.customOutputFilename; |
| 51 | } else { |
| 52 | filename = 'code.asm'; |
| 53 | } |
| 54 | |
| 55 | if (dirPath) { |
| 56 | return path.join(dirPath, filename); |
| 57 | } |
| 58 | return filename; |
| 59 | } |
| 60 | |
| 61 | override optionsForFilter(filters: ParseFiltersAndOutputOptions, outputFilename: string) { |
| 62 | return []; |
| 63 | } |
| 64 | } |
nothing calls this directly
no outgoing calls
no test coverage detected