Class FixVar

  • All Implemented Interfaces:
    Transformer

    public class FixVar
    extends java.lang.Object
    implements Transformer
    the 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 Summary

      Constructors 
      Constructor Description
      FixVar()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void transform​(IrMethod irMethod)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FixVar

        public FixVar()