23
24 /*
25 * @test
26 * @bug 8138708
27 * @requires vm.jvmci
28 * @library /test/lib /
29 * @library ../common/patches
30 * @modules java.base/jdk.internal.misc
31 * java.base/jdk.internal.reflect
32 * java.base/jdk.internal.org.objectweb.asm
33 * java.base/jdk.internal.org.objectweb.asm.tree
34 * jdk.internal.vm.ci/jdk.vm.ci.hotspot
35 * jdk.internal.vm.ci/jdk.vm.ci.runtime
36 * jdk.internal.vm.ci/jdk.vm.ci.meta
37 *
38 * @build jdk.internal.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper sun.hotspot.WhiteBox
39 * @run driver ClassFileInstaller sun.hotspot.WhiteBox
40 * sun.hotspot.WhiteBox$WhiteBoxPermission
41 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
42 * -XX:+WhiteBoxAPI -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI
43 * compiler.jvmci.compilerToVM.LookupNameAndTypeRefIndexInPoolTest
44 */
45
46 package compiler.jvmci.compilerToVM;
47
48 import compiler.jvmci.compilerToVM.ConstantPoolTestCase.ConstantTypes;
49 import compiler.jvmci.compilerToVM.ConstantPoolTestCase.TestedCPEntry;
50 import compiler.jvmci.compilerToVM.ConstantPoolTestCase.Validator;
51 import compiler.jvmci.compilerToVM.ConstantPoolTestsHelper.DummyClasses;
52 import jdk.test.lib.Asserts;
53 import jdk.vm.ci.hotspot.CompilerToVMHelper;
54 import jdk.vm.ci.meta.ConstantPool;
55
56 import java.util.HashMap;
57 import java.util.Map;
58
59 import static compiler.jvmci.compilerToVM.ConstantPoolTestCase.ConstantTypes.CONSTANT_FIELDREF;
60 import static compiler.jvmci.compilerToVM.ConstantPoolTestCase.ConstantTypes.CONSTANT_INTERFACEMETHODREF;
61 import static compiler.jvmci.compilerToVM.ConstantPoolTestCase.ConstantTypes.CONSTANT_INVOKEDYNAMIC;
62 import static compiler.jvmci.compilerToVM.ConstantPoolTestCase.ConstantTypes.CONSTANT_METHODREF;
|
23
24 /*
25 * @test
26 * @bug 8138708
27 * @requires vm.jvmci
28 * @library /test/lib /
29 * @library ../common/patches
30 * @modules java.base/jdk.internal.misc
31 * java.base/jdk.internal.reflect
32 * java.base/jdk.internal.org.objectweb.asm
33 * java.base/jdk.internal.org.objectweb.asm.tree
34 * jdk.internal.vm.ci/jdk.vm.ci.hotspot
35 * jdk.internal.vm.ci/jdk.vm.ci.runtime
36 * jdk.internal.vm.ci/jdk.vm.ci.meta
37 *
38 * @build jdk.internal.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper sun.hotspot.WhiteBox
39 * @run driver ClassFileInstaller sun.hotspot.WhiteBox
40 * sun.hotspot.WhiteBox$WhiteBoxPermission
41 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
42 * -XX:+WhiteBoxAPI -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI
43 * -Djvmci.Compiler=null
44 * compiler.jvmci.compilerToVM.LookupNameAndTypeRefIndexInPoolTest
45 */
46
47 package compiler.jvmci.compilerToVM;
48
49 import compiler.jvmci.compilerToVM.ConstantPoolTestCase.ConstantTypes;
50 import compiler.jvmci.compilerToVM.ConstantPoolTestCase.TestedCPEntry;
51 import compiler.jvmci.compilerToVM.ConstantPoolTestCase.Validator;
52 import compiler.jvmci.compilerToVM.ConstantPoolTestsHelper.DummyClasses;
53 import jdk.test.lib.Asserts;
54 import jdk.vm.ci.hotspot.CompilerToVMHelper;
55 import jdk.vm.ci.meta.ConstantPool;
56
57 import java.util.HashMap;
58 import java.util.Map;
59
60 import static compiler.jvmci.compilerToVM.ConstantPoolTestCase.ConstantTypes.CONSTANT_FIELDREF;
61 import static compiler.jvmci.compilerToVM.ConstantPoolTestCase.ConstantTypes.CONSTANT_INTERFACEMETHODREF;
62 import static compiler.jvmci.compilerToVM.ConstantPoolTestCase.ConstantTypes.CONSTANT_INVOKEDYNAMIC;
63 import static compiler.jvmci.compilerToVM.ConstantPoolTestCase.ConstantTypes.CONSTANT_METHODREF;
|