MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / V8Compiler

Class V8Compiler

lib/compilers/v8.ts:32–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30import {CompilationEnvironment} from '../compilation-env.js';
31
32export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected