mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-25 21:16:10 +00:00
Fix tests
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user