not creating always new instruction definition objects

This commit is contained in:
honfika@gmail.com
2015-09-07 10:20:11 +02:00
parent 1bbbfebea4
commit 1badb49810
85 changed files with 1278 additions and 789 deletions

View File

@@ -123,7 +123,7 @@ public class ActionScript3AssemblerTest extends ActionScriptTestBase {
+ "pushtrue\r\n"
+ "pop\r\n"
+ "label1:pushfalse\r\n");
b.getCode().replaceInstruction(getBaseAddr() + 2, new AVM2Instruction(0, new DeobfuscatePopIns(), new int[]{}), b);
b.getCode().replaceInstruction(getBaseAddr() + 2, new AVM2Instruction(0, DeobfuscatePopIns.getInstance(), new int[]{}), b);
}
@Test
@@ -135,6 +135,6 @@ public class ActionScript3AssemblerTest extends ActionScriptTestBase {
+ "jump label1\r\n" //remove this
+ "pop\r\n"
+ "label1:pushfalse\r\n");
b.getCode().replaceInstruction(getBaseAddr() + 4, new AVM2Instruction(0, new DeobfuscatePopIns(), new int[]{}), b);
b.getCode().replaceInstruction(getBaseAddr() + 4, new AVM2Instruction(0, DeobfuscatePopIns.getInstance(), new int[]{}), b);
}
}