preds is array instead of hash

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@554 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 1f6e56b052
commit 75a48a001f
  1. 7
      jode/jode/obfuscator/SimpleAnalyzer.java

@ -102,14 +102,9 @@ public class SimpleAnalyzer implements CodeAnalyzer, Opcodes {
stacksize += Type.tType(ref.getType()).stackSize(); stacksize += Type.tType(ref.getType()).stackSize();
if (stacksize == 3) { if (stacksize == 3) {
/* Add a pop instruction after this opcode. */ /* Add a pop instruction after this opcode. */
Instruction second = new Instruction(bytecode); Instruction second = instr.appendInstruction();
second.addr = instr.addr+1;
second.length = 1; second.length = 1;
second.opcode = Instruction.opc_pop; second.opcode = Instruction.opc_pop;
second.nextByAddr = instr.nextByAddr;
instr.nextByAddr = second;
second.nextByAddr.preds.removeElement(instr);
second.nextByAddr.preds.addElement(second);
stacksize--; stacksize--;
} }
instr.objData = null; instr.objData = null;

Loading…
Cancel
Save