void tryMinimizeSwitchExits(Node n, Token exitType, @Nullable String labelName) { checkState(n.isSwitch()); // Skipping the switch condition, visit all the children. for (Node c = n.getSecondChild(); c != null; c = c.getNext()) { if (c != n.getLastChild()) { tryMinimizeSwitchCaseExits(c, exitType, labelName); } else { // Last case, the last case block can be optimized more aggressively. tryMinimizeExits(c.getLastChild(), exitType, labelName); } } }
void tryMinimizeSwitchExits(Node n, int exitType, @Nullable String labelName) { Preconditions.checkState(n.isSwitch()); // Skipping the switch condition, visit all the children. for (Node c = n.getSecondChild(); c != null; c = c.getNext()) { if (c != n.getLastChild()) { tryMinimizeSwitchCaseExits(c, exitType, labelName); } else { // Last case, the last case block can be optimized more aggressively. tryMinimizeExits(c.getLastChild(), exitType, labelName); } } }