mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8340280: Avoid calling MT.invokerType() when creating LambdaForms
Reviewed-by: liach, jvernee
This commit is contained in:
parent
147e30070d
commit
d23c59e408
6 changed files with 48 additions and 43 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue