public class FixVar extends java.lang.Object implements Transformer
LocalVar.reg in LocalVar may be replaced by a constant value in ConstTransformer. This
class try to insert a new local before LocalVar.start.
before:
... L0: return a0 L1: ====== .var L0 ~ L1 1 -> test // int
after:
... d1 = 1 L0: return a0 L1: ====== .var L0 ~ L1 d1 -> test // int
| Constructor and Description |
|---|
FixVar() |
| Modifier and Type | Method and Description |
|---|---|
void |
transform(IrMethod irMethod) |
public void transform(IrMethod irMethod)
transform in interface Transformer