|
|
@ -28,9 +28,11 @@ import java.io.PrintWriter; |
|
|
|
import java.io.File; |
|
|
|
import java.io.File; |
|
|
|
///#ifdef JDK12
|
|
|
|
///#ifdef JDK12
|
|
|
|
///import java.util.Collection;
|
|
|
|
///import java.util.Collection;
|
|
|
|
|
|
|
|
///import java.util.Arrays;
|
|
|
|
///import java.util.HashSet;
|
|
|
|
///import java.util.HashSet;
|
|
|
|
///#else
|
|
|
|
///#else
|
|
|
|
import jode.util.Collection; |
|
|
|
import jode.util.Collection; |
|
|
|
|
|
|
|
import jode.util.Arrays; |
|
|
|
import jode.util.HashSet; |
|
|
|
import jode.util.HashSet; |
|
|
|
///#endif
|
|
|
|
///#endif
|
|
|
|
|
|
|
|
|
|
|
@ -181,6 +183,19 @@ public class Main { |
|
|
|
return bundle; |
|
|
|
return bundle; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static CodeAnalyzer createCodeAnalyzer() { |
|
|
|
|
|
|
|
return new ConstantAnalyzer() /*XXX*/; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static CodeTransformer[] codeTransformers = { |
|
|
|
|
|
|
|
new LocalOptimizer(), |
|
|
|
|
|
|
|
new RemovePopAnalyzer() |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static Collection getCodeTransformers() { |
|
|
|
|
|
|
|
return Arrays.asList(codeTransformers); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void main(String[] params) { |
|
|
|
public static void main(String[] params) { |
|
|
|
int i; |
|
|
|
int i; |
|
|
|
String sourcePath = System.getProperty("java.class.path") |
|
|
|
String sourcePath = System.getProperty("java.class.path") |
|
|
|