com.android.dx.dex.cf
Class OptimizerOptions

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

public class OptimizerOptions
extends Object

Settings for optimization of code.


Method Summary
static 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.
static void loadOptimizeLists(String optimizeListFile, String dontOptimizeListFile)
          Loads the optimize/don't optimize lists from files.
static boolean shouldOptimize(String canonicalMethodName)
          Checks whether the specified method should be optimized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadOptimizeLists

public static void loadOptimizeLists(String optimizeListFile,
                                     String dontOptimizeListFile)
Loads the optimize/don't optimize lists from files.

Parameters:
optimizeListFile - Pathname
dontOptimizeListFile - Pathname

compareOptimizerStep

public static 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 static 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


Copyright © 2015. All rights reserved.