Package com.android.dx.dex.cf
Class OptimizerOptions
java.lang.Object
com.android.dx.dex.cf.OptimizerOptions
Settings for optimization of code.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.void
loadOptimizeLists
(String optimizeListFile, String dontOptimizeListFile) Loads the optimize/don't optimize lists from files.boolean
shouldOptimize
(String canonicalMethodName) Checks whether the specified method should be optimized
-
Constructor Details
-
OptimizerOptions
public OptimizerOptions()
-
-
Method Details
-
loadOptimizeLists
Loads the optimize/don't optimize lists from files.- Parameters:
optimizeListFile
- PathnamedontOptimizeListFile
- 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 methodparamSize
->= 0;
parameter size of methodisStatic
- true if this method has no 'this' pointer argument.args
-non-null;
translator argumentsadvice
-non-null;
translation advicermeth
-non-null;
method with all optimization steps run.
-
shouldOptimize
Checks whether the specified method should be optimized- Parameters:
canonicalMethodName
- name of method being considered- Returns:
- true if it should be optimized
-