mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-07 23:44:11 -08:00
Fix compilation of pop2 instruction when top two entries are values of type 1
This commit is contained in:
parent
e557a25a04
commit
2d79da7b1b
|
@ -148,11 +148,11 @@ public class ProgramParser implements VariableDebugInformation {
|
||||||
|
|
||||||
private int popDouble() {
|
private int popDouble() {
|
||||||
if (stack == null || stack.type != DOUBLE_SECOND_HALF) {
|
if (stack == null || stack.type != DOUBLE_SECOND_HALF) {
|
||||||
throw new AssertionError("Illegal stack state at " + index);
|
throw new AssertionError("***Illegal stack state at " + index);
|
||||||
}
|
}
|
||||||
stack = stack.next;
|
stack = stack.next;
|
||||||
if (stack == null || stack.type != DOUBLE_FIRST_HALF) {
|
if (stack == null || stack.type != DOUBLE_FIRST_HALF) {
|
||||||
throw new AssertionError("Illegal stack state at " + index);
|
throw new AssertionError("***Illegal stack state at " + index);
|
||||||
}
|
}
|
||||||
int depth = stack.depth;
|
int depth = stack.depth;
|
||||||
stack = stack.next;
|
stack = stack.next;
|
||||||
|
@ -1047,6 +1047,7 @@ public class ProgramParser implements VariableDebugInformation {
|
||||||
case Opcodes.POP2:
|
case Opcodes.POP2:
|
||||||
if (stack.type == SINGLE) {
|
if (stack.type == SINGLE) {
|
||||||
popSingle();
|
popSingle();
|
||||||
|
popSingle();
|
||||||
} else {
|
} else {
|
||||||
popDouble();
|
popDouble();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user