Fix tests

This commit is contained in:
Jindra Petřík
2025-08-10 08:14:56 +02:00
parent 68fdf1097d
commit 7c2c87c8e4
3 changed files with 26 additions and 24 deletions

View File

@@ -30,6 +30,7 @@ import com.jpexs.decompiler.graph.TranslateStack;
import com.jpexs.decompiler.graph.model.DuplicateItem;
import com.jpexs.decompiler.graph.model.DuplicateSourceItem;
import com.jpexs.decompiler.graph.model.HasTempIndex;
import com.jpexs.decompiler.graph.model.SetTemporaryItem;
import java.util.List;
/**
@@ -69,6 +70,12 @@ public class DupIns extends InstructionDefinition {
} else {
temp = localData.maxTempIndex.getVal() + 1;
localData.maxTempIndex.setVal(temp);
/*
//TODO: somehow implement this. Currently it fails many tests:-(
stack.finishBlock(output);
stack.addToOutput(new SetTemporaryItem(AVM2GraphTargetDialect.INSTANCE, ins, localData.lineStartInstruction, v, temp, "dup"));
stack.finishBlock(output);
*/
stack.push(new DuplicateSourceItem(AVM2GraphTargetDialect.INSTANCE, ins, localData.lineStartInstruction, v, temp));
}
}