8341510: Optimize StackMapGenerator::processFieldInstructions

Reviewed-by: liach
This commit is contained in:
Shaojin Wen 2024-10-05 01:21:25 +00:00
parent b42fbf43df
commit f8db3a831b
4 changed files with 7 additions and 13 deletions

View file

@ -50,7 +50,7 @@ public sealed interface ConstantDynamicEntry
* {@return a symbolic descriptor for the dynamic constant's type}
*/
default ClassDesc typeSymbol() {
return Util.fieldTypeSymbol(nameAndType());
return Util.fieldTypeSymbol(type());
}
@Override

View file

@ -44,6 +44,6 @@ public sealed interface FieldRefEntry extends MemberRefEntry
* {@return a symbolic descriptor for the field's type}
*/
default ClassDesc typeSymbol() {
return Util.fieldTypeSymbol(nameAndType());
return Util.fieldTypeSymbol(type());
}
}