21 * questions.
22 */
23
24 /**
25 * @test
26 * @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9") & os.arch != "aarch64"
27 * @library /
28 * @modules jdk.vm.ci/jdk.vm.ci.hotspot
29 * jdk.vm.ci/jdk.vm.ci.meta
30 * jdk.vm.ci/jdk.vm.ci.code
31 * jdk.vm.ci/jdk.vm.ci.code.site
32 * jdk.vm.ci/jdk.vm.ci.runtime
33 * jdk.vm.ci/jdk.vm.ci.amd64
34 * jdk.vm.ci/jdk.vm.ci.sparc
35 * @compile CodeInstallationTest.java DebugInfoTest.java TestAssembler.java TestHotSpotVMConfig.java amd64/AMD64TestAssembler.java sparc/SPARCTestAssembler.java
36 * @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI jdk.vm.ci.code.test.SimpleDebugInfoTest
37 */
38
39 package jdk.vm.ci.code.test;
40
41 import org.junit.Assume;
42 import org.junit.Test;
43
44 import jdk.vm.ci.code.Register;
45 import jdk.vm.ci.hotspot.HotSpotConstant;
46 import jdk.vm.ci.meta.JavaConstant;
47 import jdk.vm.ci.meta.JavaKind;
48 import jdk.vm.ci.meta.ResolvedJavaType;
49 import jdk.vm.ci.meta.Value;
50
51 public class SimpleDebugInfoTest extends DebugInfoTest {
52
53 public static int intOnStack() {
54 return 42;
55 }
56
57 private void testIntOnStack(DebugInfoCompiler compiler) {
58 test(compiler, getMethod("intOnStack"), 2, JavaKind.Int);
59 }
60
61 public static int intInLocal() {
62 int local = 42;
63 return local;
64 }
65
66 public void testIntInLocal(DebugInfoCompiler compiler) {
67 test(compiler, getMethod("intInLocal"), 3, JavaKind.Int);
68 }
69
|
21 * questions.
22 */
23
24 /**
25 * @test
26 * @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9") & os.arch != "aarch64"
27 * @library /
28 * @modules jdk.vm.ci/jdk.vm.ci.hotspot
29 * jdk.vm.ci/jdk.vm.ci.meta
30 * jdk.vm.ci/jdk.vm.ci.code
31 * jdk.vm.ci/jdk.vm.ci.code.site
32 * jdk.vm.ci/jdk.vm.ci.runtime
33 * jdk.vm.ci/jdk.vm.ci.amd64
34 * jdk.vm.ci/jdk.vm.ci.sparc
35 * @compile CodeInstallationTest.java DebugInfoTest.java TestAssembler.java TestHotSpotVMConfig.java amd64/AMD64TestAssembler.java sparc/SPARCTestAssembler.java
36 * @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI jdk.vm.ci.code.test.SimpleDebugInfoTest
37 */
38
39 package jdk.vm.ci.code.test;
40
41 import jdk.vm.ci.code.Register;
42 import jdk.vm.ci.hotspot.HotSpotConstant;
43 import jdk.vm.ci.meta.JavaConstant;
44 import jdk.vm.ci.meta.JavaKind;
45 import jdk.vm.ci.meta.ResolvedJavaType;
46 import jdk.vm.ci.meta.Value;
47 import org.junit.Assume;
48 import org.junit.Test;
49
50 public class SimpleDebugInfoTest extends DebugInfoTest {
51
52 public static int intOnStack() {
53 return 42;
54 }
55
56 private void testIntOnStack(DebugInfoCompiler compiler) {
57 test(compiler, getMethod("intOnStack"), 2, JavaKind.Int);
58 }
59
60 public static int intInLocal() {
61 int local = 42;
62 return local;
63 }
64
65 public void testIntInLocal(DebugInfoCompiler compiler) {
66 test(compiler, getMethod("intInLocal"), 3, JavaKind.Int);
67 }
68
|