8301460: Clean up LambdaForm to reference BasicType enums directly

Reviewed-by: jvernee
This commit is contained in:
Mandy Chung 2023-02-15 18:29:26 +00:00
parent 28f5250fa5
commit 50dcc2aec5
4 changed files with 15 additions and 24 deletions

View file

@ -150,16 +150,6 @@ class LambdaForm {
static final int ARG_TYPE_LIMIT = ARG_TYPES.length;
static final int TYPE_LIMIT = ALL_TYPES.length;
// Derived int constants, which (unlike the enums) can be constant folded.
// We can remove them when JDK-8161245 is fixed.
static final byte
L_TYPE_NUM = (byte) L_TYPE.ordinal(),
I_TYPE_NUM = (byte) I_TYPE.ordinal(),
J_TYPE_NUM = (byte) J_TYPE.ordinal(),
F_TYPE_NUM = (byte) F_TYPE.ordinal(),
D_TYPE_NUM = (byte) D_TYPE.ordinal(),
V_TYPE_NUM = (byte) V_TYPE.ordinal();
final char btChar;
final Class<?> btClass;
final Wrapper btWrapper;