CodeGenerator performs some final optimizations and is used (via a visitor)
to generate bytecode for the contents of a control flow graph.
See Also:FlowGraph
visitFlowGraph(FlowGraph cfg) Visits the nodes in the method's control flow graph and ensures that
information about the method's basic blocks is consistent and correct.
Allocate "registers" (LocalVariables) for the return addresses for each
subroutine in the method.
Parameters: cfg - Control flow graph for the method Parameters: alloc - Allocation (and information about) the local variables in themethod. See Also:LocalVariable See Also:LocalExpr
Visits the nodes in the method's control flow graph and ensures that
information about the method's basic blocks is consistent and correct.
Parameters: cfg - The control flow graph associated with this method.