Skip to content

Commit

Permalink
Code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
broneill committed Dec 22, 2024
1 parent ac47a7b commit eef0bee
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions src/main/java/org/cojen/maker/TheMethodMaker.java
Original file line number Diff line number Diff line change
Expand Up @@ -3047,7 +3047,6 @@ private static boolean isHidden(Class clazz) {
final class Flow {
// List of variables that have been visited and have a slot assigned.
final List<LocalVar> mVarList;
final int mMinVars;

// Bits are set for variables known to be available at the current flow position.
BitSet mVarUsage;
Expand All @@ -3062,7 +3061,6 @@ final class Flow {

Flow(List<LocalVar> varList, BitSet varUsage) {
mVarList = varList;
mMinVars = varList.size();
mVarUsage = varUsage;
}

Expand Down Expand Up @@ -5023,17 +5021,16 @@ private BaseType arrayCheck() throws IllegalStateException {
}

private byte aloadOp() {
switch (arrayCheck().elementType().typeCode()) {
case T_BOOLEAN:
case T_BYTE: return BALOAD;
case T_CHAR: return CALOAD;
case T_SHORT: return SALOAD;
case T_INT: return IALOAD;
case T_FLOAT: return FALOAD;
case T_LONG: return LALOAD;
case T_DOUBLE: return DALOAD;
default: return AALOAD;
}
return switch (arrayCheck().elementType().typeCode()) {
case T_BOOLEAN, T_BYTE -> BALOAD;
case T_CHAR -> CALOAD;
case T_SHORT -> SALOAD;
case T_INT -> IALOAD;
case T_FLOAT -> FALOAD;
case T_LONG -> LALOAD;
case T_DOUBLE -> DALOAD;
default -> AALOAD;
};
}

@Override
Expand Down

0 comments on commit eef0bee

Please sign in to comment.