Hard to follow, exception removal and unused block (only from the now

removed exceptions from what I can tell)
This commit is contained in:
Adam
2015-05-10 16:42:47 -04:00
parent 2edf9d2117
commit fa3e9c0262
14 changed files with 181 additions and 8 deletions

View File

@@ -21,4 +21,10 @@ public class AThrow extends Instruction
ObjectInstance exception = (ObjectInstance) e.getStack().pop();
e.getPath().throwException(this, exception);
}
@Override
public boolean isTerminal()
{
return true;
}
}

View File

@@ -40,4 +40,10 @@ public class Goto extends Instruction
{
e.jump(offset);
}
@Override
public boolean isTerminal()
{
return true;
}
}

View File

@@ -40,4 +40,10 @@ public class GotoW extends Instruction
{
e.jump(offset);
}
@Override
public boolean isTerminal()
{
return true;
}
}

View File

@@ -83,4 +83,10 @@ public class LookupSwitch extends Instruction
Path p = e.getPath().dup();
p.getCurrentFrame().jump(def);
}
@Override
public boolean isTerminal()
{
return true;
}
}

View File

@@ -20,4 +20,10 @@ public class Return extends Instruction
Object ret = e.getStack().pop();
e.getPath().returnFrame(this, ret);
}
@Override
public boolean isTerminal()
{
return true;
}
}

View File

@@ -79,4 +79,10 @@ public class TableSwitch extends Instruction
Path p = e.getPath().dup();
p.getCurrentFrame().jump(def);
}
@Override
public boolean isTerminal()
{
return true;
}
}

View File

@@ -20,4 +20,10 @@ public class VReturn extends Instruction
// XXX exceptions?
e.getPath().returnFrame();
}
@Override
public boolean isTerminal()
{
return true;
}
}