--debug=locals debugs the local optimizer now

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@811 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 3d84cf9b2f
commit c6010dfefe
  1. 14
      jode/jode/obfuscator/MethodIdentifier.java

@ -185,13 +185,19 @@ public class MethodIdentifier extends Identifier implements Opcodes {
LocalOptimizer localOpt = new LocalOptimizer(strippedBytecode, LocalOptimizer localOpt = new LocalOptimizer(strippedBytecode,
info); info);
localOpt.calcLocalInfo(); localOpt.calcLocalInfo();
if ((GlobalOptions.debuggingFlags
& GlobalOptions.DEBUG_LOCALS) != 0) {
GlobalOptions.err.println("Before Local Optimization: ");
localOpt.dumpLocals();
}
localOpt.stripLocals(); localOpt.stripLocals();
localOpt.distributeLocals(); localOpt.distributeLocals();
if ((GlobalOptions.debuggingFlags
// if (GlobalOptions.verboseLevel > 4) & GlobalOptions.DEBUG_LOCALS) != 0) {
// localOpt.dumpLocals(); GlobalOptions.err.println("After Local Optimization: ");
// strippedBytecode.dumpCode(GlobalOptions.err); localOpt.dumpLocals();
}
RemovePopAnalyzer remPop = RemovePopAnalyzer remPop =
new RemovePopAnalyzer(strippedBytecode, this); new RemovePopAnalyzer(strippedBytecode, this);

Loading…
Cancel
Save