Mercurial > hg > truffle
comparison test/compiler/whitebox/EnqueueMethodForCompilationTest.java @ 14203:f9a4b59ae350
8028587: New tests development for intrisics for basic operators - add, neg, inc, dec, sub, mul
Reviewed-by: twisti
Contributed-by: anton.ivanov@oracle.com
author | iignatyev |
---|---|
date | Tue, 31 Dec 2013 19:26:57 +0400 |
parents | 303826f477c6 |
children | 4ca6dc0799b6 |
comparison
equal
deleted
inserted
replaced
14202:3e98456aab94 | 14203:f9a4b59ae350 |
---|---|
25 * @test EnqueueMethodForCompilationTest | 25 * @test EnqueueMethodForCompilationTest |
26 * @bug 8006683 8007288 8022832 | 26 * @bug 8006683 8007288 8022832 |
27 * @library /testlibrary /testlibrary/whitebox | 27 * @library /testlibrary /testlibrary/whitebox |
28 * @build EnqueueMethodForCompilationTest | 28 * @build EnqueueMethodForCompilationTest |
29 * @run main ClassFileInstaller sun.hotspot.WhiteBox | 29 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
30 * @run main/othervm/timeout=600 -Xbootclasspath/a:. -Xmixed -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:CompileCommand=compileonly,TestCase$Helper::* EnqueueMethodForCompilationTest | 30 * @run main/othervm/timeout=600 -Xbootclasspath/a:. -Xmixed -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:CompileCommand=compileonly,SimpleTestCase$Helper::* EnqueueMethodForCompilationTest |
31 * @summary testing of WB::enqueueMethodForCompilation() | 31 * @summary testing of WB::enqueueMethodForCompilation() |
32 * @author igor.ignatyev@oracle.com | 32 * @author igor.ignatyev@oracle.com |
33 */ | 33 */ |
34 public class EnqueueMethodForCompilationTest extends CompilerWhiteBoxTest { | 34 public class EnqueueMethodForCompilationTest extends CompilerWhiteBoxTest { |
35 | 35 |
36 public static void main(String[] args) throws Exception { | 36 public static void main(String[] args) throws Exception { |
37 for (TestCase test : TestCase.values()) { | 37 CompilerWhiteBoxTest.main(EnqueueMethodForCompilationTest::new, args); |
38 new EnqueueMethodForCompilationTest(test).runTest(); | |
39 } | |
40 } | 38 } |
41 | 39 |
42 public EnqueueMethodForCompilationTest(TestCase testCase) { | 40 private EnqueueMethodForCompilationTest(TestCase testCase) { |
43 super(testCase); | 41 super(testCase); |
44 // to prevent inlining of #method | 42 // to prevent inlining of #method |
45 WHITE_BOX.testSetDontInlineMethod(method, true); | 43 WHITE_BOX.testSetDontInlineMethod(method, true); |
46 } | 44 } |
47 | 45 |