Skip to content

Commit

Permalink
8314248: Remove HotSpotConstantPool::isResolvedDynamicInvoke
Browse files Browse the repository at this point in the history
Reviewed-by: thartmann, dnsimon
  • Loading branch information
iklam committed Aug 15, 2023
1 parent 004651d commit 80809ef
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -949,26 +949,6 @@ static boolean isSignaturePolymorphicHolder(final ResolvedJavaType type) {
return false;
}

/**
* Check for a resolved dynamic adapter method at the specified index, resulting from either a
* resolved invokedynamic or invokevirtual on a signature polymorphic MethodHandle method
* (HotSpot invokehandle).
*
* @param cpi the constant pool index
* @param opcode the opcode of the instruction for which the lookup is being performed
* @return {@code true} if a signature polymorphic method reference was found, otherwise
* {@code false}
*/
public boolean isResolvedDynamicInvoke(int cpi, int opcode) {
if (Bytecodes.isInvokeHandleAlias(opcode)) {
final int methodRefCacheIndex = rawIndexToConstantPoolCacheIndex(cpi, opcode);
checkTag(compilerToVM().constantPoolRemapInstructionOperandFromCache(this, methodRefCacheIndex), constants.jvmMethodref);
int op = compilerToVM().isResolvedInvokeHandleInPool(this, methodRefCacheIndex);
return op == opcode;
}
return false;
}

public String getSourceFileName() {
final int sourceFileNameIndex = UNSAFE.getChar(getConstantPoolPointer() + config().constantPoolSourceFileNameIndexOffset);
if (sourceFileNameIndex == 0) {
Expand Down

1 comment on commit 80809ef

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.