8341512: Optimize StackMapGenerator::processInvokeInstructions

Reviewed-by: liach
This commit is contained in:
Shaojin Wen 2024-10-05 15:37:18 +00:00
parent f8db3a831b
commit 1c3e56c3e4
10 changed files with 13 additions and 19 deletions

View file

@ -92,7 +92,7 @@ public sealed interface EnclosingMethodAttribute
* immediately enclosed by a method or constructor}
*/
default Optional<MethodTypeDesc> enclosingMethodTypeSymbol() {
return enclosingMethod().map(Util::methodTypeSymbol);
return enclosingMethodType().map(Util::methodTypeSymbol);
}
/**

View file

@ -45,6 +45,6 @@ public sealed interface InterfaceMethodRefEntry
* {@return a symbolic descriptor for the interface method's type}
*/
default MethodTypeDesc typeSymbol() {
return Util.methodTypeSymbol(nameAndType());
return Util.methodTypeSymbol(type());
}
}

View file

@ -47,7 +47,7 @@ public sealed interface InvokeDynamicEntry
* {@return a symbolic descriptor for the call site's invocation type}
*/
default MethodTypeDesc typeSymbol() {
return Util.methodTypeSymbol(nameAndType());
return Util.methodTypeSymbol(type());
}
/**

View file

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

View file

@ -94,7 +94,7 @@ public sealed interface InvokeInstruction extends Instruction
* {@return a symbolic descriptor for the method type}
*/
default MethodTypeDesc typeSymbol() {
return Util.methodTypeSymbol(method().nameAndType());
return Util.methodTypeSymbol(method().type());
}