author | mchung |
Tue, 06 Nov 2018 10:01:16 -0800 | |
changeset 52427 | 3c6aa484536c |
parent 47216 | 71c04702a3d5 |
permissions | -rw-r--r-- |
33160 | 1 |
/* |
52427
3c6aa484536c
8211122: Reduce the number of internal classes made accessible to jdk.unsupported
mchung
parents:
47216
diff
changeset
|
2 |
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. |
33160 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
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 |
|
7 |
* published by the Free Software Foundation. |
|
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 |
*/ |
|
41705
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40059
diff
changeset
|
23 |
|
33160 | 24 |
package compiler.jvmci.compilerToVM; |
25 |
||
36305
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
26 |
import compiler.jvmci.common.testcases.MultipleAbstractImplementer; |
33160 | 27 |
import compiler.jvmci.common.testcases.MultipleImplementer2; |
28 |
import compiler.jvmci.common.testcases.MultipleImplementersInterface; |
|
36305
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
29 |
import compiler.jvmci.compilerToVM.ConstantPoolTestCase.ConstantTypes; |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
30 |
import compiler.jvmci.compilerToVM.ConstantPoolTestCase.TestedCPEntry; |
52427
3c6aa484536c
8211122: Reduce the number of internal classes made accessible to jdk.unsupported
mchung
parents:
47216
diff
changeset
|
31 |
import jdk.internal.access.SharedSecrets; |
40059 | 32 |
import jdk.internal.org.objectweb.asm.Opcodes; |
33 |
import jdk.internal.reflect.ConstantPool; |
|
34 |
import jdk.internal.reflect.ConstantPool.Tag; |
|
39421
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
35 |
import jdk.vm.ci.meta.MetaAccessProvider; |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
36 |
import jdk.vm.ci.meta.ResolvedJavaMethod; |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
37 |
import jdk.vm.ci.meta.ResolvedJavaType; |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
38 |
import jdk.vm.ci.runtime.JVMCI; |
36305
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
39 |
import sun.hotspot.WhiteBox; |
40059 | 40 |
|
41 |
import java.util.HashMap; |
|
42 |
import java.util.Map; |
|
43 |
||
44 |
import static compiler.jvmci.compilerToVM.ConstantPoolTestCase.ConstantTypes.CONSTANT_CLASS; |
|
45 |
import static compiler.jvmci.compilerToVM.ConstantPoolTestCase.ConstantTypes.CONSTANT_FIELDREF; |
|
46 |
import static compiler.jvmci.compilerToVM.ConstantPoolTestCase.ConstantTypes.CONSTANT_INTERFACEMETHODREF; |
|
47 |
import static compiler.jvmci.compilerToVM.ConstantPoolTestCase.ConstantTypes.CONSTANT_INVOKEDYNAMIC; |
|
48 |
import static compiler.jvmci.compilerToVM.ConstantPoolTestCase.ConstantTypes.CONSTANT_METHODHANDLE; |
|
49 |
import static compiler.jvmci.compilerToVM.ConstantPoolTestCase.ConstantTypes.CONSTANT_METHODREF; |
|
50 |
import static compiler.jvmci.compilerToVM.ConstantPoolTestCase.ConstantTypes.CONSTANT_METHODTYPE; |
|
51 |
import static compiler.jvmci.compilerToVM.ConstantPoolTestCase.ConstantTypes.CONSTANT_STRING; |
|
33160 | 52 |
|
53 |
/** |
|
54 |
* Class contains hard-coded constant pool tables for dummy classes used for |
|
55 |
* jdk.vm.ci.hotspot.CompilerToVM constant pool methods |
|
56 |
*/ |
|
57 |
public class ConstantPoolTestsHelper { |
|
58 |
||
36305
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
59 |
public static final int NO_CP_CACHE_PRESENT = Integer.MAX_VALUE; |
39421
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
60 |
private static final MetaAccessProvider metaAccess = JVMCI.getRuntime().getHostJVMCIBackend().getMetaAccess(); |
33160 | 61 |
|
62 |
public enum DummyClasses { |
|
63 |
DUMMY_CLASS(MultipleImplementer2.class, CP_MAP_FOR_CLASS), |
|
36305
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
64 |
DUMMY_ABS_CLASS(MultipleAbstractImplementer.class, CP_MAP_FOR_ABS_CLASS), |
33160 | 65 |
DUMMY_INTERFACE(MultipleImplementersInterface.class, CP_MAP_FOR_INTERFACE); |
66 |
||
36305
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
67 |
private static final WhiteBox WB = WhiteBox.getWhiteBox(); |
33160 | 68 |
public final Class<?> klass; |
36305
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
69 |
public final ConstantPool constantPoolSS; |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
70 |
public final Map<ConstantTypes, TestedCPEntry[]> testedCP; |
33160 | 71 |
|
36305
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
72 |
DummyClasses(Class<?> klass, Map<ConstantTypes, TestedCPEntry[]> testedCP) { |
33160 | 73 |
this.klass = klass; |
36305
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
74 |
this.constantPoolSS = SharedSecrets.getJavaLangAccess().getConstantPool(klass); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
75 |
this.testedCP = testedCP; |
33160 | 76 |
} |
77 |
||
36305
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
78 |
public int getCPCacheIndex(int cpi) { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
79 |
int cacheLength = WB.getConstantPoolCacheLength(this.klass); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
80 |
int indexTag = WB.getConstantPoolCacheIndexTag(); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
81 |
for (int cpci = indexTag; cpci < cacheLength + indexTag; cpci++) { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
82 |
if (WB.remapInstructionOperandFromCPCache(this.klass, cpci) == cpi) { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
83 |
if (constantPoolSS.getTagAt(cpi).equals(Tag.INVOKEDYNAMIC)) { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
84 |
return WB.encodeConstantPoolIndyIndex(cpci) + indexTag; |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
85 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
86 |
return cpci; |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
87 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
88 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
89 |
return NO_CP_CACHE_PRESENT; |
33160 | 90 |
} |
91 |
} |
|
92 |
||
39421
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
93 |
/** |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
94 |
* Obtain a resolved Java method declared by a given type. |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
95 |
* |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
96 |
* @param type the declaring type |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
97 |
* @param the method's name |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
98 |
* |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
99 |
* Currently, the lookup is based only on the method's name |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
100 |
* but not on the method's signature (i.e., the first method |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
101 |
* with a matching name declared on {@code type} is returned). |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
102 |
*/ |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
103 |
private static ResolvedJavaMethod getMethod(ResolvedJavaType type, String methodName) { |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
104 |
if (methodName.equals("<clinit>")) { |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
105 |
return type.getClassInitializer(); |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
106 |
} |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
107 |
|
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
108 |
if (methodName.equals("<init>")) { |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
109 |
ResolvedJavaMethod[] initializers = type.getDeclaredConstructors(); |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
110 |
if (initializers.length >= 0) { |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
111 |
return initializers[0]; |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
112 |
} else { |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
113 |
throw new IllegalArgumentException(); |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
114 |
} |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
115 |
} |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
116 |
|
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
117 |
for (ResolvedJavaMethod method : type.getDeclaredMethods()) { |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
118 |
if (method.getName().equals(methodName)) { |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
119 |
return method; |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
120 |
} |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
121 |
} |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
122 |
|
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
123 |
throw new IllegalArgumentException(); |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
124 |
} |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
125 |
|
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
126 |
private static ResolvedJavaType getType(Class<?> clazz) { |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
127 |
ResolvedJavaType type = metaAccess.lookupJavaType(clazz); |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
128 |
type.initialize(); |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
129 |
return type; |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
130 |
} |
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
131 |
|
36305
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
132 |
private static final Map<ConstantTypes, TestedCPEntry[]> CP_MAP_FOR_CLASS = new HashMap<>(); |
33160 | 133 |
static { |
36305
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
134 |
CP_MAP_FOR_CLASS.put(CONSTANT_CLASS, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
135 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
136 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementersInterface", null, null), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
137 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementer2", null, null), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
138 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementer2$1", null, null), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
139 |
new TestedCPEntry("java/lang/invoke/MethodHandles$Lookup", null, null), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
140 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
141 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
142 |
CP_MAP_FOR_CLASS.put(CONSTANT_FIELDREF, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
143 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
144 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementer2", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
145 |
"intStaticField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
146 |
"I", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
147 |
new byte[] {(byte) Opcodes.PUTSTATIC, (byte) Opcodes.GETSTATIC}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
148 |
Opcodes.ACC_PRIVATE | Opcodes.ACC_STATIC), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
149 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementer2", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
150 |
"longStaticField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
151 |
"J", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
152 |
new byte[] {(byte) Opcodes.PUTSTATIC, (byte) Opcodes.GETSTATIC}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
153 |
Opcodes.ACC_FINAL | Opcodes.ACC_STATIC), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
154 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementer2", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
155 |
"floatStaticField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
156 |
"F", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
157 |
new byte[] {(byte) Opcodes.PUTSTATIC, (byte) Opcodes.GETSTATIC}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
158 |
Opcodes.ACC_VOLATILE | Opcodes.ACC_STATIC), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
159 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementer2", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
160 |
"doubleStaticField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
161 |
"D", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
162 |
new byte[] {(byte) Opcodes.PUTSTATIC, (byte) Opcodes.GETSTATIC}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
163 |
Opcodes.ACC_STATIC), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
164 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementer2", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
165 |
"stringStaticField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
166 |
"Ljava/lang/String;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
167 |
new byte[] {(byte) Opcodes.PUTSTATIC, (byte) Opcodes.GETSTATIC}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
168 |
Opcodes.ACC_PUBLIC | Opcodes.ACC_STATIC), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
169 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementer2", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
170 |
"objectStaticField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
171 |
"Ljava/lang/Object;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
172 |
new byte[] {(byte) Opcodes.PUTSTATIC, (byte) Opcodes.GETSTATIC}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
173 |
Opcodes.ACC_PROTECTED | Opcodes.ACC_STATIC), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
174 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementer2", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
175 |
"intField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
176 |
"I", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
177 |
new byte[] {(byte) Opcodes.PUTFIELD | (byte) Opcodes.GETFIELD}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
178 |
Opcodes.ACC_PUBLIC), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
179 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementer2", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
180 |
"longField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
181 |
"J", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
182 |
new byte[] {(byte) Opcodes.PUTFIELD | (byte) Opcodes.GETFIELD}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
183 |
Opcodes.ACC_PRIVATE), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
184 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementer2", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
185 |
"floatField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
186 |
"F", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
187 |
new byte[] {(byte) Opcodes.PUTFIELD | (byte) Opcodes.GETFIELD}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
188 |
Opcodes.ACC_PROTECTED), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
189 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementer2", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
190 |
"doubleField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
191 |
"D", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
192 |
new byte[] {(byte) Opcodes.PUTFIELD | (byte) Opcodes.GETFIELD}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
193 |
Opcodes.ACC_TRANSIENT), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
194 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementer2", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
195 |
"objectField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
196 |
"Ljava/lang/Object;", |
39421
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
197 |
new ResolvedJavaMethod[] { getMethod(getType(MultipleImplementer2.class), "<init>"), null }, |
36305
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
198 |
new byte[] {(byte) Opcodes.PUTFIELD | (byte) Opcodes.GETFIELD}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
199 |
Opcodes.ACC_FINAL), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
200 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementer2", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
201 |
"stringField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
202 |
"Ljava/lang/String;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
203 |
new byte[] {(byte) Opcodes.PUTFIELD | (byte) Opcodes.GETFIELD}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
204 |
Opcodes.ACC_VOLATILE), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
205 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementer2", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
206 |
"stringFieldEmpty", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
207 |
"Ljava/lang/String;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
208 |
new byte[] {(byte) Opcodes.PUTFIELD | (byte) Opcodes.GETFIELD}, |
43939 | 209 |
0), |
36305
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
210 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
211 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
212 |
CP_MAP_FOR_CLASS.put(CONSTANT_METHODREF, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
213 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
214 |
new TestedCPEntry("java/lang/System", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
215 |
"getProperties", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
216 |
"()Ljava/util/Properties;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
217 |
new byte[] {(byte) Opcodes.INVOKESTATIC}), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
218 |
new TestedCPEntry("java/util/HashMap", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
219 |
"<init>", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
220 |
"()V", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
221 |
new byte[] {(byte) Opcodes.INVOKESPECIAL}), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
222 |
new TestedCPEntry("java/lang/Object", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
223 |
"toString", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
224 |
"()Ljava/lang/String;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
225 |
new byte[] {(byte) Opcodes.INVOKESPECIAL, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
226 |
(byte) Opcodes.INVOKEVIRTUAL}), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
227 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementer2$1", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
228 |
"<init>", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
229 |
"(Lcompiler/jvmci/common/testcases/MultipleImplementer2;)V", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
230 |
new byte[0]), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
231 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer$1", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
232 |
"run", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
233 |
"()V", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
234 |
new byte[0]), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
235 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
236 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
237 |
CP_MAP_FOR_CLASS.put(CONSTANT_INTERFACEMETHODREF, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
238 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
239 |
new TestedCPEntry("java/util/Map", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
240 |
"put", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
241 |
"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
242 |
new byte[] {(byte) Opcodes.INVOKEINTERFACE}), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
243 |
new TestedCPEntry("java/util/Map", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
244 |
"remove", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
245 |
"(Ljava/lang/Object;)Ljava/lang/Object;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
246 |
new byte[] {(byte) Opcodes.INVOKEINTERFACE}), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
247 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
248 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
249 |
CP_MAP_FOR_CLASS.put(CONSTANT_STRING, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
250 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
251 |
new TestedCPEntry(null, "Message", null), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
252 |
new TestedCPEntry(null, "", null), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
253 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
254 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
255 |
CP_MAP_FOR_CLASS.put(CONSTANT_METHODHANDLE, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
256 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
257 |
new TestedCPEntry("java/lang/invoke/LambdaMetafactory", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
258 |
"metafactory", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
259 |
"(Ljava/lang/invoke/MethodHandles$Lookup;" |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
260 |
+ "Ljava/lang/String;" |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
261 |
+ "Ljava/lang/invoke/MethodType;" |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
262 |
+ "Ljava/lang/invoke/MethodType;" |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
263 |
+ "Ljava/lang/invoke/MethodHandle;" |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
264 |
+ "Ljava/lang/invoke/MethodType;)" |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
265 |
+ "Ljava/lang/invoke/CallSite;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
266 |
null), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
267 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementer2", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
268 |
"testMethod", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
269 |
"()V"), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
270 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
271 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
272 |
CP_MAP_FOR_CLASS.put(CONSTANT_METHODTYPE, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
273 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
274 |
new TestedCPEntry(null, null, "()V"), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
275 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
276 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
277 |
CP_MAP_FOR_CLASS.put(CONSTANT_INVOKEDYNAMIC, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
278 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
279 |
new TestedCPEntry(null, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
280 |
"run", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
281 |
"(Lcompiler/jvmci/common/testcases/MultipleImplementer2;)" |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
282 |
+ "Ljava/lang/Runnable;"), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
283 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
284 |
); |
33160 | 285 |
} |
286 |
||
36305
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
287 |
private static final Map<ConstantTypes, TestedCPEntry[]> CP_MAP_FOR_ABS_CLASS |
33160 | 288 |
= new HashMap<>(); |
289 |
static { |
|
36305
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
290 |
CP_MAP_FOR_ABS_CLASS.put(CONSTANT_CLASS, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
291 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
292 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementersInterface", null, null), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
293 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer", null, null), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
294 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer$1", null, null), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
295 |
new TestedCPEntry("java/lang/invoke/MethodHandles$Lookup", null, null), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
296 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
297 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
298 |
CP_MAP_FOR_ABS_CLASS.put(CONSTANT_FIELDREF, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
299 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
300 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
301 |
"intStaticField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
302 |
"I", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
303 |
new byte[] {(byte) Opcodes.PUTSTATIC, (byte) Opcodes.GETSTATIC}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
304 |
Opcodes.ACC_PRIVATE | Opcodes.ACC_STATIC), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
305 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
306 |
"longStaticField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
307 |
"J", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
308 |
new byte[] {(byte) Opcodes.PUTSTATIC, (byte) Opcodes.GETSTATIC}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
309 |
Opcodes.ACC_FINAL | Opcodes.ACC_STATIC), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
310 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
311 |
"floatStaticField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
312 |
"F", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
313 |
new byte[] {(byte) Opcodes.PUTSTATIC, (byte) Opcodes.GETSTATIC}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
314 |
Opcodes.ACC_VOLATILE | Opcodes.ACC_STATIC), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
315 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
316 |
"doubleStaticField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
317 |
"D", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
318 |
new byte[] {(byte) Opcodes.PUTSTATIC, (byte) Opcodes.GETSTATIC}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
319 |
Opcodes.ACC_STATIC), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
320 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
321 |
"stringStaticField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
322 |
"Ljava/lang/String;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
323 |
new byte[] {(byte) Opcodes.PUTSTATIC, (byte) Opcodes.GETSTATIC}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
324 |
Opcodes.ACC_PUBLIC | Opcodes.ACC_STATIC), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
325 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
326 |
"objectStaticField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
327 |
"Ljava/lang/Object;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
328 |
new byte[] {(byte) Opcodes.PUTSTATIC, (byte) Opcodes.GETSTATIC}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
329 |
Opcodes.ACC_PROTECTED | Opcodes.ACC_STATIC), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
330 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
331 |
"intField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
332 |
"I", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
333 |
new byte[] {(byte) Opcodes.PUTFIELD | (byte) Opcodes.GETFIELD}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
334 |
Opcodes.ACC_PUBLIC), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
335 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
336 |
"longField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
337 |
"J", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
338 |
new byte[] {(byte) Opcodes.PUTFIELD | (byte) Opcodes.GETFIELD}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
339 |
Opcodes.ACC_PRIVATE), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
340 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
341 |
"floatField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
342 |
"F", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
343 |
new byte[] {(byte) Opcodes.PUTFIELD | (byte) Opcodes.GETFIELD}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
344 |
Opcodes.ACC_PROTECTED), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
345 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
346 |
"doubleField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
347 |
"D", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
348 |
new byte[] {(byte) Opcodes.PUTFIELD | (byte) Opcodes.GETFIELD}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
349 |
Opcodes.ACC_TRANSIENT), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
350 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
351 |
"objectField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
352 |
"Ljava/lang/Object;", |
39421
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
353 |
new ResolvedJavaMethod[] { getMethod(getType(MultipleAbstractImplementer.class), "<init>"), null }, |
36305
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
354 |
new byte[] {(byte) Opcodes.PUTFIELD | (byte) Opcodes.GETFIELD}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
355 |
Opcodes.ACC_FINAL), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
356 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
357 |
"stringField", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
358 |
"Ljava/lang/String;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
359 |
new byte[] {(byte) Opcodes.PUTFIELD | (byte) Opcodes.GETFIELD}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
360 |
Opcodes.ACC_VOLATILE), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
361 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
362 |
"stringFieldEmpty", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
363 |
"Ljava/lang/String;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
364 |
new byte[] {(byte) Opcodes.PUTFIELD | (byte) Opcodes.GETFIELD}, |
43939 | 365 |
0), |
36305
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
366 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
367 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
368 |
CP_MAP_FOR_ABS_CLASS.put(CONSTANT_METHODREF, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
369 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
370 |
new TestedCPEntry("java/lang/System", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
371 |
"getProperties", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
372 |
"()Ljava/util/Properties;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
373 |
new byte[] {(byte) Opcodes.INVOKESTATIC}), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
374 |
new TestedCPEntry("java/util/HashMap", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
375 |
"<init>", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
376 |
"()V", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
377 |
new byte[] {(byte) Opcodes.INVOKESPECIAL}), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
378 |
new TestedCPEntry("java/lang/Object", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
379 |
"toString", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
380 |
"()Ljava/lang/String;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
381 |
new byte[] {(byte) Opcodes.INVOKESPECIAL, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
382 |
(byte) Opcodes.INVOKEVIRTUAL}), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
383 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer$1", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
384 |
"<init>", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
385 |
"(Lcompiler/jvmci/common/testcases/MultipleAbstractImplementer;)V", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
386 |
new byte[0]), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
387 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer$1", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
388 |
"run", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
389 |
"()V", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
390 |
new byte[0]), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
391 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
392 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
393 |
CP_MAP_FOR_ABS_CLASS.put(CONSTANT_INTERFACEMETHODREF, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
394 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
395 |
new TestedCPEntry("java/util/Map", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
396 |
"put", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
397 |
"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
398 |
new byte[] {(byte) Opcodes.INVOKEINTERFACE}), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
399 |
new TestedCPEntry("java/util/Map", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
400 |
"remove", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
401 |
"(Ljava/lang/Object;)Ljava/lang/Object;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
402 |
new byte[] {(byte) Opcodes.INVOKEINTERFACE}), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
403 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
404 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
405 |
CP_MAP_FOR_ABS_CLASS.put(CONSTANT_STRING, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
406 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
407 |
new TestedCPEntry(null, "Message", null), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
408 |
new TestedCPEntry(null, "", null), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
409 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
410 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
411 |
CP_MAP_FOR_ABS_CLASS.put(CONSTANT_METHODHANDLE, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
412 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
413 |
new TestedCPEntry("java/lang/invoke/LambdaMetafactory", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
414 |
"metafactory", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
415 |
"(Ljava/lang/invoke/MethodHandles$Lookup;" |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
416 |
+ "Ljava/lang/String;" |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
417 |
+ "Ljava/lang/invoke/MethodType;" |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
418 |
+ "Ljava/lang/invoke/MethodType;" |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
419 |
+ "Ljava/lang/invoke/MethodHandle;" |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
420 |
+ "Ljava/lang/invoke/MethodType;)" |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
421 |
+ "Ljava/lang/invoke/CallSite;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
422 |
null), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
423 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
424 |
"testMethod", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
425 |
"()V"), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
426 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
427 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
428 |
CP_MAP_FOR_ABS_CLASS.put(CONSTANT_METHODTYPE, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
429 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
430 |
new TestedCPEntry(null, null, "()V"), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
431 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
432 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
433 |
CP_MAP_FOR_ABS_CLASS.put(CONSTANT_INVOKEDYNAMIC, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
434 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
435 |
new TestedCPEntry(null, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
436 |
"run", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
437 |
"(Lcompiler/jvmci/common/testcases/MultipleAbstractImplementer;)" |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
438 |
+ "Ljava/lang/Runnable;"), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
439 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
440 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
441 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
442 |
|
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
443 |
private static final Map<ConstantTypes, TestedCPEntry[]> CP_MAP_FOR_INTERFACE |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
444 |
= new HashMap<>(); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
445 |
static { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
446 |
CP_MAP_FOR_INTERFACE.put(CONSTANT_CLASS, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
447 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
448 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementersInterface", null, null), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
449 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementersInterface$1", null, null), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
450 |
new TestedCPEntry("java/lang/Object", null, null), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
451 |
new TestedCPEntry("java/lang/invoke/MethodHandles$Lookup", null, null), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
452 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
453 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
454 |
CP_MAP_FOR_INTERFACE.put(CONSTANT_FIELDREF, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
455 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
456 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementersInterface", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
457 |
"OBJECT_CONSTANT", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
458 |
"Ljava/lang/Object;", |
39421
a9652c919db8
8157181: Compilers accept modification of final fields outside initializer methods
zmajo
parents:
37301
diff
changeset
|
459 |
new ResolvedJavaMethod[] { getMethod(getType(MultipleImplementersInterface.class), "<clinit>"), null }, |
36305
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
460 |
new byte[] {(byte) Opcodes.PUTSTATIC, (byte) Opcodes.GETSTATIC}, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
461 |
Opcodes.ACC_STATIC | Opcodes.ACC_FINAL | Opcodes.ACC_PUBLIC), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
462 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
463 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
464 |
CP_MAP_FOR_INTERFACE.put(CONSTANT_METHODREF, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
465 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
466 |
new TestedCPEntry("java/lang/System", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
467 |
"getProperties", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
468 |
"()Ljava/util/Properties;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
469 |
new byte[] {(byte) Opcodes.INVOKESTATIC}), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
470 |
new TestedCPEntry("java/util/HashMap", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
471 |
"<init>", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
472 |
"()V", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
473 |
new byte[] {(byte) Opcodes.INVOKESPECIAL}), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
474 |
new TestedCPEntry("java/lang/Object", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
475 |
"toString", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
476 |
"()Ljava/lang/String;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
477 |
new byte[] {(byte) Opcodes.INVOKEVIRTUAL}), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
478 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer$1", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
479 |
"<init>", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
480 |
"(Lcompiler/jvmci/common/testcases/MultipleAbstractImplementer;)V", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
481 |
new byte[0]), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
482 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleAbstractImplementer$1", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
483 |
"run", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
484 |
"()V", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
485 |
new byte[0]), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
486 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
487 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
488 |
CP_MAP_FOR_INTERFACE.put(CONSTANT_INTERFACEMETHODREF, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
489 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
490 |
new TestedCPEntry("java/util/Map", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
491 |
"put", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
492 |
"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
493 |
new byte[] {(byte) Opcodes.INVOKEINTERFACE}), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
494 |
new TestedCPEntry("java/util/Map", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
495 |
"remove", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
496 |
"(Ljava/lang/Object;)Ljava/lang/Object;", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
497 |
new byte[] {(byte) Opcodes.INVOKEINTERFACE}), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
498 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
499 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
500 |
CP_MAP_FOR_INTERFACE.put(CONSTANT_STRING, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
501 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
502 |
new TestedCPEntry(null, "Hello", null), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
503 |
new TestedCPEntry(null, "", null), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
504 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
505 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
506 |
CP_MAP_FOR_INTERFACE.put(CONSTANT_METHODHANDLE, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
507 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
508 |
new TestedCPEntry("java/lang/invoke/LambdaMetafactory", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
509 |
"metafactory", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
510 |
"(Ljava/lang/invoke/MethodHandles$Lookup;" |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
511 |
+ "Ljava/lang/String;Ljava/lang/invoke/MethodType;" |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
512 |
+ "Ljava/lang/invoke/MethodType;" |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
513 |
+ "Ljava/lang/invoke/MethodHandle;" |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
514 |
+ "Ljava/lang/invoke/MethodType;)" |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
515 |
+ "Ljava/lang/invoke/CallSite;"), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
516 |
new TestedCPEntry("compiler/jvmci/common/testcases/MultipleImplementersInterface", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
517 |
"defaultMethod", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
518 |
"()V"), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
519 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
520 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
521 |
CP_MAP_FOR_INTERFACE.put(CONSTANT_METHODTYPE, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
522 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
523 |
new TestedCPEntry(null, null, "()V"), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
524 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
525 |
); |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
526 |
CP_MAP_FOR_INTERFACE.put(CONSTANT_INVOKEDYNAMIC, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
527 |
new TestedCPEntry[] { |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
528 |
new TestedCPEntry(null, |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
529 |
"run", |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
530 |
"(Lcompiler/jvmci/common/testcases/MultipleImplementersInterface;)" |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
531 |
+ "Ljava/lang/Runnable;"), |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
532 |
} |
55c7fe59d6d7
8141618: Change JVMCI compilerToVM constant pool tests to support CP cache
kshefov
parents:
33160
diff
changeset
|
533 |
); |
33160 | 534 |
} |
535 |
} |