mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8341512: Optimize StackMapGenerator::processInvokeInstructions
Reviewed-by: liach
This commit is contained in:
parent
f8db3a831b
commit
1c3e56c3e4
10 changed files with 13 additions and 19 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue