/art/test/636-arm64-veneer-pool/src/ |
D | Main.java | 17 class C0 { public static void m(Context c, Binder b) { /* Defeat inlining. */ if (Main.doThrow) { t… in m() method in C0 18 class C1 { public static void m(Context c, Binder b) { /* Defeat inlining. */ if (Main.doThrow) { t… in m() method in C1 19 class C2 { public static void m(Context c, Binder b) { /* Defeat inlining. */ if (Main.doThrow) { t… in m() method in C2 20 class C3 { public static void m(Context c, Binder b) { /* Defeat inlining. */ if (Main.doThrow) { t… in m() method in C3 21 class C4 { public static void m(Context c, Binder b) { /* Defeat inlining. */ if (Main.doThrow) { t… in m() method in C4 23 …public static void m(Context c, Binder b) { /* Defeat inlining. */ if (Main.doThrow) { throw new E… in m() method in C5 26 class C6 { public static void m(Context c, Binder b) { /* Defeat inlining. */ if (Main.doThrow) { t… in m() method in C6 27 class C7 { public static void m(Context c, Binder b) { /* Defeat inlining. */ if (Main.doThrow) { t… in m() method in C7 28 class C8 { public static void m(Context c, Binder b) { /* Defeat inlining. */ if (Main.doThrow) { t… in m() method in C8 29 class C9 { public static void m(Context c, Binder b) { /* Defeat inlining. */ if (Main.doThrow) { t… in m() method in C9 [all …]
|
/art/test/444-checker-nce/src/ |
D | Main.java | 26 public Main keepTest(Main m) { in keepTest() argument 27 return m.g(); in keepTest() 45 Main m = new Main(); in newInstanceRemoveTest() local 46 return m.g(); in newInstanceRemoveTest() 68 Main m = null; in ifRemoveTest() local 70 m = new Main(); in ifRemoveTest() 72 m = new Main(1); in ifRemoveTest() 74 return m.g(); in ifRemoveTest() 85 Main m = null; in ifKeepTest() local 87 m = new Main(1); in ifKeepTest() [all …]
|
/art/test/685-shifts/src/ |
D | Main.java | 46 Method m = c.getMethod("shlZero", long.class); in main() local 47 assertEquals(smallLong, (Long)m.invoke(null, smallLong)); in main() 48 assertEquals(longLong, (Long)m.invoke(null, longLong)); in main() 50 m = c.getMethod("shrZero", long.class); in main() 51 assertEquals(smallLong, (Long)m.invoke(null, smallLong)); in main() 52 assertEquals(longLong, (Long)m.invoke(null, longLong)); in main() 54 m = c.getMethod("ushrZero", long.class); in main() 55 assertEquals(smallLong, (Long)m.invoke(null, smallLong)); in main() 56 assertEquals(longLong, (Long)m.invoke(null, longLong)); in main() 58 m = c.getMethod("shlOne", long.class); in main() [all …]
|
/art/test/004-checker-UnsafeTest18/src/ |
D | Main.java | 152 final Main m = new Main(); in main() local 172 set32(m, intOffset, 3); in main() 173 expectEqual32(3, m.i); in main() 175 set64(m, longOffset, 7L); in main() 176 expectEqual64(7L, m.l); in main() 178 setObj(m, objOffset, m); in main() 179 expectEqualObj(m, m.o); in main() 181 add32(m, intOffset, 11); in main() 182 expectEqual32(14, m.i); in main() 184 add64(m, longOffset, 13L); in main() [all …]
|
/art/test/563-checker-fakestring/src/ |
D | Main.java | 47 Method m = c.getMethod("vregAliasing", byte[].class); in main() local 48 String result = (String) m.invoke(null, new Object[] { testData }); in main() 59 Method m = c.getMethod("deoptimizeNewInstance", int[].class, byte[].class); in main() local 61 m.invoke(null, new Object[] { new int[] { 1, 2, 3 }, testData }); in main() 72 Method m = c.getMethod("removeNewInstance", byte[].class); in main() local 73 String result = (String) m.invoke(null, new Object[] { testData }); in main() 78 Method m = c.getMethod("irreducibleLoopAndStringInit1", byte[].class, boolean.class); in main() local 79 String result = (String) m.invoke(null, new Object[] { testData, true }); in main() 81 result = (String) m.invoke(null, new Object[] { testData, false }); in main() 85 Method m = c.getMethod("irreducibleLoopAndStringInit2", byte[].class, boolean.class); in main() local [all …]
|
/art/test/910-methods/src/art/ |
D | Test910.java | 49 Method m = base.getDeclaredMethod(methodName, types); in testMethod() local 50 testMethod(m, base, true); in testMethod() 53 private static void testMethod(Method m, Class<?> base, boolean printName) { in testMethod() argument 54 String[] result = getMethodName(m); in testMethod() 55 if (!result[0].equals(m.getName())) { in testMethod() 56 throw new RuntimeException("Name not equal: " + m.getName() + " vs " + result[0]); in testMethod() 62 Class<?> declClass = getMethodDeclaringClass(m); in testMethod() 68 int modifiers = getMethodModifiers(m); in testMethod() 69 if (modifiers != m.getModifiers()) { in testMethod() 70 throw new RuntimeException("Modifiers not equal: " + m.getModifiers() + " vs " + modifiers); in testMethod() [all …]
|
/art/test/1976-hello-structural-static-methods/src/art/ |
D | Test1976.java | 86 public static void printRun(long id, Method m) { in printRun() argument 88 System.out.println("Running method " + id + " " + m + " using JNI."); in printRun() 90 System.out.println("Running method " + m + " using JNI."); in printRun() 96 private Method m; field in Test1976.MethodHandleWrapper 97 public MethodHandleWrapper(MethodHandle mh, Method m) { in MethodHandleWrapper() argument 98 this.m = m; in MethodHandleWrapper() 105 return m; in getMethod() 118 for (Method m : methods) { in getMethodHandles() 119 if (!Modifier.isStatic(m.getModifiers())) { in getMethodHandles() 122 res.add(new MethodHandleWrapper(l.unreflect(m), m)); in getMethodHandles() [all …]
|
/art/test/559-checker-irreducible-loop/src/ |
D | Main.java | 26 Method m = c.getMethod("simpleLoop", int.class); in main() local 28 System.out.println(m.invoke(null, arguments)); in main() 32 Method m = c.getMethod("lse", int.class, Main.class); in main() local 34 System.out.println(m.invoke(null, arguments)); in main() 38 Method m = c.getMethod("dce", int.class); in main() local 40 System.out.println(m.invoke(null, arguments)); in main() 44 Method m = c.getMethod("liveness", int.class); in main() local 46 System.out.println(m.invoke(null, arguments)); in main() 50 Method m = c.getMethod("gvn"); in main() local 52 System.out.println(m.invoke(null, arguments)); in main() [all …]
|
/art/test/457-regs/src/ |
D | Main.java | 28 Method m = c.getMethod("mergeOk", boolean.class, byte.class); in main() local 29 m.invoke(null, new Boolean(true), new Byte((byte)2)); in main() 31 m = c.getMethod("mergeNotOk", boolean.class, float.class); in main() 32 m.invoke(null, new Boolean(true), new Float(4.0f)); in main() 34 m = c.getMethod("mergeReferences", Main.class); in main() 35 m.invoke(null, new Main()); in main() 37 m = c.getMethod("phiEquivalent"); in main() 38 m.invoke(null); in main() 40 m = c.getMethod("phiAllEquivalents", Main.class); in main() 41 m.invoke(null, new Main()); in main()
|
/art/libartpalette/apex/ |
D | palette.cc | 114 PaletteGetVersionMethod m = PaletteLoader::Instance().GetPaletteGetVersionMethod(); in PaletteGetVersion() local 115 return m(version); in PaletteGetVersion() 119 PaletteSchedSetPriorityMethod m = PaletteLoader::Instance().GetPaletteSchedSetPriorityMethod(); in PaletteSchedSetPriority() local 120 return m(tid, java_priority); in PaletteSchedSetPriority() 124 PaletteSchedGetPriorityMethod m = PaletteLoader::Instance().GetPaletteSchedGetPriorityMethod(); in PaletteSchedGetPriority() local 125 return m(tid, java_priority); in PaletteSchedGetPriority() 129 PaletteWriteCrashThreadStacksMethod m = in PaletteWriteCrashThreadStacks() local 131 return m(stack, stack_len); in PaletteWriteCrashThreadStacks() 135 PaletteTraceEnabledMethod m = PaletteLoader::Instance().GetPaletteTraceEnabledMethod(); in PaletteTraceEnabled() local 136 return m(enabled); in PaletteTraceEnabled() [all …]
|
/art/test/967-default-ame/src/ |
D | Main.java | 19 Main m = new Main(); in main() local 21 callMain(m); in main() 23 callIface(m); in main() 25 callIface2(m); in main() 27 public static void callMain(Main m) { in callMain() argument 29 System.out.println(m.charge()); in callMain() 32 System.out.println(m.sayHi()); in callMain() 40 System.out.println(m.charge()); in callMain() 43 public static void callIface(Iface m) { in callIface() argument 45 System.out.println(m.charge()); in callIface() [all …]
|
/art/test/966-default-conflict/src/ |
D | Main.java | 26 Main m = new Main(); in main() local 28 callMain(m); in main() 30 callIface(m); in main() 32 callIface2(m); in main() 34 public static void callMain(Main m) { in callMain() argument 36 System.out.println(m.charge()); in callMain() 39 System.out.println(m.sayHi()); in callMain() 47 System.out.println(m.charge()); in callMain() 50 public static void callIface(Iface m) { in callIface() argument 52 System.out.println(m.charge()); in callIface() [all …]
|
/art/test/457-regs/ |
D | regs_jni.cc | 36 ArtMethod* m = GetMethod(); in VisitFrame() local 37 std::string m_name(m->GetName()); in VisitFrame() 42 CHECK(GetVReg(m, 0, kIntVReg, &value)); in VisitFrame() 45 CHECK(GetVReg(m, 1, kIntVReg, &value)); in VisitFrame() 48 CHECK(GetVReg(m, 2, kIntVReg, &value)); in VisitFrame() 51 CHECK(GetVReg(m, 3, kIntVReg, &value)); in VisitFrame() 54 CHECK(GetVReg(m, 4, kIntVReg, &value)); in VisitFrame() 60 CHECK(GetVReg(m, 0, kIntVReg, &value)); in VisitFrame() 63 CHECK(GetVReg(m, 1, kIntVReg, &value)); in VisitFrame() 66 bool success = GetVReg(m, 2, kIntVReg, &value); in VisitFrame() [all …]
|
/art/test/454-get-vreg/ |
D | get_vreg_jni.cc | 38 ArtMethod* m = GetMethod(); in VisitFrame() local 39 std::string m_name(m->GetName()); in VisitFrame() 45 CHECK(GetVReg(m, 0, kIntVReg, &value)); in VisitFrame() 48 bool success = GetVReg(m, 1, kIntVReg, &value); in VisitFrame() 53 success = GetVReg(m, 2, kIntVReg, &value); in VisitFrame() 58 CHECK(GetVReg(m, 3, kReferenceVReg, &value)); in VisitFrame() 61 CHECK(GetVReg(m, 4, kIntVReg, &value)); in VisitFrame() 64 CHECK(GetVReg(m, 5, kFloatVReg, &value)); in VisitFrame() 68 CHECK(GetVReg(m, 6, kIntVReg, &value)); in VisitFrame() 71 CHECK(GetVReg(m, 7, kIntVReg, &value)); in VisitFrame() [all …]
|
/art/test/965-default-verify/src/ |
D | Main.java | 19 Main m = new Main(); in main() local 21 callMain(m); in main() 23 callIface(m); in main() 26 public static void callMain(Main m) { in callMain() argument 28 System.out.println(m.sayHi()); in callMain() 31 m.verificationSoftFail(); in callMain() 40 System.out.println(m.sayHi()); in callMain() 44 public static void callIface(Iface m) { in callIface() argument 46 System.out.println(m.sayHi()); in callIface() 49 m.verificationSoftFail(); in callIface() [all …]
|
/art/tools/ |
D | generate_operator_out.py | 60 m = _ENUM_START_RE.search(raw_line) 61 if m: 68 m = re.search(r'^namespace (\S+) \{', raw_line) 69 if m: 70 namespaces.append(m.group(1)) 72 m = re.search(r'^\}\s+// namespace', raw_line) 73 if m: 78 m = re.search( 80 if m: 81 enclosing_classes.append(m.group(1)) [all …]
|
/art/runtime/interpreter/ |
D | shadow_frame.cc | 24 ArtMethod* m = GetMethod(); in GetThisObject() local 25 if (m->IsStatic()) { in GetThisObject() 27 } else if (m->IsNative()) { in GetThisObject() 30 CHECK(m->GetCodeItem() != nullptr) << ArtMethod::PrettyMethod(m); in GetThisObject() 31 CodeItemDataAccessor accessor(m->DexInstructionData()); in GetThisObject() 38 ArtMethod* m = GetMethod(); in GetThisObject() local 39 if (m->IsStatic()) { in GetThisObject()
|
/art/test/503-dead-instructions/src/ |
D | Main.java | 24 Method m = c.getMethod("method1"); in main() local 26 m.invoke(null, arguments1); in main() 29 m = c.getMethod("method2", long.class); in main() 30 m.invoke(null, arguments2); in main() 33 m = c.getMethod("method3"); in main() 34 m.invoke(null, arguments3); in main() 37 m = c.getMethod("method4"); in main() 38 m.invoke(null, arguments4); in main()
|
/art/test/650-checker-inline-access-thunks/src/ |
D | Main.java | 19 Main m = new Main(); in main() local 21 n.$noinline$setPrivateIntField(m, 42); in main() 22 System.out.println(n.$noinline$getPrivateIntField(m)); in main() 40 public void $noinline$setPrivateIntField(Main m, int value) { in $noinline$setPrivateIntField() argument 41 m.privateIntField = value; in $noinline$setPrivateIntField() 56 public int $noinline$getPrivateIntField(Main m) { in $noinline$getPrivateIntField() argument 57 return m.privateIntField; in $noinline$getPrivateIntField()
|
/art/test/576-polymorphic-inlining/src/ |
D | Main.java | 40 public static void $noinline$testVoid(Main m) { in $noinline$testVoid() argument 42 m.willInlineVoid(); in $noinline$testVoid() 43 m.willOnlyInlineForMainVoid(); in $noinline$testVoid() 46 public static void $noinline$testWithReturnValue(Main m) { in $noinline$testWithReturnValue() argument 48 assertIdentical(m.getClass(), m.willInlineWithReturnValue()); in $noinline$testWithReturnValue() 49 assertIdentical(m.getClass(), m.willOnlyInlineForMainWithReturnValue()); in $noinline$testWithReturnValue() 52 public static void $noinline$testWithBackEdge(Main m) { in $noinline$testWithBackEdge() argument 55 m.willInlineVoid(); in $noinline$testWithBackEdge() 58 m.willOnlyInlineForMainVoid(); in $noinline$testWithBackEdge()
|
/art/test/466-get-live-vreg/ |
D | get_live_vreg_jni.cc | 36 ArtMethod* m = GetMethod(); in VisitFrame() local 37 std::string m_name(m->GetName()); in VisitFrame() 41 CHECK_EQ(CodeItemDataAccessor(m->DexInstructionData()).RegistersSize(), 3u); in VisitFrame() 42 CheckOptimizedOutRegLiveness(m, 1, kIntVReg, true, 42); in VisitFrame() 43 CheckOptimizedOutRegLiveness(m, 2, kReferenceVReg); in VisitFrame() 47 CodeItemDataAccessor(m->DexInstructionData()).RegistersSize(); in VisitFrame() 49 CheckOptimizedOutRegLiveness(m, dex_register_of_first_parameter, kIntVReg, true, 1); in VisitFrame() 52 CheckOptimizedOutRegLiveness(m, 0, kReferenceVReg); in VisitFrame() 58 void CheckOptimizedOutRegLiveness(ArtMethod* m, in CheckOptimizedOutRegLiveness() argument 67 CHECK_EQ(GetVReg(m, dex_reg, vreg_kind, &value), false); in CheckOptimizedOutRegLiveness() [all …]
|
/art/test/639-checker-code-sinking/src/ |
D | Main.java | 127 Main m = new Main(); in testFieldStores() local 128 m.intField = 42; in testFieldStores() 130 throw new Error(m.toString()); in testFieldStores() 200 Main m = new Main(); in testOnlyStoreUses() local 202 o[0] = m; in testOnlyStoreUses() 205 throw new Error(m.toString()); in testOnlyStoreUses() 211 Main m = new Main(); in testNoUse() local 217 throw new Error(m.toString()); in testNoUse() 277 Main m = new Main(); in testVolatileStore() local 278 m.volatileField = 42; in testVolatileStore() [all …]
|
/art/test/439-npe/src/ |
D | Main.java | 40 public static void $opt$noinline$setObjectField(Main m) { in $opt$noinline$setObjectField() argument 42 m.objectField = null; in $opt$noinline$setObjectField() 45 public static void $opt$noinline$setIntField(Main m) { in $opt$noinline$setIntField() argument 47 m.intField = 0; in $opt$noinline$setIntField() 50 public static void $opt$noinline$setFloatField(Main m) { in $opt$noinline$setFloatField() argument 52 m.floatField = 0; in $opt$noinline$setFloatField() 55 public static void $opt$noinline$setLongField(Main m) { in $opt$noinline$setLongField() argument 57 m.longField = 0; in $opt$noinline$setLongField() 60 public static void $opt$noinline$setDoubleField(Main m) { in $opt$noinline$setDoubleField() argument 62 m.doubleField = 0; in $opt$noinline$setDoubleField() [all …]
|
/art/test/993-breakpoints/src/art/ |
D | Test993.java | 158 Method m; field in Test993.InvokeReflect 160 public InvokeReflect(Method m, Object this_arg) { in InvokeReflect() argument 161 this.m = m; in InvokeReflect() 167 System.out.println("\t\tReflective invoking: " + m + " args: [this: " + this_arg + "]"); in runThrow() 168 m.invoke(this_arg); in runThrow() 173 Method m; field in Test993.InvokeNative 175 public InvokeNative(Method m, Object this_arg) { in InvokeNative() argument 176 this.m = m; in InvokeNative() 182 System.out.println("\t\tNative invoking: " + m + " args: [this: " + this_arg + "]"); in run() 183 invokeNative(m, m.getDeclaringClass(), this_arg); in run() [all …]
|
/art/test/656-loop-deopt/src/ |
D | Main.java | 50 public static void $noinline$intUpdate(Main m) { in $noinline$intUpdate() argument 57 if (m.doCheck()) { in $noinline$intUpdate() 68 public static void $noinline$objectUpdate(Main m) { in $noinline$objectUpdate() argument 76 if (m.doCheck()) { in $noinline$objectUpdate() 81 o = m; in $noinline$objectUpdate() 86 public static void $noinline$loopIncrement(Main m) { in $noinline$loopIncrement() argument 93 if (m.doCheck()) { in $noinline$loopIncrement() 104 public static Object $noinline$objectReturned(Main m) { in $noinline$objectReturned() argument 115 if (m.doCheck()) { in $noinline$objectReturned() 120 o = m; in $noinline$objectReturned()
|