/art/runtime/ |
D | reflection_test.cc | 84 void ReflectionTestMakeExecutable(mirror::ArtMethod** method, in ReflectionTestMakeExecutable() argument 110 *method = is_static ? c->FindDirectMethod(method_name, method_signature) in ReflectionTestMakeExecutable() 112 CHECK(method != nullptr); in ReflectionTestMakeExecutable() 133 mirror::ArtMethod* method; in InvokeNopMethod() local 135 ReflectionTestMakeExecutable(&method, &receiver, is_static, "nop", "()V"); in InvokeNopMethod() 136 InvokeWithJValues(soa, receiver, soa.EncodeMethod(method), nullptr); in InvokeNopMethod() 141 mirror::ArtMethod* method; in InvokeIdentityByteMethod() local 143 ReflectionTestMakeExecutable(&method, &receiver, is_static, "identity", "(B)B"); in InvokeIdentityByteMethod() 147 JValue result = InvokeWithJValues(soa, receiver, soa.EncodeMethod(method), args); in InvokeIdentityByteMethod() 151 result = InvokeWithJValues(soa, receiver, soa.EncodeMethod(method), args); in InvokeIdentityByteMethod() [all …]
|
D | instrumentation.cc | 85 static void UpdateEntrypoints(mirror::ArtMethod* method, const void* quick_code, in UpdateEntrypoints() argument 89 method->SetEntryPointFromPortableCompiledCode(portable_code); in UpdateEntrypoints() 91 method->SetEntryPointFromQuickCompiledCode(quick_code); in UpdateEntrypoints() 92 bool portable_enabled = method->IsPortableCompiled(); in UpdateEntrypoints() 94 method->SetIsPortableCompiled(); in UpdateEntrypoints() 96 method->ClearIsPortableCompiled(); in UpdateEntrypoints() 98 if (!method->IsResolutionMethod()) { in UpdateEntrypoints() 104 && !method->IsNative() && !method->IsProxyMethod())) { in UpdateEntrypoints() 116 DCHECK(!method->IsNative()) << PrettyMethod(method); in UpdateEntrypoints() 117 DCHECK(!method->IsProxyMethod()) << PrettyMethod(method); in UpdateEntrypoints() [all …]
|
D | instrumentation.h | 62 mirror::ArtMethod* method, 69 mirror::ArtMethod* method, uint32_t dex_pc, 76 mirror::ArtMethod* method, uint32_t dex_pc) 81 mirror::ArtMethod* method, uint32_t new_dex_pc) 85 virtual void FieldRead(Thread* thread, mirror::Object* this_object, mirror::ArtMethod* method, 89 virtual void FieldWritten(Thread* thread, mirror::Object* this_object, mirror::ArtMethod* method, 155 void Deoptimize(mirror::ArtMethod* method) 162 void Undeoptimize(mirror::ArtMethod* method) 166 bool IsDeoptimized(mirror::ArtMethod* method) 196 void UpdateMethodsCode(mirror::ArtMethod* method, const void* quick_code, [all …]
|
D | method_helper-inl.h | 47 mirror::ArtMethod* method = GetMethod(); in GetClassFromTypeIdx() local 48 mirror::Class* type = method->GetDexCacheResolvedType(type_idx); in GetClassFromTypeIdx() 50 type = Runtime::Current()->GetClassLinker()->ResolveType(type_idx, method); in GetClassFromTypeIdx() 57 mirror::ArtMethod* method = GetMethod(); in GetReturnType() local 58 const DexFile* dex_file = method->GetDexFile(); in GetReturnType() 59 const DexFile::MethodId& method_id = dex_file->GetMethodId(method->GetDexMethodIndex()); in GetReturnType() 66 mirror::ArtMethod* method = GetMethod(); in ResolveString() local 67 mirror::Class* declaringClass = method->GetDeclaringClass(); in ResolveString() 71 Handle<mirror::DexCache> dex_cache(hs.NewHandle(method->GetDexCache())); in ResolveString() 72 s = Runtime::Current()->GetClassLinker()->ResolveString(*method->GetDexFile(), string_idx, in ResolveString()
|
D | runtime-inl.h | 26 inline QuickMethodFrameInfo Runtime::GetRuntimeMethodFrameInfo(mirror::ArtMethod* method) { in GetRuntimeMethodFrameInfo() argument 27 DCHECK(method != nullptr); in GetRuntimeMethodFrameInfo() 29 DCHECK(method != GetImtConflictMethod()); in GetRuntimeMethodFrameInfo() 30 DCHECK(method != GetResolutionMethod()); in GetRuntimeMethodFrameInfo() 32 if (method == GetCalleeSaveMethodUnchecked(Runtime::kRefsAndArgs)) { in GetRuntimeMethodFrameInfo() 34 } else if (method == GetCalleeSaveMethodUnchecked(Runtime::kSaveAll)) { in GetRuntimeMethodFrameInfo() 37 DCHECK(method == GetCalleeSaveMethodUnchecked(Runtime::kRefsOnly)); in GetRuntimeMethodFrameInfo()
|
D | method_helper.cc | 30 mirror::ArtMethod* method = method_->GetInterfaceMethodIfProxy(); in GetNameAsString() local 31 uint32_t dex_method_idx = method->GetDexMethodIndex(); in GetNameAsString() 34 Handle<mirror::DexCache> dex_cache(hs.NewHandle(method->GetDexCache())); in GetNameAsString() 67 mirror::ArtMethod* method = GetMethod(); in FindDexMethodIndexInOtherDexFile() local 68 const DexFile* dexfile = method->GetDexFile(); in FindDexMethodIndexInOtherDexFile() 70 return method->GetDexMethodIndex(); in FindDexMethodIndexInOtherDexFile() 72 const DexFile::MethodId& mid = dexfile->GetMethodId(method->GetDexMethodIndex()); in FindDexMethodIndexInOtherDexFile() 108 mirror::ArtMethod* method = GetMethod(); in FindDexMethodIndexInOtherDexFile() local 109 const DexFile* dexfile = method->GetDexFile(); in FindDexMethodIndexInOtherDexFile() 110 const uint32_t dex_method_idx = method->GetDexMethodIndex(); in FindDexMethodIndexInOtherDexFile()
|
D | profiler.cc | 97 mirror::ArtMethod* method = thread->GetCurrentMethod(nullptr); in GetSample() local 98 if (false && method == nullptr) { in GetSample() 105 profiler->RecordMethod(method); in GetSample() 406 bool BackgroundMethodSamplingProfiler::ProcessMethod(mirror::ArtMethod* method) { in ProcessMethod() argument 407 if (method == nullptr) { in ProcessMethod() 413 mirror::Class* cls = method->GetDeclaringClass(); in ProcessMethod() 424 if (strcmp(method->GetName(), "<clinit>") == 0) { in ProcessMethod() 431 std::string method_full_name = PrettyMethod(method); in ProcessMethod() 441 void BackgroundMethodSamplingProfiler::RecordMethod(mirror::ArtMethod* method) { in RecordMethod() argument 443 if (ProcessMethod(method)) { in RecordMethod() [all …]
|
D | trace.cc | 131 static uint32_t EncodeTraceMethodAndAction(mirror::ArtMethod* method, in EncodeTraceMethodAndAction() argument 133 uint32_t tmid = PointerToLowMemUInt32(method) | action; in EncodeTraceMethodAndAction() 134 DCHECK_EQ(method, DecodeTraceMethodId(tmid)); in EncodeTraceMethodAndAction() 499 mirror::ArtMethod* method = DecodeTraceMethodId(tmid); in DumpBuf() local 501 LOG(INFO) << PrettyMethod(method) << " " << static_cast<int>(action); in DumpBuf() 569 mirror::ArtMethod* method, uint32_t new_dex_pc) { in DexPcMoved() argument 571 LOG(ERROR) << "Unexpected dex PC event in tracing " << PrettyMethod(method) << " " << new_dex_pc; in DexPcMoved() 575 mirror::ArtMethod* method, uint32_t dex_pc, mirror::ArtField* field) in FieldRead() argument 578 LOG(ERROR) << "Unexpected field read event in tracing " << PrettyMethod(method) << " " << dex_pc; in FieldRead() 582 mirror::ArtMethod* method, uint32_t dex_pc, mirror::ArtField* field, in FieldWritten() argument [all …]
|
D | quick_exception_handler.cc | 53 mirror::ArtMethod* method = GetMethod(); in VisitFrame() local 55 if (method == nullptr) { in VisitFrame() 73 if (method->IsRuntimeMethod()) { in VisitFrame() 75 DCHECK(method->IsCalleeSaveMethod()); in VisitFrame() 79 return HandleTryItems(hs.NewHandle(method)); in VisitFrame() 83 bool HandleTryItems(Handle<mirror::ArtMethod> method) in HandleTryItems() argument 86 if (!method->IsNative()) { in HandleTryItems() 93 uint32_t found_dex_pc = mirror::ArtMethod::FindCatchBlock(method, to_find, dex_pc, in HandleTryItems() 97 exception_handler_->SetHandlerMethod(method.Get()); in HandleTryItems() 99 exception_handler_->SetHandlerQuickFramePc(method->ToNativePc(found_dex_pc)); in HandleTryItems() [all …]
|
/art/runtime/entrypoints/quick/ |
D | quick_alloc_entrypoints.cc | 30 uint32_t type_idx, mirror::ArtMethod* method, Thread* self, \ 34 return AllocObjectFromCode<false, instrumented_bool>(type_idx, method, self, allocator_type); \ 37 mirror::Class* klass, mirror::ArtMethod* method, Thread* self, \ 41 return AllocObjectFromCodeResolved<instrumented_bool>(klass, method, self, allocator_type); \ 44 mirror::Class* klass, mirror::ArtMethod* method, Thread* self, \ 48 return AllocObjectFromCodeInitialized<instrumented_bool>(klass, method, self, allocator_type); \ 51 uint32_t type_idx, mirror::ArtMethod* method, Thread* self, \ 55 return AllocObjectFromCode<true, instrumented_bool>(type_idx, method, self, allocator_type); \ 58 uint32_t type_idx, mirror::ArtMethod* method, int32_t component_count, Thread* self, \ 62 return AllocArrayFromCode<false, instrumented_bool>(type_idx, method, component_count, self, \ [all …]
|
D | quick_instrumentation_entrypoints.cc | 27 extern "C" const void* artInstrumentationMethodEntryFromCode(mirror::ArtMethod* method, in artInstrumentationMethodEntryFromCode() argument 36 if (instrumentation->IsDeoptimized(method)) { in artInstrumentationMethodEntryFromCode() 39 result = instrumentation->GetQuickCodeFor(method, sizeof(void*)); in artInstrumentationMethodEntryFromCode() 44 instrumentation->PushInstrumentationStackFrame(self, method->IsStatic() ? nullptr : this_object, in artInstrumentationMethodEntryFromCode() 45 method, lr, interpreter_entry); in artInstrumentationMethodEntryFromCode() 46 CHECK(result != NULL) << PrettyMethod(method); in artInstrumentationMethodEntryFromCode()
|
/art/runtime/mirror/ |
D | art_method-inl.h | 92 ArtMethod* method = GetDexCacheResolvedMethods()->Get(method_index); in GetDexCacheResolvedMethod() local 93 if (method != nullptr && !method->GetDeclaringClass()->IsErroneous()) { in GetDexCacheResolvedMethod() 94 return method; in GetDexCacheResolvedMethod() 417 mirror::ArtMethod* method = GetInterfaceMethodIfProxy(); in GetDeclaringClassDescriptor() local 418 uint32_t dex_method_idx = method->GetDexMethodIndex(); in GetDeclaringClassDescriptor() 422 const DexFile* dex_file = method->GetDexFile(); in GetDeclaringClassDescriptor() 427 mirror::ArtMethod* method = GetInterfaceMethodIfProxy(); in GetShorty() local 428 const DexFile* dex_file = method->GetDexFile(); in GetShorty() 429 return dex_file->GetMethodShorty(dex_file->GetMethodId(method->GetDexMethodIndex()), out_length); in GetShorty() 433 mirror::ArtMethod* method = GetInterfaceMethodIfProxy(); in GetSignature() local [all …]
|
D | class.cc | 363 ArtMethod* method = FindDeclaredVirtualMethod(name, signature); in FindInterfaceMethod() local 364 if (method != nullptr) { in FindInterfaceMethod() 365 return method; in FindInterfaceMethod() 371 method = iftable->GetInterface(i)->FindDeclaredVirtualMethod(name, signature); in FindInterfaceMethod() 372 if (method != nullptr) { in FindInterfaceMethod() 373 return method; in FindInterfaceMethod() 381 ArtMethod* method = FindDeclaredVirtualMethod(name, signature); in FindInterfaceMethod() local 382 if (method != nullptr) { in FindInterfaceMethod() 383 return method; in FindInterfaceMethod() 389 method = iftable->GetInterface(i)->FindDeclaredVirtualMethod(name, signature); in FindInterfaceMethod() [all …]
|
D | dex_cache-inl.h | 36 ArtMethod* method = GetResolvedMethods()->Get(method_idx); in GetResolvedMethod() local 38 if (method != NULL && method->IsRuntimeMethod()) { in GetResolvedMethod() 39 DCHECK(method == Runtime::Current()->GetResolutionMethod()); in GetResolvedMethod() 42 return method; in GetResolvedMethod()
|
D | class-inl.h | 150 inline void Class::SetEmbeddedImTableEntry(uint32_t i, ArtMethod* method) { in SetEmbeddedImTableEntry() argument 152 SetFieldObject<false>(MemberOffset(offset), method); in SetEmbeddedImTableEntry() 186 inline void Class::SetEmbeddedVTableEntry(uint32_t i, ArtMethod* method) { in SetEmbeddedVTableEntry() argument 188 SetFieldObject<false>(MemberOffset(offset), method); in SetEmbeddedVTableEntry() 189 CHECK(method == GetVTableDuringLinking()->Get(i)); in SetEmbeddedVTableEntry() 279 inline bool Class::ResolvedMethodAccessTest(Class* access_to, ArtMethod* method, in ResolvedMethodAccessTest() argument 295 method, throw_invoke_type); in ResolvedMethodAccessTest() 299 DCHECK_EQ(this->CanAccessMember(access_to, method->GetAccessFlags()), in ResolvedMethodAccessTest() 300 this->CanAccessMember(dex_access_to, method->GetAccessFlags())); in ResolvedMethodAccessTest() 302 if (LIKELY(this->CanAccessMember(access_to, method->GetAccessFlags()))) { in ResolvedMethodAccessTest() [all …]
|
/art/runtime/interpreter/ |
D | interpreter.cc | 27 static void UnstartedRuntimeJni(Thread* self, ArtMethod* method, in UnstartedRuntimeJni() argument 30 std::string name(PrettyMethod(method)); in UnstartedRuntimeJni() 127 LOG(FATAL) << "Calling native method " << PrettyMethod(method) << " in an unstarted " in UnstartedRuntimeJni() 132 static void InterpreterJni(Thread* self, ArtMethod* method, const StringPiece& shorty, in InterpreterJni() argument 138 if (method->IsStatic()) { in InterpreterJni() 141 fntype* const fn = reinterpret_cast<fntype*>(method->GetEntryPointFromJni()); in InterpreterJni() 143 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni() 152 fntype* const fn = reinterpret_cast<fntype*>(method->GetEntryPointFromJni()); in InterpreterJni() 154 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni() 159 fntype* const fn = reinterpret_cast<fntype*>(method->GetEntryPointFromJni()); in InterpreterJni() [all …]
|
/art/test/044-proxy/src/ |
D | WrappedThrow.java | 188 public Object invoke(Object proxy, Method method, Object[] args) in invoke() argument 195 if (method.getDeclaringClass() == java.lang.Object.class) { in invoke() 197 if (method.getName().equals("toString")) in invoke() 199 else if (method.getName().equals("hashCode")) in invoke() 201 else if (method.getName().equals("equals")) in invoke() 207 System.out.println("Invoke " + method); in invoke() 216 if (method.getName().equals("throwFunky")) in invoke() 218 if (method.getName().equals("throwFunky2")) in invoke() 220 if (method.getName().equals("throwException")) in invoke() 222 if (method.getName().equals("throwBase")) in invoke() [all …]
|
D | BasicTest.java | 239 public Object invoke(Object proxy, Method method, Object[] args) in invoke() argument 246 if (method.getDeclaringClass() == java.lang.Object.class) { in invoke() 248 if (method.getName().equals("toString")) { in invoke() 250 } else if (method.getName().equals("hashCode")) { in invoke() 252 } else if (method.getName().equals("equals")) { in invoke() 259 if (method.getDeclaringClass() == Trace.class) { in invoke() 260 if (method.getName().equals("getTrace")) { in invoke() 273 if (method.getDeclaringClass() == Trace.class) { in invoke() 274 if (method.getName().equals("getTrace")) { in invoke() 287 System.out.println("Invoke " + method); in invoke() [all …]
|
/art/compiler/ |
D | common_compiler_test.cc | 153 void CommonCompilerTest::MakeExecutable(mirror::ArtMethod* method) { in MakeExecutable() argument 154 CHECK(method != nullptr); in MakeExecutable() 157 if (!method->IsAbstract()) { in MakeExecutable() 158 mirror::DexCache* dex_cache = method->GetDeclaringClass()->GetDexCache(); in MakeExecutable() 162 method->GetDexMethodIndex())); in MakeExecutable() 207 LOG(INFO) << "MakeExecutable " << PrettyMethod(method) << " code=" << method_code; in MakeExecutable() 209 oat_method.LinkMethod(method); in MakeExecutable() 210 method->SetEntryPointFromInterpreter(artInterpreterToCompiledCodeBridge); in MakeExecutable() 214 if (!method->IsNative()) { in MakeExecutable() 221 oat_method.LinkMethod(method); in MakeExecutable() [all …]
|
D | compilers.cc | 59 CompiledMethod* method = TryCompileWithSeaIR(code_item, in Compile() local 66 if (method != nullptr) { in Compile() 67 return method; in Compile() 86 uintptr_t QuickCompiler::GetEntryPointOf(mirror::ArtMethod* method) const { in GetEntryPointOf() 88 return reinterpret_cast<uintptr_t>(method->GetEntryPointFromQuickCompiledCodePtrSize( in GetEntryPointOf() 149 CompiledMethod* method = TryCompile(code_item, access_flags, invoke_type, class_def_idx, in Compile() local 151 if (method != nullptr) { in Compile() 152 return method; in Compile()
|
/art/test/401-optimizing-compiler/ |
D | expected.txt | 1 In static method 2 In static method with 2 args 1 2 3 In static method with 5 args 1 2 3 4 5 4 In static method with 7 args 1 2 3 4 5 6 7 8 In static method with object arg class java.lang.Object
|
/art/runtime/entrypoints/interpreter/ |
D | interpreter_entrypoints.cc | 31 mirror::ArtMethod* method = shadow_frame->GetMethod(); in artInterpreterToCompiledCodeBridge() local 33 if (method->IsStatic()) { in artInterpreterToCompiledCodeBridge() 34 mirror::Class* declaringClass = method->GetDeclaringClass(); in artInterpreterToCompiledCodeBridge() 47 method = shadow_frame->GetMethod(); in artInterpreterToCompiledCodeBridge() 54 method->Invoke(self, shadow_frame->GetVRegArgs(arg_offset), in artInterpreterToCompiledCodeBridge()
|
/art/runtime/entrypoints/portable/ |
D | portable_invoke_entrypoints.cc | 27 mirror::ArtMethod* method = FindMethodFast(method_idx, this_object, caller_method, in FindMethodHelper() local 29 if (UNLIKELY(method == NULL)) { in FindMethodHelper() 32 method = FindMethodFromCode<type, access_check>(method_idx, &this_object, &caller_method, in FindMethodHelper() 34 if (UNLIKELY(method == NULL)) { in FindMethodHelper() 41 const void* code = method->GetEntryPointFromPortableCompiledCode(); in FindMethodHelper() 48 LOG(FATAL) << "Code was NULL in method: " << PrettyMethod(method) in FindMethodHelper() 49 << " location: " << method->GetDexFile()->GetLocation(); in FindMethodHelper() 51 return method; in FindMethodHelper()
|
D | portable_thread_entrypoints.cc | 34 mirror::ArtMethod* method = cur_frame->GetMethod(); in VisitFrame() local 36 ShadowFrame* new_frame = ShadowFrame::Create(num_regs, NULL, method, dex_pc); in VisitFrame() 38 const uint8_t* gc_map = method->GetNativeGcMap(sizeof(void*)); in VisitFrame() 87 mirror::ArtMethod* method, in art_portable_push_shadow_frame_from_code() argument 90 new_shadow_frame->SetMethod(method); in art_portable_push_shadow_frame_from_code()
|
/art/runtime/entrypoints/jni/ |
D | jni_entrypoints.cc | 37 mirror::ArtMethod* method = self->GetCurrentMethod(NULL); in artFindNativeMethod() local 38 DCHECK(method != NULL); in artFindNativeMethod() 42 void* native_code = soa.Vm()->FindCodeForNativeMethod(method); in artFindNativeMethod() 48 method->RegisterNative(self, native_code, false); in artFindNativeMethod()
|