AS3: chained assignments fix

This commit is contained in:
Jindra Pet��k
2013-01-01 20:57:19 +01:00
parent 900099e7df
commit 1200f20414
@@ -1523,6 +1523,11 @@ public class AVM2Code {
//chained assignments
int reg = (((SetLocalTypeIns) insAfter.definition).getRegisterId(insAfter));
for (int t = ip + 1; t < end - 1; t++) {
if (code.get(t).definition instanceof KillIns) {
if (code.get(t).operands[0] == reg) {
break;
}
}
if (code.get(t).definition instanceof GetLocalTypeIns) {
if (((GetLocalTypeIns) code.get(t).definition).getRegisterId(code.get(t)) == reg) {
if (code.get(t + 1).definition instanceof KillIns) {