8340280: Avoid calling MT.invokerType() when creating LambdaForms

Reviewed-by: liach, jvernee
This commit is contained in:
Claes Redestad 2024-09-18 07:01:13 +00:00
parent 147e30070d
commit d23c59e408
6 changed files with 48 additions and 43 deletions

View file

@ -1636,6 +1636,16 @@ class LambdaForm {
names[i] = argument(i, basicType(types.parameterType(i)));
return names;
}
static Name[] invokeArguments(int extra, MethodType types) {
int length = types.parameterCount();
Name[] names = new Name[length + extra + 1];
names[0] = argument(0, L_TYPE);
for (int i = 0; i < length; i++)
names[i + 1] = argument(i + 1, basicType(types.parameterType(i)));
return names;
}
static final int INTERNED_ARGUMENT_LIMIT = 10;
private static final Name[][] INTERNED_ARGUMENTS
= new Name[ARG_TYPE_LIMIT][INTERNED_ARGUMENT_LIMIT];