8287522: StringConcatFactory: Add in prependers and mixers in batches

Reviewed-by: jlaskey, mchung
This commit is contained in:
Claes Redestad 2022-06-08 07:17:31 +00:00
parent 47d3c2a175
commit 5c39a36641
4 changed files with 353 additions and 199 deletions

View file

@ -199,13 +199,8 @@ class LambdaForm {
default -> throw newInternalError("Unknown type char: '" + type + "'");
};
}
static BasicType basicType(Wrapper type) {
char c = type.basicTypeChar();
return basicType(c);
}
static BasicType basicType(Class<?> type) {
if (!type.isPrimitive()) return L_TYPE;
return basicType(Wrapper.forPrimitiveType(type));
return basicType(Wrapper.basicTypeChar(type));
}
static int[] basicTypeOrds(BasicType[] types) {
if (types == null) {