Fixed AS3 - insert debug instruction to mark register names even with activation

This commit is contained in:
Jindra Petřík
2021-12-08 08:29:05 +01:00
parent 2cee8a7386
commit 142093c87c
2 changed files with 2 additions and 3 deletions
@@ -2001,9 +2001,7 @@ public class AVM2SourceGenerator implements SourceGenerator {
}
}
for (int i = 1; i < registerNames.size(); i++) {
if (!needsActivation) {
mbodyCode.add(i - 1, ins(AVM2Instructions.Debug, 1, str(registerNames.get(i)), i - 1, (int) registerLines.get(i)));
}
mbodyCode.add(i - 1, ins(AVM2Instructions.Debug, 1, str(registerNames.get(i)), i - 1, (int) registerLines.get(i)));
}
if (!subMethod) {
mbodyCode.add(0, new AVM2Instruction(0, AVM2Instructions.GetLocal0, null));