| java.lang.Object | ||
| ↳ | com.pnfsoftware.jeb.core.units.code.asm.decompiler.opt.AbstractMasterOptimizer<T extends com.pnfsoftware.jeb.core.units.code.asm.decompiler.opt.IOptimizerTarget> | |
| ↳ | com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.opt.CMasterOptimizer | |
Master optimizer for the C AST generated code.
Information about how groups of optimizers are scheduled for execution can be found in the
IMasterOptimizer javadoc.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pnfsoftware.jeb.core.units.code.asm.decompiler.opt.IMasterOptimizer
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| public static final CMasterOptimizer | EMPTY | ||||||||||
| public static int | defaultMaxRunCount | no max | |||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pnfsoftware.jeb.core.units.code.asm.decompiler.opt.AbstractMasterOptimizer
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
CMasterOptimizer(ICMethod m)
Create a standard AST master optimizer with no maximum runcount (unsafe).
| |||||||||||
|
CMasterOptimizer(ICMethod m, int grp1NMaxRunCount)
Create a standard AST master optimizer.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | getTargetAddress(ICMethod target) | ||||||||||
| boolean |
onOptimizerException(ICMethod target, IOptimizer<ICMethod> opt, Exception ex)
This method is called when an optimizer hard-failed and generated an exception.
| ||||||||||
| void |
postAllOptimizationsCallback(ICMethod m)
This method might be overridden, but the parent should be called first.
| ||||||||||
| void |
postOptimizationCallback(ICMethod m, OptimizerEntry<ICMethod> e, int cnt, long executionTimeMs)
This method might be overridden, but the parent should be called first.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pnfsoftware.jeb.core.units.code.asm.decompiler.opt.AbstractMasterOptimizer
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.code.asm.decompiler.opt.IMasterOptimizer
| |||||||||||
no max
Create a standard AST master optimizer with no maximum runcount (unsafe).
| m | optional default method; the target method may be set after construction using #setTarget(ICRoutineContext) |
|---|
Create a standard AST master optimizer.
| m | optional default method; the target method may be set after construction using #setTarget(ICRoutineContext) |
|---|---|
| grp1NMaxRunCount | maximum run count for the group [1..N] |
This method is called when an optimizer hard-failed and generated an exception.
| target | the target that being optimized |
|---|---|
| opt | the failing optimizer |
| ex | the generated exception |
This method might be overridden, but the parent should be called first.
This method might be overridden, but the parent should be called first. Note that this method might have a big impact on decompilation performance, so override carefully.