better AS1/2 parser

This commit is contained in:
Jindra Petk
2013-04-14 14:20:38 +02:00
parent 419696472c
commit 9c2e970e65
7 changed files with 298 additions and 118 deletions

View File

@@ -315,7 +315,7 @@ public class ActionGraph extends Graph {
@Override
protected int checkIp(int ip) {
int oldIp=ip;
//return in for..in
GraphSourceItem action = code.get(ip);
if ((action instanceof ActionPush) && (((ActionPush) action).values.size() == 1) && (((ActionPush) action).values.get(0) instanceof Null)) {
@@ -332,6 +332,9 @@ public class ActionGraph extends Graph {
}
}
}
if(oldIp!=ip){
return checkIp(ip);
}
return ip;
}
}