From c6010dfefe070f8c05d7461372e58fd021b202e2 Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 14 May 1999 11:33:41 +0000 Subject: [PATCH] --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 --- jode/jode/obfuscator/MethodIdentifier.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/jode/jode/obfuscator/MethodIdentifier.java b/jode/jode/obfuscator/MethodIdentifier.java index 547843f..752113b 100644 --- a/jode/jode/obfuscator/MethodIdentifier.java +++ b/jode/jode/obfuscator/MethodIdentifier.java @@ -185,13 +185,19 @@ public class MethodIdentifier extends Identifier implements Opcodes { LocalOptimizer localOpt = new LocalOptimizer(strippedBytecode, info); localOpt.calcLocalInfo(); + if ((GlobalOptions.debuggingFlags + & GlobalOptions.DEBUG_LOCALS) != 0) { + GlobalOptions.err.println("Before Local Optimization: "); + localOpt.dumpLocals(); + } localOpt.stripLocals(); localOpt.distributeLocals(); - -// if (GlobalOptions.verboseLevel > 4) -// localOpt.dumpLocals(); -// strippedBytecode.dumpCode(GlobalOptions.err); + if ((GlobalOptions.debuggingFlags + & GlobalOptions.DEBUG_LOCALS) != 0) { + GlobalOptions.err.println("After Local Optimization: "); + localOpt.dumpLocals(); + } RemovePopAnalyzer remPop = new RemovePopAnalyzer(strippedBytecode, this);