Home
last modified time | relevance | path

Searched refs:ProtoIndex (Results 1 – 25 of 39) sorted by relevance

12

/art/libdexfile/dex/
Dproto_reference_test.cc42 protos.emplace_back(ProtoReference(dex_file.get(), dex::ProtoIndex(i))); in TEST()
74 ProtoReference V_dex1 = ProtoReference(dex_file1.get(), dex::ProtoIndex(5)); in TEST()
75 ProtoReference V_dex2 = ProtoReference(dex_file2.get(), dex::ProtoIndex(1)); in TEST()
82 ProtoReference IString_dex1 = ProtoReference(dex_file1.get(), dex::ProtoIndex(1)); in TEST()
83 ProtoReference IIString_dex1 = ProtoReference(dex_file1.get(), dex::ProtoIndex(2)); in TEST()
84 ProtoReference IJString_dex1 = ProtoReference(dex_file1.get(), dex::ProtoIndex(3)); in TEST()
85 ProtoReference IJZString_dex1 = ProtoReference(dex_file1.get(), dex::ProtoIndex(4)); in TEST()
87 ProtoReference IJString_dex2 = ProtoReference(dex_file2.get(), dex::ProtoIndex(0)); in TEST()
Ddex_file_types.h64 class ProtoIndex : public DexIndex<uint16_t> {
66 ProtoIndex() {} in ProtoIndex() function
67 explicit constexpr ProtoIndex(uint16_t index) : DexIndex<decltype(index_)>(index) {} in ProtoIndex() function
68 static constexpr ProtoIndex Invalid() { in Invalid()
69 return ProtoIndex(std::numeric_limits<decltype(index_)>::max()); in Invalid()
72 std::ostream& operator<<(std::ostream& os, const ProtoIndex& index);
99 template<> struct hash<art::dex::ProtoIndex> {
100 size_t operator()(const art::dex::ProtoIndex& index) const {
Dproto_reference.h34 ProtoReference(const DexFile* file, dex::ProtoIndex index) in ProtoReference()
37 dex::ProtoIndex ProtoIndex() const { in ProtoIndex() function
38 return dex::ProtoIndex(index); in ProtoIndex()
42 return dex_file->GetProtoId(ProtoIndex()); in ProtoId()
Ddex_file.cc408 const dex::ProtoIndex proto_idx = GetIndexForProtoId(signature); in FindMethodId()
414 dex::ProtoIndex proto_idx) const { in FindMethodIdByIndex()
509 const dex::ProtoIndex proto_idx = static_cast<dex::ProtoIndex>(mid); in FindProtoId()
712 dex::ProtoIndex DexFile::GetProtoIndexForCallSite(uint32_t call_site_idx) const { in GetProtoIndexForCallSite()
718 return dex::ProtoIndex(it.GetJavaValue().i); in GetProtoIndexForCallSite()
808 std::ostream& operator<<(std::ostream& os, const ProtoIndex& index) { in operator <<()
Ddex_instruction.cc437 dex::ProtoIndex proto_idx(VRegH_45cc()); in DumpString()
461 dex::ProtoIndex proto_idx(VRegH_4rcc()); in DumpString()
464 << ", " << file->GetShorty(dex::ProtoIndex(proto_idx)) in DumpString()
472 dex::ProtoIndex proto_idx(VRegH_4rcc()); in DumpString()
Ddex_file.h475 dex::ProtoIndex signature) const;
577 const dex::ProtoId& GetProtoId(dex::ProtoIndex idx) const { in GetProtoId()
582 dex::ProtoIndex GetIndexForProtoId(const dex::ProtoId& proto_id) const { in GetIndexForProtoId()
585 return dex::ProtoIndex(&proto_id - proto_ids_); in GetIndexForProtoId()
603 const char* GetShorty(dex::ProtoIndex proto_idx) const;
604 std::string_view GetShortyView(dex::ProtoIndex proto_idx) const;
619 dex::ProtoIndex GetProtoIndexForCallSite(uint32_t call_site_idx) const;
Ddex_file_structs.h91 dex::ProtoIndex proto_idx_; // index into proto_ids_ array for method prototype
Dart_dex_file_loader_test.cc297 const dex::ProtoId& to_find = java_lang_dex_file_->GetProtoId(dex::ProtoIndex(i)); in TEST_F()
308 EXPECT_EQ(java_lang_dex_file_->GetIndexForProtoId(*found), dex::ProtoIndex(i)); in TEST_F()
Ddex_file-inl.h250 inline const char* DexFile::GetShorty(dex::ProtoIndex proto_idx) const { in GetShorty()
256 inline std::string_view DexFile::GetShortyView(dex::ProtoIndex proto_idx) const { in GetShortyView()
Ddex_file_verifier_test.cc162 method_id->proto_idx_ = dex::ProtoIndex(0xFF); in TEST_F()
1412 dex::ProtoIndex proto1_idx = dex_file->GetMethodId(method_idx).proto_idx_; in TEST_F()
1414 dex::ProtoIndex proto2_idx(proto1_idx.index_ + 1u); in TEST_F()
/art/runtime/mirror/
Ddex_cache_test.cc155 if (dex::ProtoIndex(i) == method1_id.proto_idx_) { in TEST_F()
157 } else if (dex::ProtoIndex(i) == method2_id.proto_idx_) { in TEST_F()
Ddex_cache-inl.h180 inline MethodType* DexCache::GetResolvedMethodType(dex::ProtoIndex proto_idx) { in GetResolvedMethodType()
184 inline void DexCache::SetResolvedMethodType(dex::ProtoIndex proto_idx, MethodType* resolved) { in SetResolvedMethodType()
197 inline void DexCache::ClearMethodType(dex::ProtoIndex proto_idx) { in ClearMethodType()
Ddex_cache.h344 …MethodType* GetResolvedMethodType(dex::ProtoIndex proto_idx) REQUIRES_SHARED(Locks::mutator_lock_);
346 void SetResolvedMethodType(dex::ProtoIndex proto_idx, MethodType* resolved)
351 void ClearMethodType(dex::ProtoIndex proto_idx) REQUIRES_SHARED(Locks::mutator_lock_);
/art/runtime/entrypoints/quick/
Dquick_dexcache_entrypoints.cc173 dex::ProtoIndex proto_idx, in StoreMethodTypeInBss()
283 ObjPtr<mirror::MethodType> result = ResolveMethodTypeFromCode(caller, dex::ProtoIndex(proto_idx)); in artResolveMethodTypeFromCode()
286 StoreMethodTypeInBss(caller, dex::ProtoIndex(proto_idx), result, outer_method); in artResolveMethodTypeFromCode()
/art/runtime/
Dtransaction.h144 void RecordResolveMethodType(ObjPtr<mirror::DexCache> dex_cache, dex::ProtoIndex proto_idx)
322 ResolveMethodTypeLog(ObjPtr<mirror::DexCache> dex_cache, dex::ProtoIndex proto_idx);
330 const dex::ProtoIndex proto_idx_;
Dtransaction.cc314 dex::ProtoIndex proto_idx) { in RecordResolveMethodType()
718 dex::ProtoIndex proto_idx) in ResolveMethodTypeLog()
Dclass_linker.h442 dex::ProtoIndex proto_idx,
449 dex::ProtoIndex proto_idx,
454 dex::ProtoIndex proto_idx,
944 dex::ProtoIndex proto_idx)
/art/compiler/optimizing/
Dinstruction_builder.h164 dex::ProtoIndex proto_idx,
237 void BuildLoadMethodType(dex::ProtoIndex proto_index, uint32_t dex_pc);
/art/runtime/oat/
Daot_class_linker.h128 void RecordResolveMethodType(ObjPtr<mirror::DexCache> dex_cache, dex::ProtoIndex proto_idx)
/art/runtime/interpreter/mterp/
Dnterp.cc265 dex::ProtoIndex proto_idx(inst->Opcode() == Instruction::INVOKE_POLYMORPHIC in NterpGetShortyFromInvokePolymorphic()
279 dex::ProtoIndex proto_idx = dex_file->GetProtoIndexForCallSite(call_site_index); in NterpGetShortyFromInvokeCustom()
583 self, dex::ProtoIndex(inst->VRegB_21c()), caller).Ptr(); in NterpLoadObject()
/art/runtime/entrypoints/
Dentrypoint_utils.h168 ObjPtr<mirror::MethodType> ResolveMethodTypeFromCode(ArtMethod* referrer, dex::ProtoIndex proto_idx)
Dentrypoint_utils.cc300 dex::ProtoIndex proto_idx) { in ResolveMethodTypeFromCode()
/art/dexdump/
Ddexdump.cc978 const dex::ProtoId& protoId = pDexFile->GetProtoId(dex::ProtoIndex(secondary_index)); in indexString()
996 const dex::ProtoId& protoId = pDexFile->GetProtoId(dex::ProtoIndex(index)); in indexString()
1808 dex::ProtoIndex method_type_idx = static_cast<dex::ProtoIndex>(it.GetJavaValue().i); in dumpCallSite()
1855 dex::ProtoIndex proto_idx = static_cast<dex::ProtoIndex>(it.GetJavaValue().i); in dumpCallSite()
/art/compiler/linker/
Dlinker_patch.h270 return ProtoReference(target_dex_file_, dex::ProtoIndex(proto_idx_)); in TargetProto()
/art/runtime/interpreter/
Dinterpreter_common.cc329 const dex::ProtoIndex callsite_proto_id(vRegH); in DoMethodHandleInvokeCommon()
475 class_linker->ResolveMethodType(self, dex::ProtoIndex(vRegH), dex_cache, class_loader))); in DoVarHandleInvokeCommon()
507 dex::ProtoIndex(vRegH), in DoVarHandleInvokeCommon()
665 dex::ProtoIndex proto_idx(encoded_value->GetC()); in GetArgumentForBootstrapMethod()

12