fixUsageFlags

open fun fixUsageFlags(    localData: MutableList<AvailVariableAccessNote?>,     outerData: MutableList<AvailVariableAccessNote?>,     codeGenerator: AvailCodeGenerator)

The instructions of a block are being iterated over. Coordinate optimizations between instructions using localData and outerData, two lists manipulated by overrides of this method. Treat each instruction as though it is the last one in the block, and save enough information in the lists to be able to undo consequences of this assumption when a later instruction shows it to be unwarranted.

The data lists are keyed by local or outer index. Each entry is an AvailVariableAccessNote, which keeps track of the immediately previous use of the variable.

Parameters

localData

A list of AvailVariableAccessNotes, one for each local variable.

outerData

A list of AvailVariableAccessNotes, one for each outer variable.

codeGenerator

The code generator.