This commit is contained in:
Irmen de Jong
2022-04-03 22:56:13 +02:00
parent ae45ce517e
commit 62b32b2211
5 changed files with 29 additions and 25 deletions
@@ -491,7 +491,7 @@ class CodeGen(internal val program: PtProgram,
}
private fun translate(assignment: PtAssignment): VmCodeChunk {
// TODO can in-place assignments (assignment.augmentable = true) be optimized more?
// TODO can in-place assignments be optimized more?
val code = VmCodeChunk()
val resultRegister = vmRegisters.nextFree()
@@ -545,7 +545,7 @@ class CodeGen(internal val program: PtProgram,
}
private fun translate(sub: PtSub): VmCodeChunk {
// TODO actually inline subroutines marked as inline
// TODO actually inline subroutines marked as inline (but at this time only asmsub can be inline)
val code = VmCodeChunk()
code += VmCodeComment("SUB: ${sub.scopedName} -> ${sub.returntype}")
code += VmCodeLabel(sub.scopedName)