Home
last modified time | relevance | path

Searched refs:m (Results 1 – 25 of 329) sorted by relevance

12345678910>>...14

/art/test/444-checker-nce/src/
DMain.java26 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/
DMain.java46 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/
DMain.java161 final Main m = new Main(); in main() local
181 set32(m, intOffset, 3); in main()
182 expectEqual32(3, m.i); in main()
184 set64(m, longOffset, 7L); in main()
185 expectEqual64(7L, m.l); in main()
187 setObj(m, objOffset, m); in main()
188 expectEqualObj(m, m.o); in main()
190 add32(m, intOffset, 11); in main()
191 expectEqual32(14, m.i); in main()
193 add64(m, longOffset, 13L); in main()
[all …]
/art/test/563-checker-fakestring/src/
DMain.java46 Method m = c.getMethod("vregAliasing", byte[].class); in main() local
47 String result = (String) m.invoke(null, new Object[] { testData }); in main()
56 Method m = c.getMethod("deoptimizeNewInstance", int[].class, byte[].class); in main() local
58 m.invoke(null, new Object[] { new int[] { 1, 2, 3 }, testData }); in main()
69 Method m = c.getMethod("removeNewInstance", byte[].class); in main() local
70 String result = (String) m.invoke(null, new Object[] { testData }); in main()
75 Method m = c.getMethod("irreducibleLoopAndStringInit1", byte[].class, boolean.class); in main() local
76 String result = (String) m.invoke(null, new Object[] { testData, true }); in main()
78 result = (String) m.invoke(null, new Object[] { testData, false }); in main()
82 Method m = c.getMethod("irreducibleLoopAndStringInit2", byte[].class, boolean.class); in main() local
[all …]
/art/test/910-methods/src/art/
DTest910.java49 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/559-checker-irreducible-loop/src/
DMain.java26 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/
DMain.java28 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/test/967-default-ame/src/
DMain.java19 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/
DMain.java26 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/965-default-verify/src/
DMain.java19 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/
Dgenerate_operator_out.py55 m = _ENUM_START_RE.search(raw_line)
56 if m:
60 if m.group(3) is not None:
64 is_enum_class = m.group(1) is not None
65 enum_name = m.group(2)
75 m = re.compile(r'^namespace (\S+) \{').search(raw_line)
76 if m:
77 namespaces.append(m.group(1))
79 m = re.compile(r'^\}\s+// namespace').search(raw_line)
80 if m:
[all …]
/art/test/457-regs/
Dregs_jni.cc36 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/
Dget_vreg_jni.cc38 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/runtime/interpreter/
Dshadow_frame.cc24 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/
DMain.java24 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/
DMain.java19 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/libartpalette/apex/
Dpalette.cc114 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/576-polymorphic-inlining/src/
DMain.java40 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/
Dget_live_vreg_jni.cc36 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()
45 CHECK(GetVReg(m, 2, kReferenceVReg, &value)); in VisitFrame()
49 CodeItemDataAccessor(m->DexInstructionData()).RegistersSize(); in VisitFrame()
51 CheckOptimizedOutRegLiveness(m, dex_register_of_first_parameter, kIntVReg, true, 1); in VisitFrame()
54 CheckOptimizedOutRegLiveness(m, 0, kReferenceVReg); in VisitFrame()
60 void CheckOptimizedOutRegLiveness(ArtMethod* m, in CheckOptimizedOutRegLiveness() argument
69 CHECK_EQ(GetVReg(m, dex_reg, vreg_kind, &value), false); in CheckOptimizedOutRegLiveness()
[all …]
/art/test/639-checker-code-sinking/src/
DMain.java127 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/
DMain.java40 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/
DTest993.java158 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/
DMain.java50 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()
/art/test/DexToDexDecompiler/
DMain.java23 Main m = new Main(); in main() local
24 Object o = m; in main()
26 m.foo(m.a); in main()
29 m.foo(((Main)o).a); in main()
/art/test/989-method-trace-throw/src/art/
DTest989.java63 private static String getInfo(Object m, boolean exception, Object result) { in getInfo() argument
64 String out = m.toString() + " returned "; in getInfo()
74 public void methodEntry(Object m); in methodEntry() argument
75 public void methodExited(Object m, boolean exception, Object result); in methodExited() argument
81 public void methodEntry(Object m) { in methodEntry() argument
82 if (testMethods.contains(m)) { in methodEntry()
83 System.out.println("Normal: Entering " + m); in methodEntry()
86 public void methodExited(Object m, boolean exception, Object result) { in methodExited() argument
87 if (testMethods.contains(m)) { in methodExited()
88 System.out.println("Normal: Leaving " + getInfo(m, exception, result)); in methodExited()
[all …]

12345678910>>...14