JVMTranslator

constructor(code: A_RawFunction?, chunkName: String, sourceFileName: String?, controlFlowGraph: L2ControlFlowGraph, instructions: List<L2Instruction>)

Construct a new JVMTranslator to translate the specified array of L2Instructions to a JVMChunk.

Parameters

code

The source L1 code, or null for the unoptimized chunk.

chunkName

The descriptive (non-unique) name of the chunk being translated.

sourceFileName

The name of the Avail source file that produced the code. Use null if no such file exists.

controlFlowGraph

The L2ControlFlowGraph which produced the sequence of instructions.

instructions

The source L2Instructions to translate to JVM bytecodes.