AS3: loops fix

This commit is contained in:
Jindra Petk
2013-01-02 13:55:08 +01:00
parent f048ca746e
commit 95bd434c1a

View File

@@ -978,7 +978,7 @@ public class AVM2Code {
}
private ConvertOutput toSource(boolean isStatic, int classIndex, java.util.HashMap<Integer, TreeItem> localRegs, Stack<TreeItem> stack, Stack<TreeItem> scopeStack, ABC abc, ConstantPool constants, MethodInfo method_info[], MethodBody body, int start, int end, HashMap<Integer, String> localRegNames, List<String> fullyQualifiedNames) throws ConvertException {
boolean debugMode = false;
boolean debugMode = DEBUG_MODE;
if (debugMode) {
System.out.println("OPEN SubSource:" + start + "-" + end + " " + code.get(start).toString() + " to " + code.get(end).toString());
}
@@ -1602,6 +1602,10 @@ public class AVM2Code {
hasElse = false;
break;
}
if (l.loopContinue == jumpPos) {
hasElse = false;
break;
}
}
if (jumpPos > ip && jumpPos < targetIns - 1) {