MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / handleInterpreting

Method handleInterpreting

lib/compilers/lua.ts:108–124  ·  view source on GitHub ↗
(
        key: CacheKey,
        executeParameters: ExecutableExecutionOptions,
    )

Source from the content-addressed store, hash-verified

106 }
107
108 override async handleInterpreting(
109 key: CacheKey,
110 executeParameters: ExecutableExecutionOptions,
111 ): Promise<CompilationResult> {
112 if (!this.interpreterExe) {
113 return super.handleInterpreting(key, executeParameters);
114 }
115 // `compiler.exe` points at luac for compilation; swap it to the lua
116 // interpreter for the duration of the script run.
117 const originalExe = this.compiler.exe;
118 this.compiler.exe = this.interpreterExe;
119 try {
120 return await super.handleInterpreting(key, executeParameters);
121 } finally {
122 this.compiler.exe = originalExe;
123 }
124 }
125
126 override async processAsm(result: {asm: string}) {
127 // luac listing format (Lua 5.x):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected