Home
last modified time | relevance | path

Searched refs:art_method (Results 1 – 22 of 22) sorted by relevance

/art/runtime/jni/
Djni_internal.h114 static inline jmethodID EncodeArtMethod(ReflectiveHandle<ArtMethod> art_method) in EncodeArtMethod() argument
117 return Runtime::Current()->GetJniIdManager()->EncodeMethodId(art_method); in EncodeArtMethod()
118 } else if (art_method == nullptr || in EncodeArtMethod()
119 !art_method->IsCopied() || in EncodeArtMethod()
120 art_method->IsDefaultConflicting()) { in EncodeArtMethod()
121 return reinterpret_cast<jmethodID>(art_method.Get()); in EncodeArtMethod()
123 return reinterpret_cast<jmethodID>(art_method->GetCanonicalMethod()); in EncodeArtMethod()
129 static inline jmethodID EncodeArtMethod(ArtMethod* art_method) in EncodeArtMethod() argument
132 return Runtime::Current()->GetJniIdManager()->EncodeMethodId(art_method); in EncodeArtMethod()
133 } else if (art_method == nullptr || in EncodeArtMethod()
[all …]
/art/test/664-aget-verifier/
Daget-verifier.cc39 ArtMethod* art_method = exec->GetArtMethod(); in Java_Main_testCompiled() local
41 if (art_method->IsNative() || !art_method->IsInvokable() || art_method->IsProxyMethod()) { in Java_Main_testCompiled()
48 if (jit != nullptr && jit->GetCodeCache()->ContainsMethod(art_method)) { in Java_Main_testCompiled()
53 return art_method->GetOatMethodQuickCode(kRuntimePointerSize) != nullptr ? JNI_TRUE : JNI_FALSE; in Java_Main_testCompiled()
/art/openjdkjvmti/
Dti_method.cc138 art::ArtMethod* art_method = art::jni::DecodeArtMethod(method); in GetBytecodes() local
140 if (art_method->IsNative()) { in GetBytecodes()
149 art::CodeItemInstructionAccessor accessor(art_method->DexInstructions()); in GetBytecodes()
171 art::ArtMethod* art_method = art::jni::DecodeArtMethod(method); in GetArgumentsSize() local
173 if (art_method->IsNative()) { in GetArgumentsSize()
182 if (art_method->IsProxyMethod() || art_method->IsAbstract()) { in GetArgumentsSize()
184 art::ArtMethod* base_method = art_method->GetInterfaceMethodIfProxy(art::kRuntimePointerSize); in GetArgumentsSize()
193 DCHECK(art_method->HasCodeItem()); in GetArgumentsSize()
194 DCHECK_NE(art_method->GetCodeItem(), nullptr); in GetArgumentsSize()
195 *size_ptr = art_method->DexInstructionData().InsSize(); in GetArgumentsSize()
[all …]
Dti_breakpoint.cc157 art::ArtMethod* art_method = art::jni::DecodeArtMethod(method)->GetCanonicalMethod(); in SetBreakpoint() local
159 art_method->DexInstructions().InsnsSizeInCodeUnits()) { in SetBreakpoint()
162 DeoptManager::Get()->AddMethodBreakpoint(art_method); in SetBreakpoint()
165 auto res_pair = env->breakpoints.insert(/* Breakpoint */ {art_method, location}); in SetBreakpoint()
171 DeoptManager::Get()->RemoveMethodBreakpoint(art_method); in SetBreakpoint()
181 art::ArtMethod* art_method = art::jni::DecodeArtMethod(method)->GetCanonicalMethod(); in ClearBreakpoint() local
184 auto pos = env->breakpoints.find(/* Breakpoint */ {art_method, location}); in ClearBreakpoint()
190 DeoptManager::Get()->RemoveMethodBreakpoint(art_method); in ClearBreakpoint()
/art/runtime/
Dsdk_checker.cc45 bool SdkChecker::ShouldDenyAccess(ArtMethod* art_method) const { in ShouldDenyAccess()
50 std::string_view declaring_class_descriptor = art_method->GetDeclaringClassDescriptorView(); in ShouldDenyAccess()
51 const char* name = art_method->GetName(); in ShouldDenyAccess()
67 art_method->GetSignature().ToString(), &return_type_idx, &param_type_idxs)) { in ShouldDenyAccess()
84 VLOG(verifier) << "Deny for " << art_method->PrettyMethod(true); in ShouldDenyAccess()
Dsdk_checker.h56 bool ShouldDenyAccess(ArtMethod* art_method) const REQUIRES_SHARED(Locks::mutator_lock_);
Dart_method.cc536 for (ArtMethod& art_method : declaring_class->GetVirtualMethods(pointer_size)) { in FindOatMethodFor()
538 if (method->GetDexMethodIndex() == art_method.GetDexMethodIndex()) { in FindOatMethodFor()
Dhidden_api_test.cc167 ArtMethod* art_method = jni::DecodeArtMethod(method_id); in GetArtMethod() local
168 return art_method; in GetArtMethod()
Dclass_linker.cc4014 ArtMethod* art_method = klass->GetDirectMethodUnchecked(class_def_method_index, in LoadClass()
4016 LoadMethod(dex_file, method, klass.Get(), &mai_direct, art_method); in LoadClass()
4017 LinkCode(art_method, class_def_method_index, &occi); in LoadClass()
4021 art_method->SetMethodIndex(last_class_def_method_index); in LoadClass()
4023 art_method->SetMethodIndex(class_def_method_index); in LoadClass()
4027 art_method->ResetCounter(hotness_threshold); in LoadClass()
4030 ArtMethod* art_method = klass->GetVirtualMethodUnchecked( in LoadClass()
4033 art_method->ResetCounter(hotness_threshold); in LoadClass()
4034 LoadMethod(dex_file, method, klass.Get(), &mai_virtual, art_method); in LoadClass()
4035 LinkCode(art_method, class_def_method_index, &occi); in LoadClass()
[all …]
DAndroid.bp238 "art_method.cc",
Dclass_linker.h883 virtual bool DenyAccessBasedOnPublicSdk(ArtMethod* art_method) const
/art/test/1947-breakpoint-redefine-deopt/
Dcheck_deopt.cc27 ArtMethod* art_method = ArtMethod::FromReflectedMethod(soa, m); in Java_Main_isMethodDeoptimized() local
28 return Runtime::Current()->GetInstrumentation()->IsDeoptimized(art_method); in Java_Main_isMethodDeoptimized()
/art/test/661-oat-writer-layout/
Doat_writer_layout.cc40 ArtMethod* art_method = exec->GetArtMethod(); in Java_Main_getOatMethodQuickCode() local
43 art_method->GetOatMethodQuickCode(Runtime::Current()->GetClassLinker()->GetImagePointerSize()); in Java_Main_getOatMethodQuickCode()
/art/test/616-cha-unloading/
Dcha_unload.cc60 jlong art_method) { in Java_Main_reuseArenaOfMethod() argument
61 void* ptr = reinterpret_cast64<void*>(art_method); in Java_Main_reuseArenaOfMethod()
/art/compiler/optimizing/
Dstack_map_test.cc121 ArtMethod art_method; in TEST() local
131 stream.BeginInlineInfoEntry(&art_method, 3, number_of_dex_registers_in_inline_info); in TEST()
133 stream.BeginInlineInfoEntry(&art_method, 2, number_of_dex_registers_in_inline_info); in TEST()
320 ArtMethod art_method; in TEST() local
330 stream.BeginInlineInfoEntry(&art_method, 3, number_of_dex_registers_in_inline_info); in TEST()
552 ArtMethod art_method; in TEST() local
563 stream.BeginInlineInfoEntry(&art_method, 2, 1); in TEST()
566 stream.BeginInlineInfoEntry(&art_method, 3, 3); in TEST()
579 stream.BeginInlineInfoEntry(&art_method, 2, 1); in TEST()
582 stream.BeginInlineInfoEntry(&art_method, 3, 3); in TEST()
[all …]
/art/runtime/native/
Djava_lang_reflect_Executable.cc163 ArtMethod* art_method = executable.Get()->GetArtMethod(); in Executable_getParameters0() local
164 if (art_method->GetDeclaringClass()->IsProxyClass()) { in Executable_getParameters0()
172 if (!annotations::GetParametersMetadataForMethod(art_method, &names, &access_flags)) { in Executable_getParameters0()
180 art_method->PrettyMethod().c_str()).c_str()); in Executable_getParameters0()
191 art_method->PrettyMethod().c_str(), in Executable_getParameters0()
/art/tools/cpp-define-generator/
Dasm_defines.def23 #include "art_method.def"
Dart_method.def18 #include "art_method.h"
/art/imgdiag/
Dimgdiag.cc223 size_t EntrySize(ArtMethod* art_method) REQUIRES_SHARED(Locks::mutator_lock_) { in EntrySize() argument
224 return sizeof(*art_method); in EntrySize()
906 ArtMethod* art_method = reinterpret_cast<ArtMethod*>(&remote_contents[0]); in RegionSpecializedBase() local
907 art_method->VisitMembers(member_info_); in RegionSpecializedBase()
999 auto art_method = reinterpret_cast<ArtMethod*>(method); in DumpDirtyEntries() local
1002 FixUpRemotePointer(art_method->GetDeclaringClass(), in DumpDirtyEntries()
1010 DumpOneArtMethod(art_method, declaring_class, remote_declaring_class); in DumpDirtyEntries()
1106 void DumpOneArtMethod(ArtMethod* art_method, in DumpOneArtMethod() argument
1111 os_ << " " << reinterpret_cast<const void*>(art_method) << " "; in DumpOneArtMethod()
1113 << reinterpret_cast<const void*>(art_method->GetDataPtrSize(pointer_size)) << ", "; in DumpOneArtMethod()
[all …]
/art/test/common/
Druntime_state.cc538 ArtMethod* art_method = exec->GetArtMethod(); in GetMethodHotnessFromProfile() local
539 MethodReference ref(art_method->GetDexFile(), art_method->GetDexMethodIndex()); in GetMethodHotnessFromProfile()
/art/runtime/oat/
Daot_class_linker.cc242 bool AotClassLinker::DenyAccessBasedOnPublicSdk(ArtMethod* art_method) const { in DenyAccessBasedOnPublicSdk()
243 return sdk_checker_ != nullptr && sdk_checker_->ShouldDenyAccess(art_method); in DenyAccessBasedOnPublicSdk()
Daot_class_linker.h51 bool DenyAccessBasedOnPublicSdk(ArtMethod* art_method) const override