Home | History | Annotate | Download | only in src

Lines Matching defs:TestClass

27 class TestClass {
29 sTestClassObj = new TestClass(-1, -2);
31 TestClass() {
33 TestClass(int i, int j) {
40 TestClass next;
43 static TestClass sTestClassObj;
46 class SubTestClass extends TestClass {
89 /// CHECK-START: int Main.test1(TestClass, TestClass) load_store_elimination (before)
95 /// CHECK-START: int Main.test1(TestClass, TestClass) load_store_elimination (after)
102 static int test1(TestClass obj1, TestClass obj2) {
108 /// CHECK-START: int Main.test2(TestClass) load_store_elimination (before)
113 /// CHECK-START: int Main.test2(TestClass) load_store_elimination (after)
120 static int test2(TestClass obj) {
126 /// CHECK-START: int Main.test3(TestClass) load_store_elimination (before)
139 /// CHECK-START: int Main.test3(TestClass) load_store_elimination (after)
151 static int test3(TestClass obj) {
154 new TestClass();
155 TestClass obj1 = TestClass.sTestClassObj;
156 TestClass obj2 = new TestClass(); // Cannot alias with obj or obj1 which pre-exist.
167 /// CHECK-START: int Main.test4(TestClass, boolean) load_store_elimination (before)
173 /// CHECK-START: int Main.test4(TestClass, boolean) load_store_elimination (after)
181 static int test4(TestClass obj, boolean b) {
190 /// CHECK-START: int Main.test5(TestClass, boolean) load_store_elimination (before)
196 /// CHECK-START: int Main.test5(TestClass, boolean) load_store_elimination (after)
203 static int test5(TestClass obj, boolean b) {
212 /// CHECK-START: int Main.test6(TestClass, TestClass, boolean) load_store_elimination (before)
219 /// CHECK-START: int Main.test6(TestClass, TestClass, boolean) load_store_elimination (after)
228 static int test6(TestClass obj1, TestClass obj2, boolean b) {
237 /// CHECK-START: int Main.test7(TestClass) load_store_elimination (before)
241 /// CHECK-START: int Main.test7(TestClass) load_store_elimination (after)
246 static int test7(TestClass obj) {
267 TestClass obj = new TestClass();
273 /// CHECK-START: int Main.test9(TestClass) load_store_elimination (before)
279 /// CHECK-START: int Main.test9(TestClass) load_store_elimination (after)
286 static int test9(TestClass obj) {
287 TestClass obj2 = new TestClass();
294 /// CHECK-START: int Main.test10(TestClass) load_store_elimination (before)
300 /// CHECK-START: int Main.test10(TestClass) load_store_elimination (after)
308 static int test10(TestClass obj) {
309 TestClass.si += obj.i;
313 /// CHECK-START: int Main.test11(TestClass) load_store_elimination (before)
317 /// CHECK-START: int Main.test11(TestClass) load_store_elimination (after)
324 static int test11(TestClass obj) {
333 /// CHECK-START: int Main.test12(TestClass, TestClass) load_store_elimination (before)
338 /// CHECK-START: int Main.test12(TestClass, TestClass) load_store_elimination (after)
344 static int test12(TestClass obj1, TestClass obj2) {
354 /// CHECK-START: int Main.test13(TestClass, TestClass2) load_store_elimination (before)
360 /// CHECK-START: int Main.test13(TestClass, TestClass2) load_store_elimination (after)
367 static int test13(TestClass obj1, TestClass2 obj2) {
373 /// CHECK-START: int Main.test14(TestClass, SubTestClass) load_store_elimination (before)
378 /// CHECK-START: int Main.test14(TestClass, SubTestClass) load_store_elimination (after)
384 static int test14(TestClass obj1, SubTestClass obj2) {
404 TestClass.si = 1;
406 return TestClass.si;
423 TestClass obj = new TestClass(1, 2);
441 TestClass obj = new TestClass();
446 /// CHECK-START: int Main.test18(TestClass) load_store_elimination (before)
450 /// CHECK-START: int Main.test18(TestClass) load_store_elimination (after)
455 static int test18(TestClass obj) {
474 /// CHECK-START: TestClass Main.test20() load_store_elimination (before)
478 /// CHECK-START: TestClass Main.test20() load_store_elimination (after)
484 static TestClass test20() {
485 TestClass obj = new TestClass();
490 /// CHECK-START: void Main.test21(TestClass) load_store_elimination (before)
498 /// CHECK-START: void Main.test21(TestClass) load_store_elimination (after)
507 static void test21(TestClass obj0) {
508 TestClass obj = new TestClass();
545 TestClass obj1 = new TestClass();
548 TestClass obj2 = new TestClass();
552 TestClass obj3 = new TestClass();
580 TestClass obj = new TestClass();
680 TestClass obj = new TestClass();
681 TestClass obj2 = null;
709 assertIntEquals(test1(new TestClass(), new TestClass()), 3);
710 assertIntEquals(test2(new TestClass()), 1);
711 TestClass obj1 = new TestClass();
712 TestClass obj2 = new TestClass();
715 assertIntEquals(test4(new TestClass(), true), 1);
716 assertIntEquals(test4(new TestClass(), false), 1);
717 assertIntEquals(test5(new TestClass(), true), 1);
718 assertIntEquals(test5(new TestClass(), false), 2);
719 assertIntEquals(test6(new TestClass(), new TestClass(), true), 4);
720 assertIntEquals(test6(new TestClass(), new TestClass(), false), 2);
721 assertIntEquals(test7(new TestClass()), 1);
723 obj1 = new TestClass();
724 obj2 = new TestClass();
726 assertIntEquals(test9(new TestClass()), 1);
727 assertIntEquals(test10(new TestClass(3, 4)), 3);
728 assertIntEquals(TestClass.si, 3);
729 assertIntEquals(test11(new TestClass()), 10);
730 assertIntEquals(test12(new TestClass(), new TestClass()), 10);
731 assertIntEquals(test13(new TestClass(), new TestClass2()), 3);
737 assertIntEquals(test18(new TestClass()), 1);
742 test21(new TestClass());