Implement special cases for the hashCode intrinsic in JVM_IR

This commit is contained in:
Steven Schäfer
2019-05-07 17:27:10 +02:00
committed by max-kammerer
parent 1c3b895fc0
commit 570ee38256
5 changed files with 28 additions and 16 deletions
@@ -780,7 +780,7 @@ public class AsmUtil {
return typeMapper.mapToCallableMethod(toStringDescriptor, false, OwnerKind.ERASED_INLINE_CLASS);
}
static void genHashCode(MethodVisitor mv, InstructionAdapter iv, Type type, JvmTarget jvmTarget) {
public static void genHashCode(MethodVisitor mv, InstructionAdapter iv, Type type, JvmTarget jvmTarget) {
if (type.getSort() == Type.ARRAY) {
Type elementType = correctElementType(type);
if (elementType.getSort() == Type.OBJECT || elementType.getSort() == Type.ARRAY) {