Skip to content

Commit 80809ef

Browse files
committed
8314248: Remove HotSpotConstantPool::isResolvedDynamicInvoke
Reviewed-by: thartmann, dnsimon
1 parent 004651d commit 80809ef

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/hotspot/HotSpotConstantPool.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -949,26 +949,6 @@ static boolean isSignaturePolymorphicHolder(final ResolvedJavaType type) {
949949
return false;
950950
}
951951

952-
/**
953-
* Check for a resolved dynamic adapter method at the specified index, resulting from either a
954-
* resolved invokedynamic or invokevirtual on a signature polymorphic MethodHandle method
955-
* (HotSpot invokehandle).
956-
*
957-
* @param cpi the constant pool index
958-
* @param opcode the opcode of the instruction for which the lookup is being performed
959-
* @return {@code true} if a signature polymorphic method reference was found, otherwise
960-
* {@code false}
961-
*/
962-
public boolean isResolvedDynamicInvoke(int cpi, int opcode) {
963-
if (Bytecodes.isInvokeHandleAlias(opcode)) {
964-
final int methodRefCacheIndex = rawIndexToConstantPoolCacheIndex(cpi, opcode);
965-
checkTag(compilerToVM().constantPoolRemapInstructionOperandFromCache(this, methodRefCacheIndex), constants.jvmMethodref);
966-
int op = compilerToVM().isResolvedInvokeHandleInPool(this, methodRefCacheIndex);
967-
return op == opcode;
968-
}
969-
return false;
970-
}
971-
972952
public String getSourceFileName() {
973953
final int sourceFileNameIndex = UNSAFE.getChar(getConstantPoolPointer() + config().constantPoolSourceFileNameIndexOffset);
974954
if (sourceFileNameIndex == 0) {

0 commit comments

Comments
 (0)