Keep real type of stack contexts, which I think I need later. Exec test passes, not sure of other implications of this.

This commit is contained in:
Adam
2016-01-30 15:56:36 -05:00
parent 2a3b9158ea
commit cbe45eddfe
20 changed files with 40 additions and 33 deletions

View File

@@ -2,28 +2,30 @@ package net.runelite.deob.execution;
import java.io.File;
import net.runelite.deob.ClassGroup;
import net.runelite.deob.deobfuscators.rename.MapStaticTest;
import net.runelite.deob.util.JarUtil;
import org.junit.Test;
public class ExecutionTest
{
private static final String JAR1 = MapStaticTest.class.getResource("/adamin1.jar").getFile(),
JAR2 = MapStaticTest.class.getResource("/adamin2.jar").getFile();
@Test
public void test() throws Exception
{
ClassGroup group = JarUtil.loadJar(new File("d:/rs/07/adamin1.jar"));
System.out.println("Done loading jar " + System.currentTimeMillis() / 1000);
Execution e = new Execution(group);
//e.setBuildGraph(true);
//e.setFollowInvokes(false);
ClassGroup group1 = JarUtil.loadJar(new File(JAR1));
Execution e = new Execution(group1);
e.populateInitialMethods();
e.run();
}
@Test
public void test2() throws Exception
{
ClassGroup group2 = JarUtil.loadJar(new File(JAR2));
Execution e = new Execution(group2);
e.populateInitialMethods();
e.run();
System.out.println("Done exec " + System.currentTimeMillis() / 1000);
Runtime runtime = Runtime.getRuntime();
System.out.println("Total memory (MB) " + runtime.totalMemory()/1024L/1024L);
}
}