Home
last modified time | relevance | path

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

12

/art/libdexfile/dex/
Ddex_file_types.h63 class ProtoIndex : public DexIndex<uint16_t> {
65 ProtoIndex() {} in ProtoIndex() function
66 explicit constexpr ProtoIndex(uint16_t index) : DexIndex<decltype(index_)>(index) {} in ProtoIndex() function
67 static constexpr ProtoIndex Invalid() { in Invalid()
68 return ProtoIndex(std::numeric_limits<decltype(index_)>::max()); in Invalid()
71 std::ostream& operator<<(std::ostream& os, const ProtoIndex& index);
98 template<> struct hash<art::dex::ProtoIndex> {
99 size_t operator()(const art::dex::ProtoIndex& index) const {
Ddex_file.cc281 const dex::ProtoIndex proto_idx = GetIndexForProtoId(signature); in FindMethodId()
373 const dex::ProtoIndex proto_idx = static_cast<dex::ProtoIndex>(mid); in FindProtoId()
576 dex::ProtoIndex DexFile::GetProtoIndexForCallSite(uint32_t call_site_idx) const { in GetProtoIndexForCallSite()
582 return dex::ProtoIndex(it.GetJavaValue().i); in GetProtoIndexForCallSite()
672 std::ostream& operator<<(std::ostream& os, const ProtoIndex& index) { in operator <<()
Ddex_instruction.cc471 dex::ProtoIndex proto_idx(VRegH_45cc()); in DumpString()
495 dex::ProtoIndex proto_idx(VRegH_4rcc()); in DumpString()
498 << ", " << file->GetShorty(dex::ProtoIndex(proto_idx)) in DumpString()
506 dex::ProtoIndex proto_idx(VRegH_4rcc()); in DumpString()
Ddex_file.h465 const dex::ProtoId& GetProtoId(dex::ProtoIndex idx) const { in GetProtoId()
470 dex::ProtoIndex GetIndexForProtoId(const dex::ProtoId& proto_id) const { in GetIndexForProtoId()
473 return dex::ProtoIndex(&proto_id - proto_ids_); in GetIndexForProtoId()
491 const char* GetShorty(dex::ProtoIndex proto_idx) const;
505 dex::ProtoIndex GetProtoIndexForCallSite(uint32_t call_site_idx) const;
Dart_dex_file_loader_test.cc248 const dex::ProtoId& to_find = java_lang_dex_file_->GetProtoId(dex::ProtoIndex(i)); in TEST_F()
259 EXPECT_EQ(java_lang_dex_file_->GetIndexForProtoId(*found), dex::ProtoIndex(i)); in TEST_F()
Ddex_file_structs.h91 dex::ProtoIndex proto_idx_; // index into proto_ids_ array for method prototype
Ddex_file_verifier_test.cc169 method_id->proto_idx_ = dex::ProtoIndex(0xFF); in TEST_F()
1419 dex::ProtoIndex proto1_idx = dex_file->GetMethodId(method_idx).proto_idx_; in TEST_F()
1421 dex::ProtoIndex proto2_idx(proto1_idx.index_ + 1u); in TEST_F()
Ddex_file-inl.h159 inline const char* DexFile::GetShorty(dex::ProtoIndex proto_idx) const { in GetShorty()
/art/runtime/mirror/
Ddex_cache_test.cc172 if (dex::ProtoIndex(pair.index) == method1_id.proto_idx_) { in TEST_F()
174 } else if (dex::ProtoIndex(pair.index) == method2_id.proto_idx_) { in TEST_F()
Ddex_cache-inl.h189 inline uint32_t DexCache::MethodTypeSlotIndex(dex::ProtoIndex proto_idx) { in MethodTypeSlotIndex()
197 inline MethodType* DexCache::GetResolvedMethodType(dex::ProtoIndex proto_idx) { in GetResolvedMethodType()
202 inline void DexCache::SetResolvedMethodType(dex::ProtoIndex proto_idx, MethodType* resolved) { in SetResolvedMethodType()
Ddex_cache.h321 …MethodType* GetResolvedMethodType(dex::ProtoIndex proto_idx) REQUIRES_SHARED(Locks::mutator_lock_);
323 void SetResolvedMethodType(dex::ProtoIndex proto_idx, MethodType* resolved)
476 uint32_t MethodTypeSlotIndex(dex::ProtoIndex proto_idx) REQUIRES_SHARED(Locks::mutator_lock_);
/art/compiler/optimizing/
Dinstruction_builder.h169 dex::ProtoIndex proto_idx,
238 void BuildLoadMethodType(dex::ProtoIndex proto_index, uint32_t dex_pc);
Dinstruction_builder.cc1082 dex::ProtoIndex proto_idx, in BuildInvokePolymorphic()
1112 dex::ProtoIndex proto_idx = dex_file_->GetProtoIndexForCallSite(call_site_idx); in BuildInvokeCustom()
2322 void HInstructionBuilder::BuildLoadMethodType(dex::ProtoIndex proto_index, uint32_t dex_pc) { in BuildLoadMethodType()
2600 dex::ProtoIndex proto_idx(instruction.VRegH_45cc()); in ProcessDexInstruction()
2609 dex::ProtoIndex proto_idx(instruction.VRegH_4rcc()); in ProcessDexInstruction()
3346 dex::ProtoIndex proto_idx(instruction.VRegB_21c()); in ProcessDexInstruction()
/art/runtime/interpreter/mterp/
Dnterp.cc140 dex::ProtoIndex proto_idx(inst->Opcode() == Instruction::INVOKE_POLYMORPHIC in NterpGetShortyFromInvokePolymorphic()
154 dex::ProtoIndex proto_idx = dex_file->GetProtoIndexForCallSite(call_site_index); in NterpGetShortyFromInvokeCustom()
503 self, dex::ProtoIndex(inst->VRegB_21c()), caller).Ptr(); in NterpLoadObject()
Dmterp.cc392 ResolveMethodType(self, dex::ProtoIndex(index), shadow_frame->GetMethod()); in MterpConstMethodType()
/art/runtime/entrypoints/
Dentrypoint_utils.h174 ObjPtr<mirror::MethodType> ResolveMethodTypeFromCode(ArtMethod* referrer, dex::ProtoIndex proto_idx)
Dentrypoint_utils.cc273 dex::ProtoIndex proto_idx) { in ResolveMethodTypeFromCode()
/art/runtime/entrypoints/quick/
Dquick_dexcache_entrypoints.cc204 ObjPtr<mirror::MethodType> result = ResolveMethodTypeFromCode(caller, dex::ProtoIndex(proto_idx)); in artResolveMethodTypeFromCode()
Dquick_trampoline_entrypoints.cc2517 const dex::ProtoIndex proto_idx(inst.VRegH()); in artInvokePolymorphic()
2639 const dex::ProtoIndex proto_idx(dex_file->GetProtoIndexForCallSite(call_site_idx)); in artInvokeCustom()
/art/dexdump/
Ddexdump.cc911 const dex::ProtoId& protoId = pDexFile->GetProtoId(dex::ProtoIndex(secondary_index)); in indexString()
929 const dex::ProtoId& protoId = pDexFile->GetProtoId(dex::ProtoIndex(index)); in indexString()
1726 dex::ProtoIndex method_type_idx = static_cast<dex::ProtoIndex>(it.GetJavaValue().i); in dumpCallSite()
1784 dex::ProtoIndex proto_idx = static_cast<dex::ProtoIndex>(it.GetJavaValue().i); in dumpCallSite()
/art/runtime/interpreter/
Dinterpreter_common.cc364 const dex::ProtoIndex callsite_proto_id(vRegH); in DoMethodHandleInvokeCommon()
479 class_linker->ResolveMethodType(self, dex::ProtoIndex(vRegH), shadow_frame.GetMethod()))); in DoVarHandleInvokeCommon()
656 dex::ProtoIndex proto_idx(encoded_value->GetC()); in GetArgumentForBootstrapMethod()
Dinterpreter_common.h417 dex::ProtoIndex method_type_index, in ResolveMethodType()
/art/runtime/
Dclass_linker.h417 dex::ProtoIndex proto_idx,
424 dex::ProtoIndex proto_idx,
/art/runtime/verifier/
Dmethod_verifier.cc3171 const dex::ProtoIndex proto_idx(vRegH); in CodeFlowVerifyInstruction()
3199 const dex::ProtoIndex proto_idx = dex_file_->GetProtoIndexForCallSite(call_site_idx); in CodeFlowVerifyInstruction()
4323 dex::ProtoIndex proto_idx(inst->VRegH()); in VerifyInvocationArgs()
/art/dexlayout/
Ddex_ir_builder.cc446 const dex::ProtoId& disk_proto_id = dex_file.GetProtoId(dex::ProtoIndex(i)); in CreateProtoId()

12