/art/test/004-ReferenceMap/ |
D | stack_walk_refmap_jni.cc | 35 (((reg) < m->GetCodeItem()->registers_size_) && \ 54 mirror::ArtMethod* m = GetMethod(); in VisitFrame() local 55 if (!m || m->IsNative() || m->IsRuntimeMethod() || IsShadowFrame()) { in VisitFrame() 58 LOG(INFO) << "At " << PrettyMethod(m, false); in VisitFrame() 60 NativePcOffsetToReferenceMap map(m->GetNativeGcMap(sizeof(void*))); in VisitFrame() 62 if (m->IsCalleeSaveMethod()) { in VisitFrame() 63 LOG(WARNING) << "no PC for " << PrettyMethod(m); in VisitFrame() 68 std::string m_name(m->GetName()); in VisitFrame() 74 ref_bitmap = map.FindBitMap(m->NativePcOffset(m->ToNativePc(0x03U))); in VisitFrame() 78 ref_bitmap = map.FindBitMap(m->NativePcOffset(m->ToNativePc(0x06U))); in VisitFrame() [all …]
|
/art/tools/ |
D | generate-operator-out.py | 54 m = _ENUM_START_RE.search(raw_line) 55 if m: 59 if m.group(3) is not None: 62 is_enum_class = m.group(1) is not None 63 enum_name = m.group(2) 73 m = re.compile(r'^namespace (\S+) \{').search(raw_line) 74 if m: 75 namespaces.append(m.group(1)) 77 m = re.compile(r'^\}\s+// namespace').search(raw_line) 78 if m: [all …]
|
/art/runtime/ |
D | native_bridge_art_interface.cc | 31 mirror::ArtMethod* m = soa.DecodeMethod(mid); in GetMethodShorty() local 32 MethodHelper mh(scope.NewHandle(m)); in GetMethodShorty() 45 mirror::ArtMethod* m = c->GetDirectMethod(i); in GetNativeMethodCount() local 46 if (m->IsNative()) { in GetNativeMethodCount() 51 mirror::ArtMethod* m = c->GetVirtualMethod(i); in GetNativeMethodCount() local 52 if (m->IsNative()) { in GetNativeMethodCount() 69 mirror::ArtMethod* m = c->GetDirectMethod(i); in GetNativeMethods() local 70 if (m->IsNative()) { in GetNativeMethods() 72 methods[count].name = m->GetName(); in GetNativeMethods() 73 methods[count].signature = m->GetShorty(); in GetNativeMethods() [all …]
|
D | stack.cc | 37 mirror::ArtMethod* m = GetMethod(); in GetThisObject() local 38 if (m->IsStatic()) { in GetThisObject() 40 } else if (m->IsNative()) { in GetThisObject() 43 const DexFile::CodeItem* code_item = m->GetCodeItem(); in GetThisObject() 44 CHECK(code_item != NULL) << PrettyMethod(m); in GetThisObject() 51 mirror::ArtMethod* m = GetMethod(); in GetThisObject() local 52 if (m->IsStatic()) { in GetThisObject() 119 mirror::ArtMethod* m = GetMethod(); in GetThisObject() local 120 if (m->IsStatic()) { in GetThisObject() 122 } else if (m->IsNative()) { in GetThisObject() [all …]
|
D | nth_caller_visitor.h | 34 mirror::ArtMethod* m = GetMethod(); in VisitFrame() local 36 if (m == NULL || m->IsRuntimeMethod()) { in VisitFrame() 45 caller = m; in VisitFrame()
|
D | debugger.cc | 90 void SetMethod(mirror::ArtMethod* m) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in SetMethod() argument 92 method_ = soa.EncodeMethod(m); in SetMethod() 383 static bool IsBreakpoint(const mirror::ArtMethod* m, uint32_t dex_pc) in IsBreakpoint() argument 388 if (gBreakpoints[i].DexPc() == dex_pc && gBreakpoints[i].Method() == m) { in IsBreakpoint() 1437 static JDWP::MethodId ToMethodId(const mirror::ArtMethod* m) in ToMethodId() argument 1440 return static_cast<JDWP::MethodId>(reinterpret_cast<uintptr_t>(m)); in ToMethodId() 1466 mirror::ArtMethod* m = FromMethodId(expected_location.method_id); in MatchLocation() local 1467 return m == event_location.method; in MatchLocation() 1494 void Dbg::SetJdwpLocation(JDWP::JdwpLocation* location, mirror::ArtMethod* m, uint32_t dex_pc) in SetJdwpLocation() argument 1496 if (m == nullptr) { in SetJdwpLocation() [all …]
|
D | reflection.cc | 351 static void CheckMethodArguments(mirror::ArtMethod* m, uint32_t* args) in CheckMethodArguments() argument 353 const DexFile::TypeList* params = m->GetParameterTypeList(); in CheckMethodArguments() 360 if (!m->IsStatic()) { in CheckMethodArguments() 366 Handle<mirror::ArtMethod> h_m(hs.NewHandle(m)); in CheckMethodArguments() 530 mirror::ArtMethod* m = mirror::ArtMethod::FromReflectedMethod(soa, javaMethod); in InvokeMethod() local 532 mirror::Class* declaring_class = m->GetDeclaringClass(); in InvokeMethod() 543 if (!m->IsStatic()) { in InvokeMethod() 551 m = receiver->GetClass()->FindVirtualMethodForVirtualOrInterface(m); in InvokeMethod() 557 const DexFile::TypeList* classes = m->GetParameterTypeList(); in InvokeMethod() 568 if (!accessible && !VerifyAccess(soa.Self(), receiver, declaring_class, m->GetAccessFlags())) { in InvokeMethod() [all …]
|
D | utils_test.cc | 219 mirror::ArtMethod* m; in TEST_F() local 221 m = c->FindVirtualMethod("charAt", "(I)C"); in TEST_F() 222 ASSERT_TRUE(m != NULL); in TEST_F() 223 EXPECT_EQ("Java_java_lang_String_charAt", JniShortName(m)); in TEST_F() 224 EXPECT_EQ("Java_java_lang_String_charAt__I", JniLongName(m)); in TEST_F() 226 m = c->FindVirtualMethod("indexOf", "(Ljava/lang/String;I)I"); in TEST_F() 227 ASSERT_TRUE(m != NULL); in TEST_F() 228 EXPECT_EQ("Java_java_lang_String_indexOf", JniShortName(m)); in TEST_F() 229 EXPECT_EQ("Java_java_lang_String_indexOf__Ljava_lang_String_2I", JniLongName(m)); in TEST_F() 231 m = c->FindDirectMethod("copyValueOf", "([CII)Ljava/lang/String;"); in TEST_F() [all …]
|
D | monitor.cc | 657 Monitor* m = MonitorPool::CreateMonitor(self, owner, obj, hash_code); in Inflate() local 658 DCHECK(m != nullptr); in Inflate() 659 if (m->Install(self)) { in Inflate() 662 << " created monitor " << m << " for object " << obj; in Inflate() 665 << " created monitor " << m << " for object " << obj; in Inflate() 667 Runtime::Current()->GetMonitorList()->Add(m); in Inflate() 670 MonitorPool::ReleaseMonitor(self, m); in Inflate() 992 mirror::ArtMethod* m = stack_visitor->GetMethod(); in VisitLocks() local 993 CHECK(m != NULL); in VisitLocks() 997 if (m->IsNative()) { in VisitLocks() [all …]
|
D | quick_exception_handler.cc | 201 bool HandleDeoptimization(mirror::ArtMethod* m) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in HandleDeoptimization() argument 202 const DexFile::CodeItem* code_item = m->GetCodeItem(); in HandleDeoptimization() 207 mirror::Class* declaring_class = m->GetDeclaringClass(); in HandleDeoptimization() 210 Handle<mirror::ArtMethod> h_method(hs.NewHandle(m)); in HandleDeoptimization() 212 &m->GetClassDef(), code_item, m->GetDexMethodIndex(), m, in HandleDeoptimization() 213 m->GetAccessFlags(), true, true, true); in HandleDeoptimization()
|
D | thread.cc | 889 mirror::ArtMethod* m = GetMethod(); in VisitFrame() local 890 if (m->IsRuntimeMethod()) { in VisitFrame() 894 mirror::Class* c = m->GetDeclaringClass(); in VisitFrame() 899 line_number = dex_file.GetLineNumFromPC(m, GetDexPc(false)); in VisitFrame() 901 if (line_number == last_line_number && last_method == m) { in VisitFrame() 909 last_method = m; in VisitFrame() 912 os << " at " << PrettyMethod(m, false); in VisitFrame() 913 if (m->IsNative()) { in VisitFrame() 916 const char* source_file(m->GetDeclaringClassSourceFile()); in VisitFrame() 1421 mirror::ArtMethod* m = GetMethod(); in VisitFrame() local [all …]
|
D | instrumentation.cc | 211 mirror::ArtMethod* m = GetMethod(); in InstrumentationInstallStack() local 212 if (m == NULL) { in InstrumentationInstallStack() 220 bool interpreter_frame = !m->IsPortableCompiled(); in InstrumentationInstallStack() 221 InstrumentationStackFrame instrumentation_frame(GetThisObject(), m, 0, GetFrameId(), in InstrumentationInstallStack() 230 if (m->IsRuntimeMethod()) { in InstrumentationInstallStack() 265 CHECK_EQ(m, frame.method_) << "Expected " << PrettyMethod(m) in InstrumentationInstallStack() 274 InstrumentationStackFrame instrumentation_frame(GetThisObject(), m, return_pc, GetFrameId(), in InstrumentationInstallStack() 292 dex_pcs_.push_back(m->ToDexPc(last_return_pc_)); in InstrumentationInstallStack() 354 mirror::ArtMethod* m = GetMethod(); in InstrumentationRestoreStack() local 358 << " Method=" << PrettyMethod(m); in InstrumentationRestoreStack() [all …]
|
/art/test/088-monitor-verification/src/ |
D | Main.java | 26 Main m = new Main(); in main() local 28 m.recursiveSync(0); in main() 30 m.nestedMayThrow(false); in main() 32 m.nestedMayThrow(true); in main() 37 m.constantLock(); in main() 40 m.notExcessiveNesting(); in main() 47 m.notNested(); in main() 53 m.twoPath(obj1, obj2, 0); in main() 56 m.triplet(obj1, obj2, 0); in main()
|
/art/test/401-optimizing-compiler/src/ |
D | Main.java | 66 Main m = new Main(); in main() local 67 if (m.$opt$TestThisParameter(m) != m) { in main() 71 if (m.$opt$TestOtherParameter(new Main()) == m) { in main() 75 if (m.$opt$TestReturnNewObject(m) == m) { in main() 103 Main m = null; in invokePrivate() local 104 m.privateMethod(); in invokePrivate() 204 public static void $opt$SetFieldInOldObject(Main m) { in $opt$SetFieldInOldObject() argument 205 m.o = new Main(); in $opt$SetFieldInOldObject()
|
/art/test/004-StackWalk/ |
D | stack_walk_jni.cc | 32 (((reg) < m->GetCodeItem()->registers_size_) && \ 51 mirror::ArtMethod* m = GetMethod(); in VisitFrame() local 52 CHECK(m != NULL); in VisitFrame() 53 LOG(INFO) << "At " << PrettyMethod(m, false); in VisitFrame() 55 if (m->IsCalleeSaveMethod() || m->IsNative()) { in VisitFrame() 56 LOG(WARNING) << "no PC for " << PrettyMethod(m); in VisitFrame() 62 NativePcOffsetToReferenceMap map(m->GetNativeGcMap(sizeof(void*))); in VisitFrame() 65 StringPiece m_name(m->GetName()); in VisitFrame()
|
/art/test/100-reflect2/src/ |
D | Main.java | 177 Method m; in testMethodReflection() local 179 m = Main.class.getDeclaredMethod("IV", int.class); in testMethodReflection() 180 System.out.println(Arrays.toString(m.getParameterTypes())); in testMethodReflection() 181 show(m.invoke(null, 4444)); in testMethodReflection() 182 System.out.println(Arrays.toString(m.getParameterTypes())); in testMethodReflection() 184 m = Main.class.getDeclaredMethod("IIV", int.class, int.class); in testMethodReflection() 185 System.out.println(Arrays.toString(m.getParameterTypes())); in testMethodReflection() 186 show(m.invoke(null, 1111, 2222)); in testMethodReflection() 188 m = Main.class.getDeclaredMethod("III", int.class, int.class); in testMethodReflection() 189 System.out.println(Arrays.toString(m.getParameterTypes())); in testMethodReflection() [all …]
|
/art/runtime/gc/allocator/ |
D | rosalloc-inl.h | 31 void* m; in Alloc() local 33 m = AllocFromRun(self, size, bytes_allocated); in Alloc() 35 m = AllocFromRunThreadUnsafe(self, size, bytes_allocated); in Alloc() 38 if (kCheckZeroMemory && m != nullptr) { in Alloc() 39 byte* bytes = reinterpret_cast<byte*>(m); in Alloc() 44 return m; in Alloc()
|
D | dlmalloc.cc | 22 #define MORECORE(x) art_heap_morecore(m, x) 23 extern "C" void* art_heap_morecore(void* m, intptr_t increment); 29 #define CORRUPTION_ERROR_ACTION(m) art_heap_corruption(__FUNCTION__) argument 30 #define USAGE_ERROR_ACTION(m, p) art_heap_usage_error(__FUNCTION__, p) argument
|
/art/compiler/dex/quick/ |
D | local_optimizations.cc | 24 #define LOAD_STORE_CHECK_REG_DEP(mask, check) (mask.Intersects(*check->u.m.def_mask)) 27 #define CHECK_REG_DEP(use, def, check) (def.Intersects(*check->u.m.use_mask)) || \ 28 (use.Union(def).Intersects(*check->u.m.def_mask)) 177 ResourceMask this_mem_mask = kEncodeMem.Intersection(this_lir->u.m.use_mask->Union( in ApplyLoadStoreElimination() 178 *this_lir->u.m.def_mask)); in ApplyLoadStoreElimination() 187 if (this_lir->u.m.def_mask->Intersects(*this_lir->u.m.use_mask)) { in ApplyLoadStoreElimination() 191 ResourceMask stop_def_reg_mask = this_lir->u.m.def_mask->Without(kEncodeMem); in ApplyLoadStoreElimination() 192 ResourceMask stop_use_reg_mask = this_lir->u.m.use_mask->Without(kEncodeMem); in ApplyLoadStoreElimination() 196 if (uses_pc.Intersects(this_lir->u.m.use_mask->Union(*this_lir->u.m.def_mask))) { in ApplyLoadStoreElimination() 214 if (uses_pc.Intersects(check_lir->u.m.use_mask->Union(*check_lir->u.m.def_mask))) { in ApplyLoadStoreElimination() [all …]
|
D | mir_to_lir-inl.h | 60 insn->u.m.use_mask = insn->u.m.def_mask = &kEncodeAll; in RawLIR() 165 lir->u.m.use_mask = lir->u.m.def_mask = &kEncodeNone; in SetupResourceMasks() 207 lir->u.m.def_mask = lir->u.m.use_mask = &kEncodeAll; in SetupResourceMasks() 254 lir->u.m.use_mask = mask_cache_.GetMask(use_mask); in SetupResourceMasks() 255 lir->u.m.def_mask = mask_cache_.GetMask(def_mask); in SetupResourceMasks()
|
/art/test/301-abstract-protected/src/ |
D | Main.java | 19 System.err.println(new C().m()); in main() 24 interface I { public String m(); } in m() method 27 abstract class Abstract { protected abstract String m(); } in m() method in Abstract 33 class C extends AbstractI { public String m() { return "passed"; }; } in m() method in C
|
/art/test/201-built-in-exception-detail-messages/src/ |
D | Main.java | 384 Method m = A.class.getMethod("m", int.class, String.class); in reflection() local 385 m.invoke(new A(), 2, 2); in reflection() 393 Method m = A.class.getMethod("m", int.class, String.class); in reflection() local 394 m.invoke(new A(), null, ""); in reflection() 401 Method m = String.class.getMethod("charAt", int.class); in reflection() local 402 m.invoke("hello"); // Wrong number of arguments. in reflection() 408 Method m = String.class.getMethod("charAt", int.class); in reflection() local 409 m.invoke("hello", "world"); // Wrong type. in reflection() 415 Method m = String.class.getMethod("charAt", int.class); in reflection() local 416 m.invoke("hello", (Object) null); // Null for a primitive argument. in reflection() [all …]
|
/art/test/058-enum-order/src/ |
D | Main.java | 27 for (Muffin m : array) { in main() 28 System.out.println(m.ordinal() + ": " + m); in main()
|
/art/test/121-modifiers/src/ |
D | Main.java | 129 for (java.lang.reflect.Method m : clazz.getDeclaredMethods()) { in check() 130 String name = m.getName(); in check() 132 if ((m.getModifiers() & undefinedBits) != 0) { in check() 133 System.out.println("m.getModifiers(): " + Integer.toBinaryString(m.getModifiers())); in check() 139 if ((bitmask & m.getModifiers()) == 0) { in check()
|
/art/test/005-annotations/src/android/test/anno/ |
D | TestAnnotations.java | 49 for (Method m: clazz.getDeclaredMethods()) { in printAnnotations() 50 annos = m.getDeclaredAnnotations(); in printAnnotations() 51 System.out.println(" annotations on METH " + m + ":"); in printAnnotations() 55 for (Annotation[] pannos: m.getParameterAnnotations()) { in printAnnotations()
|