8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23 package jdk.vm.ci.hotspot;
24
25 import java.util.ArrayList;
26 import java.util.List;
27
28 import jdk.vm.ci.common.JVMCIError;
29 import jdk.vm.ci.meta.JavaKind;
30 import jdk.vm.ci.meta.JavaType;
31 import jdk.vm.ci.meta.ResolvedJavaType;
32 import jdk.vm.ci.meta.Signature;
33 import jdk.vm.ci.meta.UnresolvedJavaType;
34
35 /**
36 * Represents a method signature.
37 */
38 public class HotSpotSignature implements Signature {
39
40 private final List<String> parameters = new ArrayList<>();
41 private final String returnType;
42 private final String originalString;
43 private ResolvedJavaType[] parameterTypes;
44 private ResolvedJavaType returnTypeCache;
45 private final HotSpotJVMCIRuntime runtime;
46
47 public HotSpotSignature(HotSpotJVMCIRuntime runtime, String signature) {
48 this.runtime = runtime;
|
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23 package jdk.vm.ci.hotspot;
24
25 import java.util.ArrayList;
26 import java.util.List;
27
28 import jdk.vm.ci.meta.JavaKind;
29 import jdk.vm.ci.meta.JavaType;
30 import jdk.vm.ci.meta.ResolvedJavaType;
31 import jdk.vm.ci.meta.Signature;
32 import jdk.vm.ci.meta.UnresolvedJavaType;
33
34 /**
35 * Represents a method signature.
36 */
37 public class HotSpotSignature implements Signature {
38
39 private final List<String> parameters = new ArrayList<>();
40 private final String returnType;
41 private final String originalString;
42 private ResolvedJavaType[] parameterTypes;
43 private ResolvedJavaType returnTypeCache;
44 private final HotSpotJVMCIRuntime runtime;
45
46 public HotSpotSignature(HotSpotJVMCIRuntime runtime, String signature) {
47 this.runtime = runtime;
|