src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotSignature.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
166 JavaType result = runtime.lookupType(parameters.get(index), (HotSpotResolvedObjectType) accessingClass, false); |
166 JavaType result = runtime.lookupType(parameters.get(index), (HotSpotResolvedObjectType) accessingClass, false); |
167 if (result instanceof ResolvedJavaType) { |
167 if (result instanceof ResolvedJavaType) { |
168 type = (ResolvedJavaType) result; |
168 type = (ResolvedJavaType) result; |
169 parameterTypes[index] = type; |
169 parameterTypes[index] = type; |
170 } else { |
170 } else { |
|
171 assert result != null; |
171 return result; |
172 return result; |
172 } |
173 } |
173 } |
174 } |
|
175 assert type != null; |
174 return type; |
176 return type; |
175 } |
177 } |
176 |
178 |
177 @Override |
179 @Override |
178 public String toMethodDescriptor() { |
180 public String toMethodDescriptor() { |
179 assert originalString.equals(Signature.super.toMethodDescriptor()); |
181 assert originalString.equals(Signature.super.toMethodDescriptor()) : originalString + " != " + Signature.super.toMethodDescriptor(); |
180 return originalString; |
182 return originalString; |
181 } |
183 } |
182 |
184 |
183 @Override |
185 @Override |
184 public JavaKind getReturnKind() { |
186 public JavaKind getReturnKind() { |