Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 437) sorted by relevance

12345678910>>...18

/art/test/491-current-method/src/
DMain.java23 public static void $noinline$foo(int a, int b, int c) { in $noinline$foo() argument
26 c = c / 42; in $noinline$foo()
31 "".charAt(c); in $noinline$foo()
34 c = c / 42; in $noinline$foo()
35 "".charAt(c); in $noinline$foo()
36 c = c / 42; in $noinline$foo()
37 "".charAt(c); in $noinline$foo()
38 c = c / 42; in $noinline$foo()
39 "".charAt(c); in $noinline$foo()
40 c = c / 42; in $noinline$foo()
[all …]
/art/test/957-methodhandle-transforms/
Dexpected-stdout.txt19 a: a, b:b, c: c
20 a: a, b:b, c: c
21 a: a, b:b, c: c
22 a: a, b:b, c: c
23 a: a, b:b, c: c
24 a: a, b:b, c: c
25 a: a, b:b, c: c
31 a: a, b:b, c: c
32 a: a, b:b, c: c
33 a: a, b:b, c: c
[all …]
/art/test/055-enum-performance/src/
DMain.java78 Class<SamePackagePublicEnum> c = SamePackagePublicEnum.class; in preTest() local
80 System.out.println(Enum.valueOf(c, "FOUR")); in preTest()
81 System.out.println(Enum.valueOf(c, "ONE")); in preTest()
82 System.out.println(Enum.valueOf(c, "FOURTEEN")); in preTest()
83 System.out.println(Enum.valueOf(c, "NINE")); in preTest()
84 System.out.println(Enum.valueOf(c, "FIVE")); in preTest()
85 System.out.println(Enum.valueOf(c, "TWELVE")); in preTest()
87 System.out.println(Enum.valueOf(c, "ZERO").getClass().getName()); in preTest()
133 Class<SamePackagePublicEnum> c = SamePackagePublicEnum.class; in test1() local
135 Enum.valueOf(c, "ZERO"); in test1()
[all …]
/art/test/411-checker-hdiv-hrem-const/src/
DRemTest.java293 int c = 0; in $noinline$UnsignedIntRem01() local
295 c = v % 6; in $noinline$UnsignedIntRem01()
297 c = $noinline$Negate(v); // This is to prevent from using Select. in $noinline$UnsignedIntRem01()
299 return c; in $noinline$UnsignedIntRem01()
315 int c = 0; in $noinline$UnsignedIntRem02() local
317 c = v % 6; in $noinline$UnsignedIntRem02()
319 c = $noinline$Negate(v); // This is to prevent from using Select. in $noinline$UnsignedIntRem02()
321 return c; in $noinline$UnsignedIntRem02()
337 int c = 0; in $noinline$UnsignedIntRem03() local
339 c = v % 6; in $noinline$UnsignedIntRem03()
[all …]
DDivTest.java285 int c = 0; in $noinline$UnsignedIntDiv01() local
287 c = v / 6; in $noinline$UnsignedIntDiv01()
289 c = $noinline$Negate(v); // This is to prevent from using Select. in $noinline$UnsignedIntDiv01()
291 return c; in $noinline$UnsignedIntDiv01()
305 int c = 0; in $noinline$UnsignedIntDiv02() local
307 c = v / 6; in $noinline$UnsignedIntDiv02()
309 c = $noinline$Negate(v); // This is to prevent from using Select. in $noinline$UnsignedIntDiv02()
311 return c; in $noinline$UnsignedIntDiv02()
325 int c = 0; in $noinline$UnsignedIntDiv03() local
327 c = v / 6; in $noinline$UnsignedIntDiv03()
[all …]
/art/test/529-checker-unresolved/src/
DMain.java27 static public void callInvokeUnresolvedVirtual(UnresolvedClass c) { in callInvokeUnresolvedVirtual() argument
28 c.virtualMethod(); in callInvokeUnresolvedVirtual()
33 static public void callInvokeUnresolvedInterface(UnresolvedInterface c) { in callInvokeUnresolvedInterface() argument
34 c.interfaceMethod(); in callInvokeUnresolvedInterface()
37 static public void callInvokeUnresolvedSuper(Main c) { in callInvokeUnresolvedSuper() argument
38 c.superMethod(); in callInvokeUnresolvedSuper()
108 static public void callUnresolvedInstanceFieldAccess(UnresolvedClass c) { in callUnresolvedInstanceFieldAccess() argument
110 c.instanceByte = (byte)1; in callUnresolvedInstanceFieldAccess()
111 c.instanceChar = '1'; in callUnresolvedInstanceFieldAccess()
112 c.instanceInt = 123456789; in callUnresolvedInstanceFieldAccess()
[all …]
/art/test/624-checker-stringops/src/
DMain.java42 for (char c = 'A'; c <= 'Z'; c++) { in liveIndexOf()
43 k += ABC.indexOf(c); in liveIndexOf()
45 for (char c = 'A'; c <= 'Z'; c++) { in liveIndexOf()
46 k += ABC.indexOf(c, 4); in liveIndexOf()
48 for (char c = 'A'; c <= 'Z'; c++) { in liveIndexOf()
51 for (char c = 'A'; c <= 'Z'; c++) { in liveIndexOf()
73 for (char c = 'A'; c <= 'Z'; c++) { in deadIndexOf()
74 int d = ABC.indexOf(c); in deadIndexOf()
76 for (char c = 'A'; c <= 'Z'; c++) { in deadIndexOf()
77 int d = ABC.indexOf(c, 4); in deadIndexOf()
[all …]
/art/benchmark/string-indexof/src/
DStringIndexOfBenchmark.java21 final char c = '0'; in timeIndexOf0() local
24 $noinline$indexOf(s, c); in timeIndexOf0()
29 final char c = '1'; in timeIndexOf1() local
32 $noinline$indexOf(s, c); in timeIndexOf1()
37 final char c = '2'; in timeIndexOf2() local
40 $noinline$indexOf(s, c); in timeIndexOf2()
45 final char c = '3'; in timeIndexOf3() local
48 $noinline$indexOf(s, c); in timeIndexOf3()
53 final char c = '4'; in timeIndexOf4() local
56 $noinline$indexOf(s, c); in timeIndexOf4()
[all …]
/art/test/636-arm64-veneer-pool/src/
DMain.java17 class C0 { public static void m(Context c, Binder b) { /* Defeat inlining. */ if (Main.doThrow) { t… in m() argument
18 class C1 { public static void m(Context c, Binder b) { /* Defeat inlining. */ if (Main.doThrow) { t… in m() argument
19 class C2 { public static void m(Context c, Binder b) { /* Defeat inlining. */ if (Main.doThrow) { t… in m() argument
20 class C3 { public static void m(Context c, Binder b) { /* Defeat inlining. */ if (Main.doThrow) { t… in m() argument
21 class C4 { public static void m(Context c, Binder b) { /* Defeat inlining. */ if (Main.doThrow) { t… in m() argument
23 …public static void m(Context c, Binder b) { /* Defeat inlining. */ if (Main.doThrow) { throw new E… in m() argument
24 …public static void mImpl(Context c, Binder b) { /* Defeat inlining. */ if (Main.doThrow) { throw n… in mImpl() argument
26 class C6 { public static void m(Context c, Binder b) { /* Defeat inlining. */ if (Main.doThrow) { t… in m() argument
27 class C7 { public static void m(Context c, Binder b) { /* Defeat inlining. */ if (Main.doThrow) { t… in m() argument
28 class C8 { public static void m(Context c, Binder b) { /* Defeat inlining. */ if (Main.doThrow) { t… in m() argument
[all …]
/art/test/173-missing-field-type/src-art/
DMain.java23 Class<?> c = Class.forName("BadField"); in main() local
26 c.getMethod("storeStaticNull").invoke(null); in main()
27 c.getMethod("storeInstanceNull").invoke(null); in main()
28 c.getMethod("storeStatic", Object.class).invoke(null, new Object[]{ null }); in main()
29 c.getMethod("storeInstance", c, Object.class).invoke( in main()
30 null, new Object[]{ c.newInstance(), null }); in main()
33 testStoreObject(c.getMethod("storeStaticObject")); in main()
34 testStoreObject(c.getMethod("storeInstanceObject")); in main()
35 testStoreObject(c.getMethod("storeStatic", Object.class), new Object()); in main()
37 c.getMethod("storeInstance", c, Object.class), c.newInstance(), new Object()); in main()
[all …]
/art/test/704-multiply-accumulate/src/
DMain.java41 int c = 10; in test_int() local
42 int d = c; in test_int()
46 tmp = i*c; in test_int()
52 result = c*c + (result - c); in test_int()
69 result = c*c; in test_int()
76 result = c*c; in test_int()
77 ia[c] = d; // array out of bound. in test_int()
84 result = a*c + obj.ia; in test_int()
90 result = a*c; in test_int()
102 long c = 10; in test_long() local
[all …]
/art/test/StaticLeafMethods/
DStaticLeafMethods.java29 static int sum(int a, int b, int c) { in sum() argument
30 return a + b + c; in sum()
32 static int sum(int a, int b, int c, int d) { in sum() argument
33 return a + b + c + d; in sum()
35 static int sum(int a, int b, int c, int d, int e) { in sum() argument
36 return a + b + c + d + e; in sum()
44 static double sum(double a, double b, double c) { in sum() argument
45 return a + b + c; in sum()
47 static double sum(double a, double b, double c, double d) { in sum() argument
48 return a + b + c + d; in sum()
[all …]
/art/test/442-checker-constant-folding/src/
DMain.java234 int a, b, c; in IntAddition1() local
237 c = a + b; in IntAddition1()
238 return c; in IntAddition1()
257 int a, b, c; in IntAddition2() local
262 c = 6; in IntAddition2()
263 b += c; in IntAddition2()
264 c = a + b; in IntAddition2()
265 return c; in IntAddition2()
282 long a, b, c; in LongAddition() local
285 c = a + b; in LongAddition()
[all …]
/art/test/NonStaticLeafMethods/
DNonStaticLeafMethods.java31 int sum(int a, int b, int c) { in sum() argument
32 return a + b + c; in sum()
34 int sum(int a, int b, int c, int d) { in sum() argument
35 return a + b + c + d; in sum()
37 int sum(int a, int b, int c, int d, int e) { in sum() argument
38 return a + b + c + d + e; in sum()
46 double sum(double a, double b, double c) { in sum() argument
47 return a + b + c; in sum()
49 double sum(double a, double b, double c, double d) { in sum() argument
50 return a + b + c + d; in sum()
[all …]
/art/test/105-invoke/src/
DMain.java27 int virI_III(int a, int b, int c) { in virI_III() argument
28 return a + b + c + 432; in virI_III()
31 int virI_IIII(int a, int b, int c, int d) { in virI_IIII() argument
32 return a + b + c + d + 919; in virI_IIII()
35 int virI_IIIII(int a, int b, int c, int d, int e) { in virI_IIIII() argument
36 return a + b + c + d + e + 1010; in virI_IIIII()
39 int virI_IIIIII(int a, int b, int c, int d, int e, int f) { in virI_IIIIII() argument
40 return a + b + c + d + e + f + 2020; in virI_IIIIII()
51 static int statI_III(int a, int b, int c) { in statI_III() argument
52 return a + b + c + 432; in statI_III()
[all …]
/art/test/012-math/src/
DMain.java103 int c = 0; in math_012_numerator() local
104 c /= b; in math_012_numerator()
105 System.out.println(c); in math_012_numerator()
106 c %= b; in math_012_numerator()
107 System.out.println(c); in math_012_numerator()
108 c = a / b; in math_012_numerator()
109 System.out.println(c); in math_012_numerator()
110 c = a % b; in math_012_numerator()
111 System.out.println(c); in math_012_numerator()
112 c = c / d; in math_012_numerator()
[all …]
/art/test/405-optimizing-long-allocator/src/
DMain.java63 long c = 0; in $opt$TestThreeLive() local
67 c += 2; in $opt$TestThreeLive()
69 return a - b - c; in $opt$TestThreeLive()
75 long c = 0; in $opt$TestFourLive() local
80 c += 2; in $opt$TestFourLive()
89 long c = 0; in $opt$TestMultipleLive() local
97 c++; in $opt$TestMultipleLive()
122 public static long $opt$testSpillInIf(long a, long b, long c) { in $opt$testSpillInIf() argument
127 c++; in $opt$testSpillInIf()
132 return a - b - c - d - e; in $opt$testSpillInIf()
[all …]
/art/test/2266-checker-remove-empty-ifs/src/
DMain.java43 public static void andBoolean3(boolean a, boolean b, boolean c) { in andBoolean3() argument
44 if (a && b && c) { in andBoolean3()
59 public static void andBoolean4(boolean a, boolean b, boolean c, boolean d) { in andBoolean4() argument
60 if (a && b && c && d) { in andBoolean4()
88 public static void orBoolean3(boolean a, boolean b, boolean c) { in orBoolean3() argument
89 if (a || b || c) { in orBoolean3()
104 public static void orBoolean4(boolean a, boolean b, boolean c, boolean d) { in orBoolean4() argument
105 if (a || b || c || d) { in orBoolean4()
121 public static void andInt(int a, int b, int c, int d) { in andInt() argument
122 if (a <= b && c <= d && a >= 20 && b <= 78 && c >= 50 && d <= 70) { in andInt()
/art/test/404-optimizing-allocator/src/
DMain.java57 int c = 0; in $opt$reg$TestThreeLive() local
61 c += 2; in $opt$reg$TestThreeLive()
63 return a - b - c; in $opt$reg$TestThreeLive()
69 int c = 0; in $opt$reg$TestFourLive() local
74 c += 2; in $opt$reg$TestFourLive()
83 int c = 0; in $opt$reg$TestMultipleLive() local
91 c++; in $opt$reg$TestMultipleLive()
116 public static int $opt$reg$testSpillInIf(int a, int b, int c) { in $opt$reg$testSpillInIf() argument
121 c++; in $opt$reg$testSpillInIf()
126 return a - b - c - d - e; in $opt$reg$testSpillInIf()
[all …]
/art/test/042-new-instance/src/
DMain.java36 Class<?> c = Class.forName("LocalClass"); in testClassNewInstance() local
37 Object obj = c.newInstance(); in testClassNewInstance()
46 Class<?> c = Class.forName("otherpackage.PackageAccess"); in testClassNewInstance() local
47 Object obj = c.newInstance(); in testClassNewInstance()
74 Class<?> c = Class.forName("LocalClass"); in testConstructorNewInstance() local
75 Constructor<?> cons = c.getConstructor(); in testConstructorNewInstance()
86 Class<?> c = Class.forName("LocalClass2"); in testConstructorNewInstance() local
87 Constructor<?> cons = c.getConstructor(); in testConstructorNewInstance()
97 Class<?> c = Class.forName("Main$InnerClass"); in testConstructorNewInstance() local
98 Constructor<?> cons = c.getDeclaredConstructor(Main.class); in testConstructorNewInstance()
[all …]
/art/libdexfile/dex/
Ddescriptors_names.cc33 const char* c = descriptor; in AppendPrettyDescriptor() local
35 while (*c == '[') { in AppendPrettyDescriptor()
37 c++; in AppendPrettyDescriptor()
42 if (*c == 'L') { in AppendPrettyDescriptor()
44 c++; // Skip the 'L'. in AppendPrettyDescriptor()
48 switch (*c) { in AppendPrettyDescriptor()
50 c = "byte"; in AppendPrettyDescriptor()
53 c = "char"; in AppendPrettyDescriptor()
56 c = "double"; in AppendPrettyDescriptor()
59 c = "float"; in AppendPrettyDescriptor()
[all …]
/art/test/686-get-this/src/
DMain.java23 Class<?> c = Class.forName("Test"); in main() local
24 ensureJitCompiled(c, "testEmpty"); in main()
25 ensureJitCompiled(c, "testPrimitive"); in main()
27 Method m = c.getMethod("testEmpty"); in main()
28 m.invoke(c.newInstance()); in main()
33 m = c.getMethod("testPrimitive"); in main()
34 int a = (Integer)m.invoke(c.newInstance()); in main()
/art/test/559-checker-irreducible-loop/src/
DMain.java21 Class<?> c = Class.forName("IrreducibleLoop"); in main() local
23 Method m = c.getMethod("simpleLoop", int.class); in main()
29 Method m = c.getMethod("lse", int.class, Main.class); in main()
35 Method m = c.getMethod("dce", int.class); in main()
41 Method m = c.getMethod("liveness", int.class, int.class); in main()
47 Method m = c.getMethod("gvn"); in main()
53 Method m = c.getMethod("licm1", int.class); in main()
59 Method m = c.getMethod("licm2", int.class); in main()
65 Method m = c.getMethod("testDoNotInlineIrreducible", int.class); in main()
71 Method m = c.getMethod("testDoNotInlineIrreducible", int.class); in main()
/art/test/912-classes/src-art/art/
DTest912.java128 private static void testClassType(Class<?> c) throws Exception { in testClassType() argument
129 boolean isInterface = isInterface(c); in testClassType()
130 boolean isArray = isArrayClass(c); in testClassType()
131 boolean isModifiable = isModifiableClass(c); in testClassType()
132 System.out.println(c.getName() + " interface=" + isInterface + " array=" + isArray + in testClassType()
136 private static void testClassFields(Class<?> c) throws Exception { in testClassFields() argument
137 System.out.println(Arrays.toString(getClassFields(c))); in testClassFields()
140 private static void testClassMethods(Class<?> c) throws Exception { in testClassMethods() argument
141 System.out.println(Arrays.toString(getClassMethods(c))); in testClassMethods()
144 private static void testClassStatus(Class<?> c) { in testClassStatus() argument
[all …]
/art/test/620-checker-bce-intrinsics/src/
DMain.java75 static int threeArrays(int[] a, int[] b, int[] c) { in threeArrays() argument
77 for (int i = 0; i < Math.min(Math.min(a.length, b.length), c.length); i++) { in threeArrays()
78 x += a[i] + b[i] + c[i]; in threeArrays()
92 static int fourArrays(int[] a, int[] b, int[] c, int[] d) { in fourArrays() argument
94 for (int i = 0; i < Math.min(Math.min(a.length, b.length), Math.min(c.length, d.length)); i++) { in fourArrays()
95 x += a[i] + b[i] + c[i] + d[i]; in fourArrays()
154 static int threeArraysWithCleanup(int[] a, int[] b, int[] c) { in threeArraysWithCleanup() argument
156 int n = Math.min(a.length, Math.min(b.length, c.length)); in threeArraysWithCleanup()
158 x += a[i] + b[i] + c[i]; in threeArraysWithCleanup()
222 int[] c = { 1, 2, 3 }; in main() local
[all …]

12345678910>>...18