remove stack of ifs in illegal state ex deob, get rid of using pcs in

frame to execute, need to remove more of this later, make jumps jump to
instructions, doesn't yet work
This commit is contained in:
Adam
2015-06-20 17:56:46 -04:00
parent 98d85c646b
commit 713db7777f
17 changed files with 116 additions and 45 deletions

View File

@@ -99,12 +99,19 @@ public class Instructions
public void buildBlocks()
{
clearBlockGraph();
buildJumpGraph();
Block current = null;
for (Instruction i : instructions)
{
if (current == null)
if (current == null || !i.from.isEmpty())
{
// this caused exception errors?
if (current != null)
{
current.end = current.instructions.get(current.instructions.size() - 1);
blocks.add(current);
}
current = new Block();
current.begin = i;
findExceptionInfo(current, i);