Minor, unindent code

This commit is contained in:
Alexander Udalov
2013-12-16 18:01:07 +04:00
parent 22bc499b96
commit ece549b4d4
@@ -673,8 +673,9 @@ public abstract class StackValue {
public void dupReceiver(InstructionAdapter v) { public void dupReceiver(InstructionAdapter v) {
if (isStandardStack(resolvedGetCall, 1) && isStandardStack(resolvedSetCall, 2)) { if (isStandardStack(resolvedGetCall, 1) && isStandardStack(resolvedSetCall, 2)) {
v.dup2(); // collection and index v.dup2(); // collection and index
return;
} }
else {
int size = 0; int size = 0;
// ugly hack: getting the last variable index // ugly hack: getting the last variable index
int lastIndex = frame.enterTemp(Type.INT_TYPE); int lastIndex = frame.enterTemp(Type.INT_TYPE);
@@ -802,7 +803,6 @@ public abstract class StackValue {
frame.leaveTemp(OBJECT_TYPE); frame.leaveTemp(OBJECT_TYPE);
} }
} }
}
private boolean isStandardStack(ResolvedCall call, int valueParamsSize) { private boolean isStandardStack(ResolvedCall call, int valueParamsSize) {
if (call == null) { if (call == null) {