Class OptimizerOptions

java.lang.Object
com.android.dx.dex.cf.OptimizerOptions

public class OptimizerOptions extends Object
Settings for optimization of code.
  • Constructor Details

    • OptimizerOptions

      public OptimizerOptions()
  • Method Details

    • loadOptimizeLists

      public void loadOptimizeLists(String optimizeListFile, String dontOptimizeListFile)
      Loads the optimize/don't optimize lists from files.
      Parameters:
      optimizeListFile - Pathname
      dontOptimizeListFile - Pathname
    • compareOptimizerStep

      public void compareOptimizerStep(RopMethod nonOptRmeth, int paramSize, boolean isStatic, CfOptions args, TranslationAdvice advice, RopMethod rmeth)
      Compares the output of the optimizer run normally with a run skipping some optional steps. Results are printed to stderr.
      Parameters:
      nonOptRmeth - non-null; origional rop method
      paramSize - >= 0; parameter size of method
      isStatic - true if this method has no 'this' pointer argument.
      args - non-null; translator arguments
      advice - non-null; translation advice
      rmeth - non-null; method with all optimization steps run.
    • shouldOptimize

      public boolean shouldOptimize(String canonicalMethodName)
      Checks whether the specified method should be optimized
      Parameters:
      canonicalMethodName - name of method being considered
      Returns:
      true if it should be optimized