mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8287292: Improve TransformKey to pack more kinds of transforms efficiently
Reviewed-by: jlaskey, jvernee, mchung
This commit is contained in:
parent
777f813e9b
commit
be93318576
2 changed files with 104 additions and 55 deletions
|
@ -222,10 +222,10 @@ class LambdaForm {
|
|||
return basicType(type).btChar;
|
||||
}
|
||||
|
||||
static byte[] basicTypesOrd(Class<?>[] types) {
|
||||
byte[] ords = new byte[types.length];
|
||||
static int[] basicTypesOrd(Class<?>[] types) {
|
||||
int[] ords = new int[types.length];
|
||||
for (int i = 0; i < ords.length; i++) {
|
||||
ords[i] = (byte)basicType(types[i]).ordinal();
|
||||
ords[i] = basicType(types[i]).ordinal();
|
||||
}
|
||||
return ords;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue